-
Notifications
You must be signed in to change notification settings - Fork 59
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
NSS error -8178 SEC_ERROR_BAD_KEY #7
Comments
This has to do with the fact that by default cURL is not compiled with OpenSSL. To fix this, after you've created you private key .pem file via this command:
Take the file that was output and run this command:
This will format the key to RSA format, which will work for your application. Reference this new file via:
and you should be good to go |
Unable to convert PEM to RSA using 140735700853704:error:0607907F:digital envelope routines:EVP_PKEY_get1_RSA:expecting an rsa key:/BuildRoot/Library/Caches/com.apple.xbs/Sources/libressl/libressl-22.50.2/libressl/crypto/evp/p_lib.c:297: |
could not load PEM client certificate, OpenSSL error error:0909006C:PEM routines:get_name:no start line, (no key found, wrong pass phrase, or wrong file format?) |
@PeraDev7 I'm having same issue. Please share the solution if you find it. thanks! |
use this one |
I also encountered the same error, please let me know if you solved |
After all I setup, when I test the curl_test.php file I'm getting following error:
I even tried disabling the SSL in curl by adding:
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
Any idea what casing the error?
The text was updated successfully, but these errors were encountered: