Using domain-based SSL certificate with Boost.Beast
I looked at this example server certificate in the Boost.Beast repository: https://github.com/boostorg/beast/blob/develop/example/common/server_certifi... . I have a free SSL certificate that I got for my Dynamic DNS subdomain name which doesn't have DH parameters but does have a certificate chain and a private key. I don't know what to put for ctx.set_options or ctx.set_password_callback. I tried asking at Let's Encrypt as well: https://community.letsencrypt.org/t/how-to-secure-dynamic-dns/87816/19 . I decided to ask here because they said they can't advise me on how to do it with Boost. I don't want to try a reverse proxy. My current web server code can be found here: https://github.com/DragonOsman/currency_converter/blob/master/currency_conve... . [https://avatars0.githubusercontent.com/u/18173932?s=400&v=4]https://github.com/DragonOsman/currency_converter/blob/master/currency_conve... currency_converter/currency_converter.cpp at master · DragonOsman/currency_converter · GitHubhttps://github.com/DragonOsman/currency_converter/blob/master/currency_conve... Application for Computer Science course. Contribute to DragonOsman/currency_converter development by creating an account on GitHub. github.com [https://discourse-cdn-sjc1.com/letsencrypt/uploads/default/original/3X/c/a/c...]https://community.letsencrypt.org/t/how-to-secure-dynamic-dns/87816/19 How to secure Dynamic DNS - Help - Let's Encrypt Community Supporthttps://community.letsencrypt.org/t/how-to-secure-dynamic-dns/87816/19 The acme.sh certs are generally in a domain folder where the acme.sh script lives (something like ~/.acme.sh/example.com). You don’t likely need to generate a new one. community.letsencrypt.org [https://avatars3.githubusercontent.com/u/3170529?s=400&v=4]https://github.com/boostorg/beast/blob/develop/example/common/server_certifi... boostorg/beasthttps://github.com/boostorg/beast/blob/develop/example/common/server_certifi... HTTP and WebSocket built on Boost.Asio in C++11. Contribute to boostorg/beast development by creating an account on GitHub. github.com
participants (1)
-
Osman Zakir