A simple example of generating CSR programatically. This project was tested with Java 8.
- CSR with Subject Alternative Name containing RFC 4683 (Subject Identification Method)
- You can easily use this example to integrate with private key from HSM (Hardware Security Module). Just change the signing process to use HSM
- Use mvn package to build the module into jar file
mvn clean package
- Put the resulting jar in your classpath
- Add dependencies in your pom.xml as in the pom.xml of the project
N/A
For feedback, please raise issues in the issue section of the repository. Periodically, I will update the example with more real-life use case example. Enjoy!!.