mirror of
https://git.centos.org/centos/centpkg.git
synced 2025-02-23 08:12:55 +00:00
urlgrabber code has been commented out for 9 years. remove it
Signed-off-by: Troy Dawson <tdawson@redhat.com>
This commit is contained in:
parent
c4fdfc29d1
commit
a62668c923
1 changed files with 0 additions and 3 deletions
|
@ -2,7 +2,6 @@ from __future__ import print_function
|
|||
|
||||
import os
|
||||
from cryptography import x509
|
||||
import urlgrabber
|
||||
import datetime
|
||||
|
||||
# This file was modified from the fedora_cert section in fedora-packager written
|
||||
|
@ -39,8 +38,6 @@ def verify_cert():
|
|||
Expiry time warn if less than 21 days
|
||||
"""
|
||||
my_cert = _open_cert()
|
||||
# CRL verification would go here
|
||||
#crl = urlgrabber.urlread("https://<url_to_crl>/ca/crl.pem")
|
||||
warn = datetime.datetime.now() + datetime.timedelta(days=21)
|
||||
|
||||
print(my_cert.not_valid_after.strftime('cert expires: %Y-%m-%d'))
|
||||
|
|
Loading…
Add table
Reference in a new issue