<div dir="ltr">Hi,<div><br></div><div>I am trying to establish the IPsec tunnel with certificates with charon.</div><div><br></div><div>From the logs the below error is thrown:</div><div><br></div><div><div>L0 - RSAPrivateKey:</div>
<div> charon: 00[LIB] L1 - version:</div><div> charon: 00[LIB] => 1 bytes @ 0x1200ac406</div><div> charon: 00[LIB]    0: 00                                               .</div><div> charon: 00[LIB] L1 - modulus: ASN1 tag 0x02 expected, but is 0x30</div>
<div> charon: 00[LIB] => 15 bytes @ 0x1200ac407</div><div> charon: 00[LIB]    0: 30 0D 06 09 2A 86 48 86 F7 0D 01 01 01 05 00     0...*.H........</div><div>charon: 00[LIB] building CRED_PRIVATE_KEY - RSA failed, tried 5 builders</div>
<div> charon: 00[CFG]   loading private key from '/etc/ipsec/certs/ipsec.d//private/defaultPrivateKey.pem' failed</div><div> charon: 00[LIB] plugin 'stroke': loaded successfully</div><div> charon: 00[LIB] plugin 'kernel-netlink': loaded successfully</div>
<div> charon: 00[DMN] loaded plugins: openssl random pem x509 pubkey pkcs1 hmac xcbc stroke kernel-netlink</div><div>May 31 13:32:21.117438 info CLA-0 charon: 00[JOB] spawning 16 worker threads</div><div>charon: 07[LIB]   file content is not binary ASN.1<br>
</div><div><br></div><div style>Can some one help me here.</div><div style><br></div><div style>Using strongswan version:4.5.3</div><div style><br></div><div style><div>cat defaultPrivateKey.pem </div><div>-----BEGIN PRIVATE KEY-----</div>
<div>MIIEvQIBADANBgkqhkiG9w0BAQEFAASCBKcwggSjAgEAAoIBAQCyoayXeOOMy5rE</div><div>tqdP56GJnNP29Ul1OSk7W8BS9Y6yZb0dlcL4NWhg4xbPk4zBZKR1FUsjKYUcNogE</div><div>33G5/muESiPzLWE8CeMGf6WrXH40W99kpIho204WsIJlLG3OCF2UQCXA/FGYJTqe</div>
<div>ODKQzea0oxjEHzLdSxpYaCAggPeBuiZ5+2kf+hE+d1qxOYheFM0JGkduXr2F9I+f</div><div>VMDAXk64uCG8v7z5DlTrYhgDr3WhRkzv+STIDuAvqiFaV26bpa7lqmpEcO5nrklF</div><div>3jJ8cDWSn+l390TIdg8pn4bJTyyfs9cYtpDpn0fndvuFvncbGAT+b5EifoUES6J9</div>
<div>mmIBHioRAgMBAAECggEBAJZrxF2NI/jE3yA1OzDzObkbAfcc2G3I46qjeZGiTDZ3</div><div>q8fE+/htaOblc6j6c/XKnR4m/y2t4fQ/C00nJ6pazwkIMbuuBAo9vRoU1Vo2ueO3</div><div>Vad3UZMS0XAT1MoDnrd3ne2gEuquzrrS5sijRBlh+Zs1GD7Wkst8WcQGcr9MOp/W</div>
<div>y9B+gOMb8QcoJkiyenKIGstyFFLUd8IWtzLpPVKYABfjw+qIFmZno2+Z3uWnE6jM</div><div>h8J7sWFXQyBtcylhd9jxGpPn9gPkt4v9kWMe2+Pd7vCbRMQrVGx3hIuUSaLpeN11</div><div>hLsCJGaSY+y4wd5P5cbL6/OveU0eEgUlQ5LYx5DngFECgYEA4CjtDmrAXnMZSbAW</div>
<div>uriD9IjsEhBwY0xYQXteNq216NYAO27e+Hl6seXG1AIPKxpbA+y9ZwOQhDA9adCV</div><div>fZHzd0k7QqVzEgyIo9gNa30zGIaPBG3DYKFK7bxg16MUt8K8HZKxCDG4b1gKjHJq</div><div>7G+6ANM5k3P22gLFgsgF8D34i8UCgYEAzAE2R0qzjcDa6+6cG0f9aikITl2d2TMZ</div>
<div>pMC0hhy1YiSD7940QtxjnMD5dCGWYGnQhYLum78jMP49NpJcDfHfJC8QNp5vrPjq</div><div>dVXqWdDDf+f64ck6GYvVs+7DzCQHcLdmruvmId5p73TrSaZIpRDA8aXizJr9XfDl</div><div>sXRUSJlqjd0CgYB5pfwwLMLE/xWkJcnP/z6tQHlMvFshqFblAnx4lAD6oNhzaJHc</div>
<div>qqBpVtd2Sr/Mlnr6QEnxU7/j3QIXILlf8gr8m2Nrobo2+1JUCHYP9Vv7XVrT/nVf</div><div>RWkSZ37ux3QA3c+VBPzKA6Gh21euLJHWSjPZKsg+O1qlqYdimAaRADCYOQKBgC1o</div><div>G6e0ldB4W4HmAzMDTAFkDqg6qBafDBcimUu8ehbVH9S09ZboLPfH7/4MN8dP5gzB</div>
<div>ftCFs5SFEiTiYMDt1AfevdIaY6rxYGYrcFT7ZXhDrxCwVFE5UaCSBVybrFhHSgCn</div><div>Gvrw4U1eDby/2S18VCW1EY0O9lQBeW6NAPGDzDa1AoGAFGpXEPZfEV0RbZO7dLMN</div><div>O3x1Oz75HGdkLot3Cvc6RuLr8uxnQzGPTQ3FcNMnlLHnjhdmB+9rMpZlD3gmxKVv</div>
<div>73UfJd4+oP5VfWrAEcMAZCXrJsp1TjECwAp4Qrvv+aJZI+c9qYhRhuoTMHG+NLMK</div><div>GMAIlLWjiZrkCZEtW15hD+o=</div><div>-----END PRIVATE KEY-----</div></div><div><br></div>--Bhargav <br><br>
</div></div>