Kasper van den Berg
Kasper van den Berg

Reputation: 9526

Https server with cpp-netlib

How can one use cpp-netlib to implement a HTTPS-server?

The following questions stop me from combining asio SSL and cpp-netlib:

Upvotes: 21

Views: 6122

Answers (2)

Rémi
Rémi

Reputation: 3745

The most recent release of cpp-netlib contains a working example. You'll find it in cpp-netlib-0.11.1RC2/libs/network/example/http/ssl. The github files are there: https://github.com/cpp-netlib/cpp-netlib/tree/0.11-devel/libs/network/example/http/ssl

You have to use an async_server.

Upvotes: 5

bosnjak
bosnjak

Reputation: 8614

A long shot, but have you tried the following:

  • #define BOOST_NETWORK_ENABLE_HTTPS
    before including the boost network http client.

  • Make sure OpenSSL is in the compiler path.

Upvotes: 8

Related Questions