w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
How to send the public key to the server?

You're right, for reasons unknown to me the EC keytype is not supported/not working on webkit (which both Chrome and Safari are) and the only one I was able to get working in Chrome was the default RSA type. E.g.:

<keygen name="RSA public key" challenge="123456789"

On Firefox however the RSA, DSA and EC are all supported as expected. Especially with new features like this it's a good idea to always check in different browsers (and safari is not worth testing in, as they either support less or the same as Chrome).

And beyond that you should realize that w3schools has nothing to do with w3 and is a terrible source of information. (Just checked their <keygen> page). You are far better of checking <keygen> on MDN, although even that article is a bit limited to my taste.

© Copyright 2018 w3hello.com Publishing Limited. All rights reserved.