接入openssl
生成密钥:
openssl genrsa -out server.key 2048
生成证书:
openssl req -new -x509 -sha256 -key server.key -out server.crt -days 3650
//g++ -std=c++11 -o testhttps testhttps.cc -I/usr/local/include/workflow -lworkflow -lssl -lcrypto
#include <stdio.h>
#include "workflow/WFHttpServer.h"
int main()
{
WFHttpServer server([