kjur / jsrsasign

The 'jsrsasign' (RSA-Sign JavaScript Library) is an opensource free cryptography library supporting RSA/RSAPSS/ECDSA/DSA signing/validation, ASN.1, PKCS#1/5/8 private/public key, X.509 certificate, CRL, OCSP, CMS SignedData, TimeStamp, CAdES and JSON Web Signature/Token in pure JavaScript.
https://kjur.github.io/jsrsasign
Other
3.25k stars 646 forks source link

Generating a CSR with RSA as algorithm does not work with sample script #607

Closed robcordes closed 7 months ago

robcordes commented 7 months ago

The example gencsr script does not work as keyutil does not recognize the algorithm RSA. node testCSRGen.js -a RSA -s 2048 -d /c=us,ou=dep,cn=apples.com 20240501102222

The script contained in the testCSRGen.js is the script I found as an example on GIT >>> gencsr - generate keypair and CSR, then save them to files.

The exception is :

Error: unknown algorithm: undefined at KEYUTIL.generateKeypair

The jsrsasign version is 11 and the same for jsrsasign-util.

kjur commented 7 months ago

Please use jsrsasign 11.1.0 released today.