freessl.tech-auto icon indicating copy to clipboard operation
freessl.tech-auto copied to clipboard

file_get_contents(): SSL operation failed with code 1

Open zullusa opened this issue 4 years ago • 1 comments

Hi! If I want to create SSL for another domain name (different from my current site location), I get an error: file_get_contents(): SSL operation failed with code 1

I edited the AcmeV2.php and Added this code

                    $arrContextOptions = array(
                        "ssl"=>array(
                            "verify_peer"=>false,
                            "verify_peer_name"=>false,
                        ),
                    );

                    $payload_from_uri = @file_get_contents($uri, false, stream_context_create($arrContextOptions));

And it works.

Unfortunately, I can't make the branch and send it in PR.

zullusa avatar Oct 11 '20 16:10 zullusa