authentication of 'vpn.demo.com' (myself) with RSA signature failed when use apple`s device connect #1408
-
My Strongswan Start log connect log When i install strongswan on centos8 rocky linux 8 almalinux8 My macOS 16, iOS 16 connect success. But when i install strongswan on centos9 rockylinux9 almalinux9 Android connnect success but when i use Apple`s device connect It show error log; authentication of 'vpn.demo.com' (myself) with RSA signature failed I have replease real ip daemon with fake ip daemon; |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 5 replies
-
|
First of all, why do you load you CA private key in strongswan?
This potentially exposes the private key of you CA in case of a breach. Jackpot! |
Beta Was this translation helpful? Give feedback.
-
|
What ID does yout server certificate confirm .The ID is the DSN of the CN or the SAN of your certificate. The logs tell me that the cert CN is 'C=CN, O=DEMO, CN=SERVER.DEMO.COM' So please change the leftid = 'C=CN, O=DEMO, CN=SERVER.DEMO.COM' |
Beta Was this translation helpful? Give feedback.
-
|
thank you for your remind, I have remove ca.key,and change lieftid=server.demo.com, it still does not work, |
Beta Was this translation helpful? Give feedback.
-
|
I told you to set leftid to 'C=CN, O=DEMO, CN=SERVER.DEMO.COM'. |
Beta Was this translation helpful? Give feedback.
-
It looks like the Apple device doesn't support IKEv2 signature authentication, so the RSA signature is done with SHA-1 (the Android client uses signature authentication with SHA-2). Maybe the OpenSSL 3 version (or its configuration) on the newer system refuses to do that. You could try increasing the priority of the gmp plugin (or reducing the one of the openssl plugin, or disable the latter completely). |
Beta Was this translation helpful? Give feedback.

It looks like the Apple device doesn't support IKEv2 signature authentication, so the RSA signature is done with SHA-1 (the Android client uses signature authentication with SHA-2). Maybe the OpenSSL 3 version (or its configuration) on the newer system refuses to do that. You could try increasing the priority of the gmp plugin (or reducing the one of the openssl plugin, or disable the latter completely).