Re: [asio-users] ssl server supporting multiple certificates and multiple private keys...
Brought to you by:
chris_kohlhoff
|
From: leon z. <leo...@gm...> - 2010-05-27 08:57:33
|
On 5/27/10, leon zadorin <leo...@gm...> wrote: > I would, ideally, like to have a server which would support, > concurrently, 2 different certs (each signed with a different [...] > Would this be possible (in boost::asio::ssl) ? For instance, given something like: http://www.madboa.com/geek/openssl/ " This example will produce a file called mycert.pem which will contain both the private key and the public certificate based on it. [...] openssl req \ -x509 -nodes -days 365 \ -newkey rsa:1024 -keyout mycert.pem -out mycert.pem " Would it be possible to use a call such as (or similar): ssl.use_certificate_chain_file(xyz.pem); with the xyz.pem file having 2 tuples of the private key and the cert? ... and then discard the need to call ssl.use_private_key_file ...? :-) I am a noob w.r.t. asio/ssl |