Because of the missing /etc/ipsec.secrets file, roadwarrior carol and gateway moon each automatically generate a PKCS#1 RSA private key and a self-signed X.509 certificate. Because the UML testing environment does not offer enough entropy, the non-blocking /dev/urandom device is used in place of /dev/random for generating the random primes.

The self-signed certificates are then distributed to the peers via scp and are used to set up a road warrior connection initiated by carol