Closed pizzasaurusrex closed 3 years ago
It occurs cause @peculiar/x509
doesn't support DSA algorithm and your certificate's public key is DSA. It's possible to extend the module in runtime by adding DSAAlgorithm
provider (see ED algorithm)
But maybe it would be better don't throw an exception on parsing and return UnknownAlgorithm
for such cases
interface UnknownAlgorithm {
name: string; // 1.2.840.10040.4.1
params?: ArrayBuffer | null;
}
I'll update the module today
@pizzasaurusrex Please try @peculiar/x509@1.3.0
@microshine that fixed it, thank you !
I'm hoping to get some info on an error I'm running into when parsing a certificate using
new x509.X509Certificate()
. When I try to parse the below cert it throws an errorCannot convert ASN.1 algorithm to WebCrypto algorithm'
- per the code this looks expected. but I was able to parse this withpkijs
and `asn1js' I'm just wondering if this is intended or if there's a workaround.cert: