Debian Codegraph @

testing/pluto/nss-cert-11-ca-expired-responder-3conn-ikev2/02-west-init.sh

raw
1 /testing/guestbin/swan-prep --nokeys
2
3 # Generate west's CA and then use that to generate a signed
4 # cert+private-key that east can present when authenticating. All
5 # dates for these certs are sane.
6
7 ipsec certutil -m 1 -S -k rsa -x -n west-ca -s "CN=west-ca" -v 12 -t "CT,C,C" -z ipsec.conf
8 ipsec certutil -m 2 -S -k rsa -c west-ca -n east -s "CN=east" -v 12 -t "u,u,u" -z ipsec.conf
9 ipsec pk12util -W secret -o OUTPUT/east.p12 -n east
10 ipsec certutil -L -n east -a > OUTPUT/east.crt
11 ipsec certutil -F -n east