HTTPS POST request with boost asio
I'm looking at this example for making HTTP POST requests. I'm interested about making an HTTPS POST request. How do I provide the location of .crt and .key file? Is there any example, possibly showing exception handling as well? Here's the groundwork for a simple POST request. If you define DEMO_USING_SSL you'll get SSL, otherwise no SSL The line ctx.set_default_verify_paths(); sets the verification paths so you should (normally/usually) pick up the system root certificates as trusted. Alternatively there are ctx.add_verify_path(...); ctx.add_certificate_authority(...); Be sure to look at man