Milan Kotaška schrieb:
Hello,

sorry for this post, but I'm a beginner in an OpenSSL.
I would like to use OpenSSL functions to connect to WEB server via HTTPS 
protocol. I have received a certificate file with P12 extension from a WEB 
application provider.
The goal is to send a HTTPS POST request to WEB server using a certificate.
Could anybody tell me, which functions from OpenSSL I have to use?

Thank you.

Milan Kotaska
[EMAIL PROTECTED]
Just a quick answer to start with.

If you want to do this using the openssl command line you have to extract the certificate and keys from the .P12 file and save them as PEM-Files using the "openssl pkcs12" command (see http://www.openssl.org/docs/apps/pkcs12.html). Then you can tell "openssl s_client" (http://www.openssl.org/docs/apps/s_client.html) to connect your HTTPS-Server while using those PEM-Files as client certificates.

To do this via API is possible, but a bit (no, considerably!) more work to describe. Perhaps you can have a look in the source code of the openssl commands mentioned above to get an idea.

Hope it helps,
Ted
;)

--
PGP Public Key Information
Download complete Key from http://www.convey.de/ted/tedkey_convey.asc
Key fingerprint = 31B0 E029 BCF9 6605 DAC1  B2E1 0CC8 70F4 7AFB 8D26


Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

Reply via email to