How to create own self-signed root certificate and intermediate CA to be imported in Java keystore?
How to create self-signed root certificate and intermediate CA to be imported in Java keystore? We will use this for SSL and TLS, and later for Client certificate based CLIENT-AUTH authentication. Using OpenSSL and KeyTool. tuomassalo Just a side note for anyone wanting to generate a chain and a number of certificates. Refining @EpicPandaForce's own answer, here's a script that creates a root CA in root-ca/ , an intermediate CA in intermediate/ and three certificates to out/ , each signed with the intermediate CA. #!/bin/bash -x set -e for C in `echo root-ca intermediate`; do mkdir $C cd $C