<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv=Content-Type content="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 12 (filtered medium)">
<style>
<!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph
        {mso-style-priority:34;
        margin-top:0cm;
        margin-right:0cm;
        margin-bottom:0cm;
        margin-left:36.0pt;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page Section1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.Section1
        {page:Section1;}
/* List Definitions */
@list l0
        {mso-list-id:1135490641;
        mso-list-type:hybrid;
        mso-list-template-ids:837045636 269025295 269025305 269025307 269025295 269025305 269025307 269025295 269025305 269025307;}
@list l0:level1
        {mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-18.0pt;}
ol
        {margin-bottom:0cm;}
ul
        {margin-bottom:0cm;}
-->
</style>
<!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang=EN-CA link=blue vlink=purple>
<div class=Section1>
<p class=MsoNormal>I’m new to IPsec so forgive me if I’m missing
something obvious here! Here’s what I’ve done:<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoListParagraph style='text-indent:-18.0pt;mso-list:l0 level1 lfo1'><![if !supportLists]><span
style='mso-list:Ignore'>1.<span style='font:7.0pt "Times New Roman"'>
</span></span><![endif]>I create a private key for my ipsec gateway with the
command:<o:p></o:p></p>
<p class=MsoListParagraph>openssl req -new -keyout firewall-private-key.pem
-out firewall-request.der<o:p></o:p></p>
<p class=MsoListParagraph style='text-indent:-18.0pt;mso-list:l0 level1 lfo1'><![if !supportLists]><span
style='mso-list:Ignore'>2.<span style='font:7.0pt "Times New Roman"'>
</span></span><![endif]>I copied the “firewall-private-key.pem” to
/etc/ipsec.d/private<o:p></o:p></p>
<p class=MsoListParagraph style='text-indent:-18.0pt;mso-list:l0 level1 lfo1'><![if !supportLists]><span
style='mso-list:Ignore'>3.<span style='font:7.0pt "Times New Roman"'>
</span></span><![endif]>I use my Windows 2003 CA to generate a “web
server” certificate, pasting in the key from the stop above<o:p></o:p></p>
<p class=MsoListParagraph style='text-indent:-18.0pt;mso-list:l0 level1 lfo1'><![if !supportLists]><span
style='mso-list:Ignore'>4.<span style='font:7.0pt "Times New Roman"'>
</span></span><![endif]>I got the generated certificates in DER and Base64
format, and copied them into my gateway’s /etc/ipsec.d/certs folder as “firewall-cert.der”<o:p></o:p></p>
<p class=MsoListParagraph style='text-indent:-18.0pt;mso-list:l0 level1 lfo1'><![if !supportLists]><span
style='mso-list:Ignore'>5.<span style='font:7.0pt "Times New Roman"'>
</span></span><![endif]>I edited my /etc/ipsec.secrets to include this line<o:p></o:p></p>
<p class=MsoListParagraph>: RSA firewall-private-key.pem "password<o:p></o:p></p>
<p class=MsoListParagraph style='text-indent:-18.0pt;mso-list:l0 level1 lfo1'><![if !supportLists]><span
style='mso-list:Ignore'>6.<span style='font:7.0pt "Times New Roman"'>
</span></span><![endif]>I restarted ipsec, and there are no errors<o:p></o:p></p>
<p class=MsoListParagraph style='text-indent:-18.0pt;mso-list:l0 level1 lfo1'><![if !supportLists]><span
style='mso-list:Ignore'>7.<span style='font:7.0pt "Times New Roman"'>
</span></span><![endif]>I ran “ipsec auto –listall” and here’s
what I see:<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>000 <o:p></o:p></p>
<p class=MsoNormal>000 List of Public Keys:<o:p></o:p></p>
<p class=MsoNormal>000 <o:p></o:p></p>
<p class=MsoNormal>000 List of Pre-shared secrets (from /etc/ipsec.secrets)<o:p></o:p></p>
<p class=MsoNormal>000 1: RSA (none) (none)<o:p></o:p></p>
<p class=MsoNormal>000 1: RSA (none) (none)<o:p></o:p></p>
<p class=MsoNormal>000 <o:p></o:p></p>
<p class=MsoNormal>000 List of X.509 CA Certificates:<o:p></o:p></p>
<p class=MsoNormal>000 <o:p></o:p></p>
<p class=MsoNormal>000 Oct 14 01:16:41 2008, count: 1<o:p></o:p></p>
<p class=MsoNormal>000 subject:
'DC=ca, DC=ocg, CN=OCG Certificate Authority'<o:p></o:p></p>
<p class=MsoNormal>000 issuer:
'DC=ca, DC=ocg, CN=OCG Certificate Authority'<o:p></o:p></p>
<p class=MsoNormal>000 serial:
1b:47:28:ee:e3:c6:a3:b9:4d:b7:a8:38:c4:67:27:90<o:p></o:p></p>
<p class=MsoNormal>000
pubkey: 2048 RSA Key AwEAAcBVF<o:p></o:p></p>
<p class=MsoNormal>000 validity: not
before Sep 28 23:06:37 2006 ok<o:p></o:p></p>
<p class=MsoNormal>000
not after Sep 28 23:14:33 2031 ok<o:p></o:p></p>
<p class=MsoNormal>000 subjkey:
0f:b6:1e:93:77:70:64:c1:77:32:f3:24:47:49:15:3f:58:ea:20:95<o:p></o:p></p>
<p class=MsoListParagraph><o:p> </o:p></p>
<p class=MsoNormal>Why is my private key not showing up? My CA key shows
up....<o:p></o:p></p>
<p class=MsoNormal>Should my public key show up in the list?<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>I’m lost...<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>Thanks,<o:p></o:p></p>
<p class=MsoNormal>Michelle<o:p></o:p></p>
<p class=MsoListParagraph><o:p> </o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
</div>
</body>
</html>