PeculiarVentures / x509

@peculiar/x509 is an easy to use TypeScript/Javascript library based on @peculiar/asn1-schema that makes generating X.509 Certificates and Certificate Requests as well as validating certificate chains easy
https://peculiarventures.github.io/x509/
MIT License
78 stars 10 forks source link

Fix exporting SPKI with RSA-PSS algorithm #76

Closed microshine closed 1 month ago

microshine commented 1 month ago

This pull request fixes an issue where the PublicKey class was not correctly exporting SPKI with RSA-PSS algorithm in browsers. The code now converts RSA-PSS algorithm to RSA-PKCS1 before exporting.