![]() If you don’t like the thought of having to specify the location of the certificate bundle in your PHP code, then you can add its path information to your php.ini file like so: curl.cainfo="C:\wamp\cacert.pem" Once you add the above lines to your php.ini file, make sure that you reload the web server / PHP process so that the changes take effect. ![]() To enable mod_ssl, you can add the following to your Apache configuration file: LoadModule ssl_module /usr/lib/httpd/modules/mod_ssl.so If you are using Apache and PHP on Windows, then you might need to enable both mod_ssl and php_openssl.dll. The configuration line above presumes that a file called mod_ssl.so exists in a Linux directory called “/usr/lib/httpd/modules/”. On Windows, this directory might be something like “ C:\wamp\bin\apache\apache2.4.9\modules\“. You will need to change this line to match your own Apache setup. # for Java9 up use -cacerts instead of -keystore $jks Keytool -keystore $jks -storepass changeit -exportcert -alias $c -rfc You can convert the certs from JKS format to PEM format with a script, something like: jks=/usr/lib/jvm/$javaversion/jre/lib/security/cacertsįor c in $(keytool -keystore $jks -storepass changeit -list | awk -F, '/trustedCert/') do To enable php_openssl.dll, you will need to uncomment the following line in your php.ini file: extension=php_openssl.dllĪs always, you should test your configurations and then reload your server for any changes to take effect.As Amit quoted, curl -cacert requires a file in PEM format - but the Java cacerts file is in JKS format, which is massively different. ![]() Which maybe makes this marginally on-topic for SO, since your Q isn't about programming at all. MAC GAME STORE PROBLEM WITH SUPPLIED NICKNAME CURL SSL DOWNLOAD. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |