<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:times new roman,new york,times,serif;font-size:12pt">Dear Paul and Antony<br>Thanks for your help. I finally run the scenario with the following configs:<br><br>On Gateway:<br>conn road-x509 <br>
type=tunnel <br> authby=rsasig <br>
leftrsasigkey=%cert <br> rightrsasigkey=%cert <br>
left=192.168.1.210 <br> leftid="C=X, ST=X, O=X, OU=X, CN=X , E=X" right=%any #any vpn client who wants to connect ,so we dont need to specify rightid= #
<br> leftcert=VPN2Cert.pem <br> #rightca=%same "it is not required when u have only one CA cert as i checked" <br>
auto=add <br><br>And for the road-warrior<br><br>conn road-x509<br> type=tunnel<br> authby=rsasig<br> leftrsasigkey=%cert<br> rightrsasigkey=%cert<br> left=192.168.1.210<br> leftid="C=X, ST=X, O=X, OU=X, CN=X, E=X"<br> right=%defaultroute<br>
rightsendcert=always<br> rightcert=VPN1Cert.pem<br> #leftca=%same "it is not required when u have only one CA cert as i checked" <br> auto=add<br>#**END**#<br><br><div>Thanks again. <br><br></div><span style="font-weight: bold; font-style: italic;">Amin Farajian</span><div><br></div><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><br><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><font size="2" face="Tahoma">----- Forwarded Message ----<br><b><span style="font-weight: bold;">From:</span></b> Antony Richards <arichards@cybertec.com.au><br><b><span style="font-weight: bold;">To:</span></b> Paul Wouters <paul@xelerance.com><br><b><span style="font-weight:
bold;">Cc:</span></b> farajian amin <amin_o_city@yahoo.com>; users@openswan.org<br><b><span style="font-weight: bold;">Sent:</span></b> Wed, March 10, 2010 2:33:17 AM<br><b><span style="font-weight: bold;">Subject:</span></b> Re: [Openswan Users] automatic X509 certificate xchange<br></font><br>
Hi,<br>
<br>
On 03/10/2010 05:53 AM, Paul Wouters wrote:
<blockquote type="cite">
<pre>On Tue, 9 Mar 2010, farajian amin wrote:<br><br> </pre>
<blockquote type="cite">
<pre>If openswan does request other side certificate , why we need to copy other side certificate to the /etc/ipsec.d/certs too.<br> </pre>
</blockquote>
<pre>You do not need to do that.<br><br> </pre>
<blockquote type="cite">
<pre>I have the following configuration on a client as a road-warrior:<br> </pre>
</blockquote>
<pre> </pre>
<blockquote type="cite">
<pre>conn road-x509<br> left=192.168.1.210<br> right=%any<br> type=tunnel<br> leftcert=VPN2Cert.pem<br> rightcert=VPN1Cert.pem<br> </pre>
</blockquote>
<pre>Assuming 192.168.1.210 is the gateway, you need right=%defaultroute, not right=%any<br>You do not need the leftcert= line. I would add rightsendcert=always.<br><br> </pre>
</blockquote>
(Assuming left is the gateway). If both certificates are signed by the
same Certificate Authority, I would remove <b>leftcert</b>, and add <b>leftca=%same
</b>(The documentation it says its on by default, but when testing I
found I needed it).<br>
<br>
That way you only need to put VPN1Cert.pem on the host.<br>
<br>
Likewise, for the gateway (below), remove <b>rightcert</b> and add <b>rightca=%same</b><br>
<b><br>
</b>Regards,<br>
Antony.<br>
<br>
<blockquote type="cite">
<pre></pre>
<blockquote type="cite">
<pre>and for the gateway:<br><br>conn road-x509<br> left=192.168.1.210<br> right=%any<br> type=tunnel<br> leftcert=VPN2Cert.pem<br> rightcert=VPN1Cert.pem<br> </pre>
</blockquote>
<pre>You do not need rightcert=<br><br>Paul<br>_______________________________________________<br><a rel="nofollow" class="moz-txt-link-abbreviated" ymailto="mailto:Users@openswan.org" target="_blank" href="mailto:Users@openswan.org">Users@openswan.org</a><span>
<a target="_blank" href="http://lists.openswan.org/mailman/listinfo/users">http://lists.openswan.org/mailman/listinfo/users</a>
Building and Integrating Virtual Private Networks with Openswan:
<a target="_blank" href="http://www.amazon.com/gp/product/1904811256/104-3099591-2946327?n=283155">http://www.amazon.com/gp/product/1904811256/104-3099591-2946327?n=283155</a>
</span></pre>
</blockquote>
<br>
</div></div>
</div><br>
</body></html>