Open Menduist opened 1 year ago
This is not some parsing error, chronos
do not have support for PKCS#1 PEM format.
Weird, by just replacing with "PRIVATE KEY" in the key file it seemed to work
Its not that simple, when you put BEGIN PRIVATE KEY
it means that binary representation could have RSA or EC-NIST private key inside. It is part of PKCS#8 standard and type of key is encoded in binary form. While BEGIN RSA PRIVATE KEY
could/should have just simple binary encoded RSA private key.
Also there is such usage as BEGIN EC PRIVATE KEY
...
zerossl provides files like this:
But at parsing, we only support
BEGIN PRIVATE KEY
: https://github.com/status-im/nim-chronos/blob/9df76c39df254c7ff0cec6dec5c9f345f2819c91/chronos/streams/tlsstream.nim#L698