Opening certificates or public keys with EC keys using explicit parameters end in exception
When I open a file with either a certificate or na EC public key in it that uses explicit parameters to describe the EC public key, KSE shows an exception:
Error Occurred
java.lang.IllegalArgumentException:
illegal object in getInstance:
org.bouncycastle.asn1.DLSequence
This bug is found in KSE 5.5.0, 5.5.1 and 5.5.2, but before in KSE 5.4.4 the bug did not exist and the mentioned EC public keys were read successfully by KSE
To Reproduce
An EC public key with named-curve works fine:
openssl ecparam -name secp256r1 -param_enc named_curve -genkey -noout -out secp256key-nc.pem
openssl ec -in secp256key-nc.pem -pubout -out secp256pub-nc.pem
kse secp256pub-nc.pem
An EC public with explicit EC parameters ends in error:
openssl ecparam -name secp256r1 -param_enc explicit -genkey -noout -out secp256key-ex.pem
openssl ec -in secp256key-ex.pem -pubout -out secp256pub-ex.pem
kse secp256pub-nc.pem
Expected behavior
The expected behavior is that KSE can open files with explicit EC public key parameters, as it was in KSE 5.4.x
Opening certificates or public keys with EC keys using explicit parameters end in exception When I open a file with either a certificate or na EC public key in it that uses explicit parameters to describe the EC public key, KSE shows an exception: Error Occurred java.lang.IllegalArgumentException: illegal object in getInstance: org.bouncycastle.asn1.DLSequence
This bug is found in KSE 5.5.0, 5.5.1 and 5.5.2, but before in KSE 5.4.4 the bug did not exist and the mentioned EC public keys were read successfully by KSE
To Reproduce An EC public key with named-curve works fine: openssl ecparam -name secp256r1 -param_enc named_curve -genkey -noout -out secp256key-nc.pem openssl ec -in secp256key-nc.pem -pubout -out secp256pub-nc.pem kse secp256pub-nc.pem
An EC public with explicit EC parameters ends in error: openssl ecparam -name secp256r1 -param_enc explicit -genkey -noout -out secp256key-ex.pem openssl ec -in secp256key-ex.pem -pubout -out secp256pub-ex.pem kse secp256pub-nc.pem
Expected behavior The expected behavior is that KSE can open files with explicit EC public key parameters, as it was in KSE 5.4.x
Screenshots Screenshot from KSE 5.5.2
Screenshot from KSE 5.4.4
Environment