I want to see how my application will behave in case if the SSL certificate expires.
CSR are signed by CA, so they are not self-signed and the validity period is 2 years. For my test I want to set the expiration period as 1 day. I don't have control over the CA so I can't create a new template for a certificate validity of one day.
Is there a way to set the validity period in a CSR?