-
Notifications
You must be signed in to change notification settings - Fork 3
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
I encounter error. "SSL: Can't load the certificate" #6
Comments
@carlhung can you check you are running with the patched version of curl first? |
what do you mean patched version? i guess it is. i searched a bit. |
and what do you mean what shows up on the path? |
i guess ccurl is using the Mac version one. |
I mean the one with http2 support, the default one has no, looking at the version it seems not.
what's the response on screen? |
the file path on the screen. |
ok, so the file exits, in the swift file how do you set that |
i think it should be correct. as i put a wrong path to try what error would show up. |
I do confirm you're not using the right curl, this is the right one:
please a check and try again this command
|
yes, i saw that. it is strange actually, i am also fixing the link. |
i googled earlier today. as SecureTransport can't be used by curl. |
ok, it happens again. |
mhhh sounds strange, try to add the two certificates to the keychain, but dunno if that helps. |
found that |
I followed the steps on readme. installed successfully:
brew reinstall curl --with-openssl --with-nghttp2
brew link curl --force
I went to my developer account. generated APN-development certificate and download the certificate with cer format. double clicked to import to "keychain" and exported a file with p12 format. no password set. typed the command:
openssl pkcs12 -in certificate.p12 -out newfile.crt.pem -clcerts -nokeys
openssl pkcs12 -in certificate.p12 -out newfile.key.pem -nocerts -nodes
to generate newfile.crt.pem and newfile.key.pem files. while using this library i got the error:
ret = CURLcode(rawValue: 58)
Problem with the local SSL certificate
I use an application called "APN tester", my certificate worked fine. I got the post message using tester.
how can i fix it? thanks.
The text was updated successfully, but these errors were encountered: