0

I am using the CsrHelper class from here: Certificate enrollment process


but my default_signature_algorithm is sha512withrsa. Although, when I put the csr in a file to analyse it using openssl's tool to analyze the csr: openssl req -in file.txt -noout -text

The subject, public key algorithm are all fine. The issue is in the signature algorithm where it is sha1withrsaencryption It should be sha512withrsa.

What am I doing wrong? Is there a config file somewhere to modify. I have java 1.8.0_144

  • Did you update that code to use SHA512withRSA? Show your changes please – pedrofb Mar 01 '18 at 19:35
  • Basically add `ALGOS.put("SHA512withRSA".toLowerCase(), new AlgorithmIdentifier(new ASN1ObjectIdentifier("1.2.840.113549.1.1.13")));` and change the DEFAULT_SIGNATURE_ALGORITHM – pedrofb Mar 01 '18 at 19:43

0 Answers0