1b534f565a829904e7e71561ba51625d32e5a180
[x509-shell-scripts] / certification-authority.sh
1 cd /etc/strongswan/ipsec.d/
2 strongswan pki --gen --type rsa --size 4096 --outform pem \
3         > private/strongswanKey.pem
4 chmod 600 private/strongswanKey.pem
5 strongswan pki --self --ca --lifetime 3650 \
6         --in private/strongswanKey.pem --type rsa \
7         --dn "C=JP, O=ROB-VPN-JP, CN=207.148.98.140" \
8         --outform pem \
9         > cacerts/strongswanCert.pem