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.
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 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.