Use `X509CertImpl.newSigned` to simplify certificate generation.

`newSigned` internally sets the `AlgorithmId` and performs signing, so the 
explicit `AlgorithmId` configuration and `sign` call are removed as redundant. 

No functional change intended.

-------------

Commit messages:
 - 8379675: Simplify X509 certificate generation using X509CertImpl.newSigned

Changes: https://git.openjdk.org/jdk/pull/30577/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=30577&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8379675
  Stats: 14 lines in 1 file changed: 0 ins; 6 del; 8 mod
  Patch: https://git.openjdk.org/jdk/pull/30577.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/30577/head:pull/30577

PR: https://git.openjdk.org/jdk/pull/30577

Reply via email to