Hm isn't it a comment which can be removed? I think with openssl -inform it should be possible
-
-
-
-
Or better
Code- root@wheezy:~# openssl asn1parse -i -in private.key
- 0:d=0 hl=2 l= 119 cons: SEQUENCE
- 2:d=1 hl=2 l= 1 prim: INTEGER :01
- 5:d=1 hl=2 l= 32 prim: OCTET STRING [HEX DUMP]:B8EA11CDD06A6DBA9F160ECA4A97FA4C4E8A7E0CE4E44EAE100C3B9810284413
- 39:d=1 hl=2 l= 10 cons: cont [ 0 ]
- 41:d=2 hl=2 l= 8 prim: OBJECT :prime256v1
- 51:d=1 hl=2 l= 68 cons: cont [ 1 ]
- 53:d=2 hl=2 l= 66 prim: BIT STRING
On the key directly -
-
-
But how do you distinguish between ECDSA and RSA with this command?
The only difference is the length of the key. -
Can you give a try:
In the file engine/PerlLib/iMSCP/OpenSSL.pm (in the validatePrivateKey subroutine) Replace:
by
The only difference is the length of the key.
Once done, try again to add your cert through GUI.Thank for testing.
Edit:
The only difference is the length of the key.
No, the used curve is also part of the key. -
-
-
-
-
Forgot other line that you must also change so wait. Better is the commit which will come in two minutes
Ok, then I'll wait.
-
Yeah
Just wait my commit. I forgot to give you another line to change The commit comes now.
-