summaryrefslogtreecommitdiffstats
path: root/ipsec-tools/src/racoon/samples/racoon.conf.sample-plainrsa
blob: 8447eb30c32c99671640f72019a2d038025337b0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# Id: racoon.conf.sample-plainrsa,v 1.4 2005/12/13 16:41:07 vanhu Exp
# Contributed by: Michal Ludvig <mludvig@suse.cz>, SUSE Labs
#                 http://www.logix.cz/michal

# This file shows the usage of PlainRSA keys, which are widely used
# by FreeSWAN/OpenSwan/StrongSwan/*Swan users. This functionality is 
# here mainly for those who are moving from the *Swan world to Racoon.

# Racoon will look for a keyfile in this directory.
path certificate "samples" ;

remote anonymous
{
	# *Swan supports only 'main' mode.
	exchange_mode main;

	# *Swan doesn't send identifiers by default.
	my_identifier address;
	peers_identifier address;

	# This is the trick - use PlainRSA certificates.
	certificate_type plain_rsa "privatekey.rsa";

	# Multiple certfiles are supported.
	peers_certfile plain_rsa "pubkey1.rsa";
	peers_certfile plain_rsa "pubkey2.rsa";

	# Standard setup follows...
	proposal_check strict;

	proposal {
		encryption_algorithm 3des;
		hash_algorithm sha1;
		authentication_method rsasig;
		dh_group 2;
	}
}

sainfo anonymous
{
	pfs_group 2;
	lifetime time 12 hour;
	encryption_algorithm 3des, aes;
	authentication_algorithm hmac_sha1, hmac_md5;
	compression_algorithm deflate;
}