I am fairly new to OpenSSL and I am trying to specify a certificate that is valid for just one hour using OpenSSL. I have been successful in doing so with openssl ca using the -startdate and -enddate options, but I was wondering if it is possible to set the validity in a configuration file for use with openssl req? If so, could you provide an example?
I tried using similar syntax as:
privateKeyUsagePeriod = ASN1:SEQUENCE:privateKeyUsagePeriod
[privateKeyUsagePeriod]
notBefore = IMPLICIT:0,GENERALIZEDTIME:20170501000000Z
notAfter = IMPLICIT:0,GENERALIZEDTIME:22910501000000Z
This syntax does not seem to work for the validity. Thank you all in advance for any guidance you can give me.