Skip to content

Commit

Permalink
Add stream context
Browse files Browse the repository at this point in the history
  • Loading branch information
bseddon committed Jan 15, 2022
1 parent 812d118 commit 35c8f3a
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/OCSP/Ocsp.php
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,14 @@ static function getCertificate( $certificate, $issuerCertificate = null )
: CertificateLoader::ensureDer( $issuerCertificate )
)
: ( $urlOfIssuerCertificate
? file_get_contents( $urlOfIssuerCertificate )
? file_get_contents( $urlOfIssuerCertificate, false, stream_context_create( array(
"ssl"=>array(
"verify_peer"=>false,
"verify_peer_name"=>false,
),
)
)
)
: ''
);
$issuerBytes = CertificateLoader::ensureDer( $issuerBytes );
Expand Down

0 comments on commit 35c8f3a

Please sign in to comment.