Skip to content

Commit b3edadc

Browse files
committed
Disable SSL
1 parent 6cb70ec commit b3edadc

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

src/JsonSchema/Uri/Retrievers/FileGetContents.php

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,13 @@ public function retrieve($uri)
3131
'http' => array(
3232
'method' => 'GET',
3333
'header' => "Accept: " . Validator::SCHEMA_MEDIA_TYPE
34-
)));
35-
34+
),
35+
'ssl' => array(
36+
'verify_peer' => false,
37+
'verify_peer_name' => false,
38+
),
39+
));
40+
3641
$response = file_get_contents($uri, null, $context);
3742
if (false === $response) {
3843
throw new ResourceNotFoundException('JSON schema not found at ' . $uri);

0 commit comments

Comments
 (0)