Skip to content

Commit

Permalink
automatic default certs
Browse files Browse the repository at this point in the history
  • Loading branch information
lws-team committed Nov 13, 2017
1 parent 11718c0 commit 8507daa
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions Makefile
Expand Up @@ -15,6 +15,7 @@ include sdkconfig
include ${PWD}/components/libwebsockets/scripts/esp32.mk

CFLAGS+= -I$(PROJECT_PATH)/components/libwebsockets/plugins \
-I$(BUILD_DIR_BASE)/libwebsockets/include \
-I$(PROJECT_PATH)/components/libwebsockets/lib \
-I$(IDF_PATH)/components/heap/include \
-I$(IDF_PATH)/components/soc/include \
Expand Down
4 changes: 2 additions & 2 deletions main/main.c
Expand Up @@ -140,8 +140,8 @@ void app_main(void)
info.options = LWS_SERVER_OPTION_EXPLICIT_VHOSTS |
LWS_SERVER_OPTION_DO_SSL_GLOBAL_INIT;

info.ssl_cert_filepath = "ssl-pub.pem";
info.ssl_private_key_filepath = "ssl-pri.pem";
info.ssl_cert_filepath = "ap-cert.pem";
info.ssl_private_key_filepath = "ap-key.pem";

info.vhost_name = "station";
info.protocols = protocols_station;
Expand Down

0 comments on commit 8507daa

Please sign in to comment.