You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
from_pem_file() calls eventually to config_from_pem() which restricts the keys to be of type Some(Item::RSAKey(key)) or Some(Item::PKCS8Key(key)) and this rejects a lot of EC keys. One either needs to convert it from SEC1 to PKCS8 or directly encode into DER and load the files by hand to call from_der() instead.
Adding proper support for EC keys should be as simple as adding Some(Item::ECKey(key)) to the match clause of config_from_pem(). I'd be happy to open a pull request for it.
The text was updated successfully, but these errors were encountered:
from_pem_file() calls eventually to config_from_pem() which restricts the keys to be of type
Some(Item::RSAKey(key))
orSome(Item::PKCS8Key(key))
and this rejects a lot of EC keys. One either needs to convert it from SEC1 to PKCS8 or directly encode into DER and load the files by hand to callfrom_der()
instead.Adding proper support for EC keys should be as simple as adding
Some(Item::ECKey(key))
to the match clause ofconfig_from_pem()
. I'd be happy to open a pull request for it.The text was updated successfully, but these errors were encountered: