** Description changed:

- The CA/Browser Forum now has a standard with maximum expiration of 825
- days.
+ [Impact]
+ The CA/Browser Forum now has a standard with maximum expiration of 825 days.  
`ssl-cert generate-default-snakeoil` hardcodes this to 10 years (3650 days), 
but provides no mechanism for setting this to alternative values, such as 825.
+ 
+ [Test Case]
+ $ openssl x509 -enddate -noout -in /etc/ssl/certs/ssl-cert-snakeoil.pem
+ notAfter=Dec 15 04:21:19 2029 GMT
+ $ sudo rm /etc/ssl/certs/ssl-cert-snakeoil.pem 
/etc/ssl/private/ssl-cert-snakeoil.key
+ $ make-ssl-cert --expiration-days=10 generate-default-snakeoil
+ notAfter=Nov 24 04:21:43 2020 GMT
+ 
+ [Where Problems Could Occur]
+ The fix for this bug includes a new implementation of option handling, so the 
most likely place to watch for issues would be options that no longer work or 
behave differently.  However, the script previously supported only a small 
number of ways to be executed so is simple to just test all the combinations.
+ 
+ The purpose of the script itself is to create certificates, so another
+ obvious thing to watch would be invalidly generated certificates.
+ 
+ [Original Report]
+ The CA/Browser Forum now has a standard with maximum expiration of 825 days.
  
  References:
  
  https://cabforum.org/2017/03/17/ballot-193-825-day-certificate-lifetimes/
  
https://www.sslshopper.com/cab-forum-reduces-max-cert-validity-to-825-days.html
  https://support.apple.com/en-us/HT210176
  
  Related previous issue when changed from 30-days to 10-years:
  
  "ssl-cert generate-default-snakeoil provides no way to override default 30 
day expiration"
  https://bugs.launchpad.net/ubuntu/+source/ssl-cert/+bug/253512
  
  """
  The openssl req command requires a -days argument to override the default 
number of days (30) for validity of self-signed certifiicates. 30 days seems an 
unreasonably low default. I have found no way to change this without fiddling 
with /usr/sbin/make-ssl-cert and adding "-days 365" (for example) to the 
relevant command line.
  """

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1853021

Title:
  ssl-cert generate-default-snakeoil provides no way to override default
  10 year expiration or reduce to 825 day expiration

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ssl-cert/+bug/1853021/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to