Skip to content

Commit

Permalink
bug fix with self signed root cert expiration not using sign_end_days…
Browse files Browse the repository at this point in the history
… in config
  • Loading branch information
Gene C committed May 26, 2024
1 parent 8bd3059 commit 6404c07
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
project = "ssl-mgr"
copyright = '2023, Gene C'
author = 'Gene C'
release = '3.4.0'
release = '3.5.0'

# -- General configuration ---------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration
Expand Down
2 changes: 1 addition & 1 deletion packaging/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ pkgname='ssl-mgr'
pkgdesc='Manage (re)new certificates and handle DANE TLSA key rollover'
_gitname='ssl-mgr'

pkgver=3.4.0
pkgver=3.5.0
pkgrel=1
url="https://github.com/gene-git/ssl-mgr"

Expand Down
2 changes: 1 addition & 1 deletion src/ssl_mgr/__about__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
"""
Project ssl-mgr
"""
__version__ = "3.4.0"
__version__ = "3.5.0"
4 changes: 2 additions & 2 deletions src/ssl_mgr/certs/self_sign_cert.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ def own_sign_cert(db_dir:str, ssl_ca:'SslCA', ssl_csr:SslCsr):
issuer = ca_cert.subject

time_start = datetime.now(timezone.utc)
days_to_end = max(30, ca_svc.ca.sign_end_days)
days_to_end = max(90, ca_svc.ca.sign_end_days)
time_end = time_start + timedelta(days=days_to_end)

serial = x509.random_serial_number()
Expand Down Expand Up @@ -168,7 +168,7 @@ def _self_signed_root_cert(ssl_cert:'SslCert', ssl_csr:SslCsr):
issuer = csr_subject

time_start = datetime.now(timezone.utc)
days_to_end = min(30, svc.ca.sign_end_days)
days_to_end = max(90, svc.ca.sign_end_days)
time_end = time_start + timedelta(days=days_to_end)

serial = x509.random_serial_number()
Expand Down

0 comments on commit 6404c07

Please sign in to comment.