# This file holds shared secrets or RSA private keys for inter-Pluto
# authentication.  See ipsec_pluto(8) manpage, and HTML documentation.

# Shared secret (an arbitrary character string, which should be both long
# and hard to guess, enclosed in quotes) for a pair of negotiating hosts.
# Must be same on both; generate on one and copy to the other.
#10.0.0.1 10.12.12.1 : PSK "jxS4m4j4TjuU23mS52kuT2m2RnSluWSl55k5kulm31nkR2u2m5k32jUuUl5nlTl2uS15k12R1"

# RSA private key for this host, authenticating it to any other host
# which knows the public part.  Put ONLY the "pubkey" part into connection
# descriptions on the other host(s); it need not be kept secret.
#
: RSA
{
	my $result = "\t\{\n";
        @args = ("/usr/local/lib/ipsec/ipsec", "rsasigkey", "2048");
	$result .= `/usr/local/lib/ipsec/ipsec rsasigkey 2048`;
	$result .= "\t\}";
	$result;
}
