hwdsl2 / setup-ipsec-vpn

Scripts to build your own IPsec VPN server, with IPsec/L2TP, Cisco IPsec and IKEv2
Other
25.41k stars 6.34k forks source link

windowsCertRequirements #1137

Closed dnsbzb closed 2 years ago

dnsbzb commented 2 years ago

Checklist

Describe the enhancement request A clear and concise description of your enhancement request.

Is your enhancement request related to a problem? Please describe. (If applicable) A clear and concise description of what the problem is.

Additional context You need to add --extSAN parameters for windows See: https://docs.strongswan.org/strongswan-docs/5.9/interop/windowsCertRequirements.html изображение

hwdsl2 commented 2 years ago

@dnsbzb Hello! In the IKEv2 helper script, the --extSAN parameter is already added when creating the server certificate. See: https://github.com/hwdsl2/setup-ipsec-vpn/blob/9e58aace4809737bdd255c09ecc803261cdf8517/extras/ikev2setup.sh#L1021-L1052

Client certificates do NOT have this requirement, only the VPN server certificate.

dnsbzb commented 2 years ago

@dnsbzb Hello! In the IKEv2 helper script, the --extSAN parameter is already added when creating the server certificate. See:

https://github.com/hwdsl2/setup-ipsec-vpn/blob/9e58aace4809737bdd255c09ecc803261cdf8517/extras/ikev2setup.sh#L1021-L1052

Client certificates do NOT have this requirement, only the VPN server certificate.

Yes, I agree, I see it in the documentation. But until I added this - I was getting error 13801 when connecting a client with windows 10. Very strange!

hwdsl2 commented 2 years ago

@dnsbzb Error 13801 could occur when the VPN server address specified on your VPN client device does not exactly match the server address in the output of the IKEv2 helper script. See: https://github.com/hwdsl2/setup-ipsec-vpn/blob/master/docs/ikev2-howto.md#ike-authentication-credentials-are-unacceptable