[Swan] ECDSA Re: Libreswan 4.6: connection IKEv2 win10 to Linux freezes soon after Android device connects
mx2927 at gmail.com
Sat Jan 15 22:04:17 EET 2022
I ran into the issue about ECDSA certs with Windows 10 a while ago, and
Paul explained to me that there is in fact a problem with exchanging
ECDSA certs between Libreswan and Windows 10.
Here is what I have found (taken from a 2020 post from me on this list):
> If you use authby=ecdsa libreswan will authenticate according to RFC7427, but for this type of authentication (EC digital signatures) Windows uses RFC4754:
> They are both valid standard proposals, the one used by libreswan (RFC7427) is more recent and is meant to be a common standard that generalizes different authentication methods including ECDSA.
> But apparently RFC7427 is not backwards compatible to RFC4754, so Windows and libreswan can't exchange ECDSA digital signatures.
> RFC4754 is not obsoleted by RFC7427, so it is likely that Windows will keep using it until they have reason not to.
If something has changed in the meantime, I'd love to hear.
As a side note, following this thread, if I am not mistaken you are
using MODP1024, which is known to be weak.
It is actually possible to use MODP2048 (and maybe higher) with Windows
10, by using the Powershell function "Set-VpnConnectionIPsecConfiguration".
Windows 10 still defaults to MODP1024, but using that function you can
configure an IKEv2 VPN connection to use MODP2048 (aka DH Group 14).
On 1/15/22 8:30 PM, Mirsad Goran Todorovac wrote:
> On 1/14/2022 10:01 PM, Paul Wouters wrote:
>> You can look at our python code for generating CAs, certs et all that
>> generates a bunch of different (normal and very weird) things:
> I have tried it, but I really do not know how to install .pem or .crt
> and .key into Windows 10 Local Machine key store, let alone how to
> organize key distribution of keys without a password.
> It would be optimal if my modified script for -k ec -q secp384r1 worked,
> but alas no luck with that thus far.
> In the end, RSA certs work just fine, I have also tried the strongswan
> client on Android and it is OK, though slightly slower than the native
> connection. ECDSA is just the final touch, it would be nice if that
> worked, but for IKEv2 working I am very grateful and thank the LORD and
> good Heavens!
> I am really motivated by your policy to support people from all
> backgrounds and all walks of life. I feel motivated to contribute to the
> team in a supportive working atmosphere.
> If I could finish this EC certs problem, that would be just fine because
> I hate to quit. I must be doing *something* wrong because this seems to
> have been supported in Windows 8.1 already:
> So, eventually I will think of something, but right now I feel like I'm
> out of options.
> I just can't explain why Windows 10 can't see the generated .p12 ECDSA
> cert in the store.
> Kind regards,
> Mirsad Goran Todorovac
> CARNet sistem inženjer
> Grafički fakultet | Akademija likovnih umjetnosti
> Sveučilište u Zagrebu
More information about the Swan