aboutsummaryrefslogtreecommitdiffstats
path: root/vnfmarket-be/deployment/docker/docker-refrepo/src/main/docker/certgen.sh
blob: 796d57771ed59ce12f5bdd69b806145c30a71028 (plain)
1
2
3
4
5
6
#!/bin/sh
openssl req -nodes -newkey rsa:2048 -keyout example.key -out example.csr -subj "/C=IN/ST=Bangalore/L=Bangalore/O=Global Security/OU=ONAP/CN=example.com"
openssl x509 -req -in example.csr -signkey example.key -out cert.crt
cp -p cert.crt /etc/nginx/ssl/
systemctl enable nginx