This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
cd "$(dirname "$0")" | |
#Generage CA (self-signed) | |
openssl req -x509 -nodes -days 5000 -newkey rsa:2048 -keyout ca.key -out ca.crt -subj "/C=US/ST=Denial/L=Springfield/O=Dis/CN=www.example.com" | |
#Debug dump | |
openssl x509 -in ca.crt -noout -text >ca.txt | |
openssl x509 -noout -fingerprint -in ca.crt >> ca.txt |