# /etc/ipsec.conf - strongSwan IPsec configuration file

config setup
	strictcrlpolicy=yes

ca strongswan
	cacert=strongswanCert.pem
	ocspuri=http://ocsp.strongswan.org:8880
	auto=add

ca research
	cacert=researchCert.pem
	ocspuri=http://ocsp.strongswan.org:8881
	auto=add

ca sales
	cacert=salesCert.pem
	ocspuri=http://ocsp.strongswan.org:8882
	auto=add

conn %default
	ikelifetime=60m
	keylife=20m
	rekeymargin=3m
	keyingtries=1
	keyexchange=ikev2
	left=PH_IP_MOON
	leftcert=moonCert.pem
	leftid=@moon.strongswan.org

conn alice
	leftsubnet=PH_IP_ALICE/32
	right=%any
	rightca="C=CH, O=strongSwan Project, OU=Research, CN=Research CA"
	auto=add

conn venus
	leftsubnet=PH_IP_VENUS/32
	right=%any
	rightca="C=CH, O=strongSwan Project, OU=Sales, CN=Sales CA"
	auto=add