[strongSwan] "no private key found for" ERROR

李国营 liguoying16 at 126.com
Wed Dec 25 03:06:19 CET 2019


“no private key found for 'C=CN, ST=Some-State, O=SD, CN=server'”


I found this error.


My cert is like this:
.
./cacerts
./cacerts/cacert.pem
./ocspcerts
./certs
./certs/servercert.pem
./acerts
./aacerts
./crls
./reqs
./private
./private/serverkey.pem


My ipsec.conf is like this:
conn host-host
left=172.16.10.126
leftsubnet=10.1.0.0/16
leftid="C = CN, ST = Some-State, O = SD, CN = server"
leftcert=servercert.pem
leftfirewall=yes
right=172.16.10.127
rightsubnet=10.2.0.0/16
rightid="C = CN, ST = Some-State, O = SD, CN = client"


My ipsec.secrets is like this:
: SM2 serverkey.pem


help ~~~





--
------
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.strongswan.org/pipermail/users/attachments/20191225/0631bf38/attachment.html>


More information about the Users mailing list