<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Helvetica,sans-serif;" dir="ltr">
<p>No luck. <br>
</p>
<p><br>
</p>
<p>I'm in the <span>/etc/ipsec.d <span>directory </span></span>and my permissions on that directory are set to:</p>
<p><br>
</p>
<p> <span>drwx------ 2 root root 4096 Aug 17 14:16 private</span><br>
</p>
<br>
<p>Does that all look correct?<br>
</p>
<br>
<br>
<div style="color: rgb(0, 0, 0);">
<div>
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="x_divRplyFwdMsg" dir="ltr"><font style="font-size:11pt" face="Calibri, sans-serif" color="#000000"><b>From:</b> Andreas Steffen <andreas.steffen@strongswan.org><br>
<b>Sent:</b> Monday, September 18, 2017 11:50 PM<br>
<b>To:</b> R. Masucci; users@lists.strongswan.org<br>
<b>Subject:</b> Re: [strongSwan] Permission Denied error</font>
<div> </div>
</div>
</div>
<font size="2"><span style="font-size:10pt;">
<div class="PlainText">Hi, try<br>
<br>
sudo -s<br>
ipsec pki --gen > caKey.der<br>
<br>
Regards<br>
<br>
Andreas<br>
<br>
On 19.09.2017 02:24, R. Masucci wrote:<br>
> I just got StrongSwan installed on Ubuntu 14.04 and I tried to create a<br>
> key using the instructions provided: <br>
> <br>
> ipsec pki --gen > caKey.der<br>
> <br>
> gets me the following error:<br>
> <br>
> <br>
> bash: caKey.der: Permission denied<br>
> <br>
> <br>
> I tried to run it with sudo and I get the same error. I assume the key<br>
> would be populated in:<br>
> <br>
> /etc/ipsec.d/private<br>
> <br>
> <br>
> Any help is appreciated!<br>
> <br>
> <br>
<br>
-- <br>
======================================================================<br>
Andreas Steffen andreas.steffen@strongswan.org<br>
strongSwan - the Open Source VPN Solution! <a href="http://www.strongswan.org" id="LPlnk842977" previewremoved="true">
www.strongswan.org</a>
<div id="LPBorder_GT_15058234846310.11134053379849307" style="margin-bottom: 20px; overflow: auto; width: 100%; text-indent: 0px;">
<table id="LPContainer_15058234846260.2900492132193361" style="width: 90%; background-color: rgb(255, 255, 255); position: relative; overflow: auto; padding-top: 20px; padding-bottom: 20px; margin-top: 20px; border-top: 1px dotted rgb(200, 200, 200); border-bottom: 1px dotted rgb(200, 200, 200);" role="presentation" cellspacing="0">
<tbody>
<tr style="border-spacing: 0px;" valign="top">
<td id="TextCell_15058234846270.8913845692986085" style="vertical-align: top; position: relative; padding: 0px; display: table-cell;" colspan="2">
<div id="LPRemovePreviewContainer_15058234846280.6877192496470446"></div>
<div id="LPTitle_15058234846280.5586396555393403" style="top: 0px; color: rgb(0, 120, 215); font-weight: 400; font-size: 21px; font-family: "wf_segoe-ui_light","Segoe UI Light","Segoe WP Light","Segoe UI","Segoe WP",Tahoma,Arial,sans-serif; line-height: 21px;">
<a id="LPUrlAnchor_15058234846290.16491481558841514" style="text-decoration: none;" href="http://www.strongswan.org/" target="_blank">strongSwan - IPsec VPN for Linux, Android, FreeBSD, Mac OS X, Windows</a></div>
<div id="LPMetadata_15058234846290.6871901130263899" style="margin: 10px 0px 16px; color: rgb(102, 102, 102); font-weight: 400; font-family: "wf_segoe-ui_normal","Segoe UI","Segoe WP",Tahoma,Arial,sans-serif; font-size: 14px; line-height: 14px;">
www.strongswan.org</div>
<div id="LPDescription_15058234846300.28860132279210904" style="display: block; color: rgb(102, 102, 102); font-weight: 400; font-family: "wf_segoe-ui_normal","Segoe UI","Segoe WP",Tahoma,Arial,sans-serif; font-size: 14px; line-height: 20px; max-height: 100px; overflow: hidden;">
strongSwan is an Open Source IPsec-based VPN solution for Linux and other UNIX based operating systems implementing both the IKEv1 and IKEv2 key exchange protocols.</div>
</td>
</tr>
</tbody>
</table>
</div>
<br>
Institute for Networked Solutions<br>
HSR University of Applied Sciences Rapperswil<br>
CH-8640 Rapperswil (Switzerland)<br>
===========================================================[INS-HSR]==<br>
<br>
</div>
</span></font></div>
</div>
</body>
</html>