|
|||||||||||
|
[Users] FreeS/WAN 2.00-rc2 with X.509-1.2.2 -patch, x.509 authentication want not work
From: Tino Glatzel <tino.glatzel(at)bbvb.de>
Date: Mon Mar 31 2003 - 00:49:16 EST
my systems are Debian 3.0 woody with kernel 2.4.20, FreeS/Wan 2.00-rc2 and X.509-1.2.2 patch. Ipsec works with shared secrets and with raw RSA public keys, ipsec with x.509 certificates would not work. I have create a CA and the certificates for the gateway (vpn) and the client (client) like in the Installation Guide described. vpn:/opt/ca/# openssl req -x509 -days 1460 -newkey rsa:2048 -keyout cakey.pem -out cacert.pem vpn:/opt/ca/# openssl req -newkey rsa:1024 -keyout vpn.test.key.pem -out vpn.test.req.pem vpn:/opt/ca/# openssl ca -in vpn.test.req.pem -days 730 -out vpn.test.cert.pem -notext vpn:/opt/ca/# openssl req -newkey rsa:1024 -keyout client.test.key.pem -out client.test.req.pem vpn:/opt/ca/# openssl ca -in client.test.req.pem -days 730 -out client.test.cert.pem -notext vpn:/opt/ca/# cp cacert.pem /etc/ipsec.d/cacerts/ vpn:/opt/ca/# cp vpn.test.key.pem /etc/ipsec.d/private vpn:/opt/ca/# echo ":RSA vpn.test.key.pem \"vpnpasswd\"" >> /etc/ipsec.secrets vpn:/opt/ca/# cp vpn.test.cert.pem /etc/ipsec.d/certs/ vpn:/opt/ca/# cp client.test.cert.pem /etc/ipsec.d/certs/ vpn:/opt/ca/# openssl ca -gencrl -crldays 15 -out crl.pem vpn:/opt/ca/# cp crl.pem /etc/ipsec.d/crls/ vpn:/opt/ca/# openssl x509 -in vpn.test.cert.pem -noout -subjectsubject= /C=DE/ST=Baden/O=Testnetz/OU=EDV/CN=vpn.test vpn:/opt/ca/# openssl x509 -in client.test.cert.pem -noout -subject subject= /C=DE/ST=Baden/O=Testnetz/OU=EDV/CN=client.test at the client: client:/floppy/# cp cacert.pem /etc/ipsec.d/cacerts/ client:/floppy/# cp client.test.key.pem /etc/ipsec.d/private client:/floppy/# echo ":RSA client.test.key.pem \"clientpasswd\"" >> /etc/ipsec.secrets client:/floppy/# cp client.test.cert.pem /etc/ipsec.d/certs/ client:/floppy/# cp vpn.test.cert.pem /etc/ipsec.d/certs/
here is the config of the gateway:
klipsdebug=all
plutodebug=all
here is the config of the client: version 2.0 # conforms to second version of ipsec.conf specification config setup
klipsdebug=all
plutodebug=all
when i ping the gateway, with tcpdump -i ipsec0 i see the requests but no answers. Is the problem at the gateway? Can anyone help me? tino Users mailing list Users@lists.freeswan.org http://lists.freeswan.org/mailman/listinfo/users Received on Sun Apr 6 06:51:54 2003 This archive was generated by hypermail 2.1.8 : Wed Aug 23 2006 - 13:01:14 EDT |
||||||||||
|
|||||||||||