Currently I'm working with this:


...
    ctx.use_certificate_chain_file("./C/cert.pem");
    ctx.use_private_key_file("./C/key.pem", boost::asio::ssl::context::pem);
    ctx.load_verify_file("./C/ca.pem");
...

So far everything works perfect, but what I really need to do is load the same key.pem but with a passphrase, Looking at asio docs found ssl::context::set_password_callback wich according to the info calls SSL_CTX_set_default_passwd_cb and allows to handle encrypted PEM files, please remember that I'm much more familiarized with high level languages like python, so c++ is not my forte

any help is appreciated, Thank you !


-- 
Alvaro Leiva