Boost logo

Boost Users :

Subject: [Boost-users] Using domain-based SSL certificate with Boost.Beast
From: Osman Zakir (osmanzakir90_at_[hidden])
Date: 2019-03-05 21:45:24


I looked at this example server certificate in the Boost.Beast repository: https://github.com/boostorg/beast/blob/develop/example/common/server_certificate.hpp . 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_converter.cpp .
[https://avatars0.githubusercontent.com/u/18173932?s=400&v=4]<https://github.com/DragonOsman/currency_converter/blob/master/currency_converter.cpp>

currency_converter/currency_converter.cpp at master · DragonOsman/currency_converter · GitHub<https://github.com/DragonOsman/currency_converter/blob/master/currency_converter.cpp>
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/ca6c06ea1ea201324bba7048c6841ce60236468d.png]<https://community.letsencrypt.org/t/how-to-secure-dynamic-dns/87816/19>

How to secure Dynamic DNS - Help - Let's Encrypt Community Support<https://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_certificate.hpp>

boostorg/beast<https://github.com/boostorg/beast/blob/develop/example/common/server_certificate.hpp>
HTTP and WebSocket built on Boost.Asio in C++11. Contribute to boostorg/beast development by creating an account on GitHub.
github.com



Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net