| | |
| | |
Conventions of this document:
This font and colour is to indicate screen output This font indicates information typed by the user This font and colour represents data within files, either edited or produced This is a commentThis font and color represent filenames
Creating a .p12 certificate
You've already got your key pair from following
this document and they are named
host.public.pem and host.private.key
respectably
If you look, that will have given you a line that looks like :
Installing IP Sec on Windows 2000
Most of this is stolen from
http://www.natecarlson.com/include/showpage.php?cat=linux&page=ipsec-x509
Create a IPSEC + Certificates MMC
Add the certificate
Next, create/edit the configuration file ipsec.conf :
The rightca field is the information produced from :
Once that is up, you can start the tunnel by typing "ipsec" and you should see
something like the following:
To check the link status, you can use "IPSecmon" command to look at current
security associations. You should see something like:
Questions?
You now need to create a .p12 file (thats 12 as in "twelve", not an "L"). To
do this, run the command :
Now you need to copy it over to your windows machine. The copying needs to be
secure - scp, sftp or floppy disk please.
That will produce a binary file.
openssl x509 -in demoCA/cacert.pem -noout -subject
openssl x509 -in demoCA/cacert.pem -noout -subject > key.info
subject= /C=Au/ST=WA/L=Perth/O=UWA/OU=CS/CN=Fred/Email=fred@cs.uwa.edu.au
Assumes:
Need the following files:
conn %default
dial=
conn acer
left=%any
right=192.168.68.1
rightca="C=AU, S=WA, L=Perth, O=UWA, OU=CS, CN=wireless, Email=wireless@cs.uwa.edu.au"
rightsubnet=*
network=auto
auto=start
pfs=yes
openssl x509 -in demoCA/cacert.pem -noout -subject
but reformatted. ie)
subject= /C=Au/ST=WA/L=Perth/O=UWA/OU=CS/CN=Fred/Email=fred@cs.uwa.edu.au
becoming :
rightca="C=Au, S=WA, L=Perth, O=UWA, OU=CS, CN=Fred, Email=fred@cs.uwa.edu.au"
C:\Temp\ipsec>ipsec
IPSec Version 2.1.4 (c) 2001,2002 Marcus Mueller
Getting running Config ...
Microsoft's Windows 2000 identified
Host name is: acer
No RAS connections found.
LAN IP address: 192.168.68.80
Setting up IPSec ...
Deactivating old policy...
Removing old policy...
Connection acer:
MyTunnel : 192.168.68.80
MyNet : 192.168.68.80/255.255.255.255
PartnerTunnel: 192.168.68.1
PartnerNet : *
CA (ID) : C=AU, S=WA, L=Perth, O=UWA, OU=CS, CN=Fred, Em...
PFS : y
Auto : start
Auth.Mode : MD5
Rekeying : 3600S/50000K
Activating policy...