Hi!
It's been a few months since I last used the API and it was working fine before. Today I'm getting this when I try to use any of my previously working scripts:
PS F:\Web\Apache24\htdocs\dfpapi> php dfp-test.php
PHP Fatal error: Uncaught RuntimeException: Error creating resource: [message] fopen(): SSL operation failed with code 1. OpenSSL Error messages:
error:1416F086:SSL routines:tls_process_server_certificate:certificate verify fai
Fatal error: Uncaught RuntimeException: Error creating resource: [message] fopen(): SSL operation failed with code 1. OpenSSL Error messages:
error:1416F086:SSL routines:tls_process_server_certificate:certificate verify failed
[file] F:\Web\Apache24\htdocs\dfpapi\vendor\guzzlehttp\guzzle\src\Handler\StreamHandler.php
[line] 323
[message] fopen(): Failed to enable crypto
[file] F:\Web\Apache24\htdocs\dfpapi\vendor\guzzlehttp\guzzle\src\Handler\StreamHandler.php
[line] 323
[file] F:\Web\Apache24\htdocs\dfpapi\vendor\guzzlehttp\guzzle\src\Handler\StreamHandler.php
[line] 323 in F:\Web\Apache24\htdocs\dfpapi\vendor\guzzlehttp\guzzle\src\Handler\StreamHandler.php:252
Stack trace:
#0 F:\Web\Apache24\htdocs\dfpapi\vendor\guzzlehttp\guzzle\src\Handler\StreamHandler.php(334): GuzzleHttp\Handler\StreamHandler->createResource(Object(Closure))
#1 F:\Web\Apache24\htdocs\dfpapi\vendor\guzzlehttp\guzzle\src\Handler\StreamHandler. in F:\Web\Apache24\htdocs\dfpapi\vendor\guzzlehttp\guzzle\src\Exception\RequestException.php on line 52
I'm using Windows 10, Apache 2.4, and PHP 7.2.1. I get the same result by running the example in the Chrome browser and Visual Studio Code inbuilt terminal.
I'm having no luck with searching for the errors so I'm hoping someone can point me in the right direction.
Thanks!