openssl - What is the difference between req_extensions in config and -extensions on command line? -
the sample openssl root ca config openssl cookbook defines following (p40):
[req] ... req_extensions = ca_ext [ca_ext] ... later (p43), root ca key generated, root ca selfsigned cert.
openssl req -new \ -config root-ca.conf \ -out root-ca.csr \ -keyout private/root-ca.key openssl ca -selfsign \ -config root-ca.conf \ -in root-ca.csr \ -out root-ca.crt \ -extensions ca_ext isn't req_extensions redundant in specific use case? when req_extension needed?
req_extensions used declaring request extensions included in pkcs #10 certificate signing request (csr) objects. extensions part of signed data in csr.
in general, ca, when creating , signing x.509 certificate in response csr, , depending on certificate profile, may or may not heed particular request extensions. need use generate csr use ca expects particular information conveyed in way.
openssl not copy any extensions pkcs #10 requests x.509 certificates; extensions certificates must explicitly declared. openssl x509 man page provides commentary:
extensions in certificates not transferred certificate requests , vice versa.
because using openssl ca, use of req_extensions indeed redundant.
Comments
Post a Comment