Currently, I'm using openssl req -x509 to create root certificates and openssl x509 to create all other certificates. I'm using the openssl x509 parameters -CAserial and -CAcreateserial to let OpenSSL automatically increment and manage the serial number upon updating the non-root certificates. How can I do the same thing with the root certificate? Should I use openssl x509 to create the root certificate as well? Or are you recommending that I deal with serials in some other way?

I'm using:

openssl req -passin file:" + keyPassPhraseFile.getAbsolutePath() + " -out " + certificateFile.getAbsolutePath() + " -passout file:" + certificatePassPhraseFile.getAbsolutePath() + " -new -subj \"/C=" + certificate.getCountryCode() + "/ST=" + certificate.getLocalityName() + "/L=" + certificate.getStateOrProvinceName() + "/CN=" + certificate.getCommonName() + "\" -key " + privateKeyFile.getAbsolutePath() + " -x509 -days " + certificate.getDays()

Thanks in advance!
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    [email protected]
Automated List Manager                           [email protected]

Reply via email to