'PHP/Apache OAuth2 Client Credentials Authentication Failure
I'm setting up a PHP OAuth2 server using Client Credentials and I'm using Postman to test. When I run the test I get "Warning: Unable to verify the first certificate". In researching this issue, it appears that it is unable to verify the Godaddy cert. In Apache2 I have both the site cert (which is a wildcard cert) and the Intermediate Godaddy cert. Everything for browsers runs just fine. I also get the same error when I run "openssl s_client -showcerts -connect <devsite.com>:443". From everything I can see the cert is loading and working just fine, so why is it failing for Postman and OpenSSL? Is there something else I am missing? Here is my Apache config.
<IfModule mod_ssl.c>
<VirtualHost _default_:443>
ServerName devsite.com
ServerAdmin webmaster@localhost
DocumentRoot /var/www/devsite
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
SSLEngine on
SSLCertificateFile /path/to/devsite.crt
SSLCertificateKeyFile /path/to/devsite.key
SSLCertificateChainFile /path/to/godaddy.crt
<FilesMatch "\.(cgi|shtml|phtml|php)$">
SSLOptions +StdEnvVars
</FilesMatch>
<Directory /usr/lib/cgi-bin>
SSLOptions +StdEnvVars
</Directory>
SSLProtocol all -SSLv2 -SSLv3 -TLSv1 -TLSv1.1
SSLHonorCipherOrder on
SSLCipherSuite "EECDH+ECDSA+AESGCM EECDH+aRSA+AESGCM EECDH+ECDSA+SHA384 EECDH+ECDSA+SHA256 EECDH+aRSA+SHA384 EECDH+aRSA+SHA256 EECDH+aRSA+RC4 EECDH EDH+aR>
</VirtualHost>
</IfModule>
# vim: syntax=apache ts=4 sw=4 sts=4 sr noet
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
