> Hi, friends,
>
> I try to add the client authentication into a client application.
> Two problems block me.
>
> 1. It is not allowed to use DER type files in SSL_CTX_use_PrivateKey_file.
> It only accepts PEM files.
>
SSL_CTX_use_PrivateKey_ASN1(..) should accept a DER-encoded private key
file.
> 2. During handshaking, the client application fails in
> ssl3_get_certificate_request. In the first time reaching this function,
> it goes to err since d2i_X509_NAME returns NULL. The second time entering
> here is driven by FD_READ event. Then it exits early by the message_type
> of SSL3_MT_SERVER_DONE. So I don't retrieve the certificat request
> from server successfully. And, of course, the handshaking fails.
>
I'm not sure about this.
> Could anyone tell me how to fix those problems?
>
> Hua
>
>
I hope this helps.
----------------------------------------------------------------------
Peter Kim
Software Developer
Xcert International Inc.
e-mail: [EMAIL PROTECTED]
URL: http://www.xcert.com
homepage: http://home.xcert.com/~pckim
ph 604 640 6210 ext 268
----------------------------------------------------------------------
______________________________________________________________________
> OpenSSL Project http://www.openssl.org
> User Support Mailing List [EMAIL PROTECTED]
> Automated List Manager [EMAIL PROTECTED]
______________________________________________________________________
OpenSSL Project http://www.openssl.org
User Support Mailing List [EMAIL PROTECTED]
Automated List Manager [EMAIL PROTECTED]