Hello,
I am creating certs using the following commands:
openssl req -days 3650 -nodes -new -keyout $cName.key -out $cName.csr -config $KEY_CONFIG -subj /countryName=CA/stateOrProvinceName=AB/localityName=Calgary/organizationName=Domain.com/organizationalUnitName=$1/commonName=$cName/[EMAIL PROTECTED]/unstructuredName=$2/
openssl ca -days 3650 -out $cName.crt -in $cName.csr -config $KEY_CONFIG -batch
Now I can view the subject of the CSR and CERT by:
openssl req -noout -in $cName.csr -subject
openssl x509 -noout -in $cName.crt -subject
However I noticed that the "unstructuredName" entry only appears in the CSR and not in the CRT file. Is this normal ? How can I make the unstructuredName entry be added to the CRT subject ?
I am storing unique info about each cert in this field so I would like to be able to view it. Maybe I should be using something else besides the unstructuredName field ?
Thanks
Michael Gale
Title: subject in csr different from crt ?