This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## O arquivo original é um .pfx (não tinha toda a cadeia) | |
## Gerei arquivo chain.pem com o os outros certificados que me mandaram e verifiquei desta forma | |
cat cert.pem aa-Soluti.cer soluti_Multipla.cer Raiz-da-ICP-Brasil-v2.cer > chain.pem | |
openssl verify -CAfile chain.pem -untrusted soluti_Multipla.cer aa-Soluti.cer cert.pem | |
## SAIDA: | |
aa-Soluti.cer: OK |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
abstract class PaymentType { | |
abstract function pay(); | |
} | |
class BitcoinPayment extends PaymentType { | |
public function pay() | |
{ | |
return 'Pay with Bitcoin'; | |
} |