[openssl-users] Loading multiple private keys a certificates on server program

Dr. Stephen Henson steve at openssl.org
Thu Jul 6 19:38:27 UTC 2017


On Tue, Jun 27, 2017, Neetish Pathak wrote:

> 
> SSL_CTX_use_certificate_file to load the certificate but the server always
> picks just the first certificate mentioned in the file and fails for one of
> the cases with no cipher shared message
> 
> What should we do to store multiple certificates and private keys at the
> server side so that it picks the right one corresponding to the requested
> cipher.
> 

You call SSL_CTX_use_certificate_file multiple times: once for each
certificate type. Similary for private keys.

Steve.
--
Dr Stephen N. Henson. OpenSSL project core developer.
Commercial tech support now available see: http://www.openssl.org


More information about the openssl-users mailing list