Blame | Last modification | View Log | RSS feed
#!/bin/bashcat > ca_cert.conf << EOF[ req ]distinguished_name = req_distinguished_nameprompt = no[ req_distinguished_name ]O = Espressif SystemsEOFopenssl genrsa -out axTLS.ca_key.pem 2048openssl req -new -config ./ca_cert.conf -key axTLS.ca_key.pem -out axTLS.ca_x509.reqopenssl x509 -req -sha1 -days 5000 -signkey axTLS.ca_key.pem -CAkey axTLS.ca_key.pem -in axTLS.ca_x509.req -out axTLS.ca_x509.pemcat > certs.conf << EOF[ req ]distinguished_name = req_distinguished_nameprompt = no[ req_distinguished_name ]O = axTLS on ESP8266CN = esp8266.localEOFopenssl genrsa -out axTLS.key_1024.pem 1024openssl req -new -config ./certs.conf -key axTLS.key_1024.pem -out axTLS.x509_1024.reqopenssl x509 -req -sha1 -CAcreateserial -days 5000 -CA axTLS.ca_x509.pem -CAkey axTLS.ca_key.pem -in axTLS.x509_1024.req -out axTLS.x509_1024.pemopenssl rsa -outform DER -in axTLS.key_1024.pem -out axTLS.key_1024openssl x509 -outform DER -in axTLS.x509_1024.pem -out axTLS.x509_1024.cercat axTLS.key_1024 > server.keycat axTLS.x509_1024.cer > server.cerrm axTLS.* ca_cert.conf certs.conf