openssl
Create Selfsigned Cert
Bash
With common name - CN
openssl req -x509 -new -newkey rsa:4096 -nodes -subj "/C=EU/ST=Czech/O=Dis" -keyout $HOME/ssl/namehere.key -out $HOME/ssl/namehere.crt -sha256 -days 730
cat $HOME/ssl/namehere.key $HOME/ssl/namehere.crt > $HOME/ssl/namehere.pem
Bash
openssl req -x509 -new -newkey rsa:4096 -nodes -subj "/C=EU/ST=Serbia/O=Dis" -subj "/CN=example.com" -keyout $HOME/ssl/mydata-dev.key -out $HOME/ssl/mydata-dev.crt -sha256 -days 730
Bundle key and crt