<p>Dig on redhat docs for ipsec or vpn<br>
 Nss is the &quot;netscape secure sockets&quot; that is viewed by many as more robust than ssl. Many keys are automagically stored and accessed in /etc/pki</p>
<div class="gmail_quote">On Oct 30, 2010 1:20 PM, &quot;David A. De Graaf&quot; &lt;<a href="mailto:dad@datix.us">dad@datix.us</a>&gt; wrote:<br type="attribution">&gt; I&#39;ve posted this query on the fedora-list mailing list, but I think<br>
&gt; the security experts at ALE might know the answers and be more<br>&gt; helpful.<br>&gt; <br>&gt; <br>&gt; Has anyone managed to configure an openswan tunnel under Fedora 13?<br>&gt; The instructions in /usr/share/doc/openswan-doc-2.6.29 may have been<br>
&gt; correct once upon a time, but are simply wrong now.<br>&gt; <br>&gt; Someone has judged that simple exchange of RSA public/private keys<br>&gt; provides insufficient security, so that actual access to those keys is<br>
&gt; further restricted by something called &quot;NSS support&quot;, whatever that is.<br>&gt; Unfortunately, they neglected to tell anyone how to penetrate this extra<br>&gt; veil of protection, as far as I have found, thus rendering a valuable<br>
&gt; security capability unusable by the good guys (me).<br>&gt; <br>&gt; Can anyone point me to lucid and complete documentation of how to use<br>&gt; the &quot;new openswan&quot; system?  After groping through random googleisms, I<br>
&gt; found a way to create the needed RSA keys.  Instead of the documented<br>&gt;   ipsec newhostkey --output /etc/ipsec.secrets<br>&gt; one must first create an NSS password, which goes God-knows-where: <br>&gt;   certutil -N -d /etc/ipsec.d<br>
&gt; and then<br>&gt;   ipsec newhostkey --configdir /etc/ipsec.d \<br>&gt;         --output /etc/ipsec.d/ipsec.secrets --password &lt;thepasswd&gt;<br>&gt; to create the ipsec.secrets file, then move it up a level<br>&gt;   mv /etc/ipsec.d/ipsec.secrets /etc/ipsec.secrets<br>
&gt; <br>&gt; Then you can display the public key in the usual way<br>&gt;   ipsec showhostkey --left<br>&gt; and use it to construct /etc/ipsec.d/net2net.conf based on the example<br>&gt; in &lt;doc&gt;/openswan-doc-2.6.29/config.html.<br>
&gt; <br>&gt; After doing this on the local and remote gateway machines, so they know<br>&gt; how to communicate and recognize each other, the tunnel ought to work.<br>&gt; But it doesn&#39;t.<br>&gt; <br>&gt; When I try to start the tunnel there&#39;s a mysterious error<br>
&gt;   ipsec auto --up net2net<br>&gt;   ...<br>&gt;   003 &quot;net2net&quot; #1: Can&#39;t find the private key from the NSS CERT (err -12285) <br>&gt;   ...<br>&gt; and the negotiation fails.<br>&gt; <br>&gt; Can anyone give a clue how to access this very well hidden private key?<br>
&gt; Google can&#39;t.<br>&gt; <br>&gt; <br>&gt; -- <br>&gt;         David A. De Graaf    DATIX, Inc.    Hendersonville, NC<br>&gt;         <a href="mailto:dad@datix.us">dad@datix.us</a>         <a href="http://www.datix.us">www.datix.us</a><br>
&gt; _______________________________________________<br>&gt; Ale mailing list<br>&gt; <a href="mailto:Ale@ale.org">Ale@ale.org</a><br>&gt; <a href="http://mail.ale.org/mailman/listinfo/ale">http://mail.ale.org/mailman/listinfo/ale</a><br>
&gt; See JOBS, ANNOUNCE and SCHOOLS lists at<br>&gt; <a href="http://mail.ale.org/mailman/listinfo">http://mail.ale.org/mailman/listinfo</a><br></div>