esp8266-std/ESP8266_RTOS_SDK/examples/openssl_client/genheader.sh

13 lines
369 B
Bash
Raw Normal View History

2018-11-23 01:43:17 +00:00
#!/bin/bash
# set ca crt for use in the client
xxd -i ca.crt | sed -e "s/ca_crt/ca_crt/" > ssl_client_crt.h
# set client crt for use in the client
xxd -i client.crt | sed -e "s/client_crt/client_crt/" >> ssl_client_crt.h
# set private key for use in the client
xxd -i client.key | sed -e "s/client_key/client_key/" >> ssl_client_crt.h
mv ssl_client_crt.h ./include