Correct way to set certificate and key from binary data (not disk file) #28335
Unanswered
AndersGustafsson
asked this question in
Q&A
Replies: 1 comment 1 reply
-
|
d2i_X509? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Bear with me in case this is a stupid question but I am porting a windows app from 32 bit to 64 bit and Open SSL 1.11l to libcurl/8.15.0-DEV OpenSSL/3.5.2 zlib/1.3.1
I use libcurl to call an API and the call needs to have both certificate and key. In the old code I used the sslctx_function to add the certificate and key and also in the new code, however, the current sample snippet for curl, suggests:
X509_STORE_add_cert(store, cert)but that does no seem to take care of the key, so I used:
I guess I am curious if this is considered wrong or bad? It does work though.
Beta Was this translation helpful? Give feedback.
All reactions