Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
R
re6stnet
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
2
Merge Requests
2
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
re6stnet
Commits
321ed7f0
Commit
321ed7f0
authored
Dec 11, 2019
by
Julien Muchembled
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixup! Fix renewal of expired certificate with recent OpenSSL
parent
6532a739
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
x509.py
re6st/x509.py
+2
-1
No files found.
re6st/x509.py
View file @
321ed7f0
...
...
@@ -132,7 +132,8 @@ class Cert(object):
cert
=
crypto
.
dump_certificate
(
crypto
.
FILETYPE_PEM
,
r
)
args
=
[
'verify'
,
'-CAfile'
,
self
.
ca_path
]
if
not
strict
:
args
+=
'-attime'
,
str
(
notBefore
(
r
))
args
+=
'-attime'
,
str
(
min
(
int
(
time
.
time
()),
max
(
notBefore
(
self
.
ca
),
notBefore
(
r
))))
p
=
openssl
(
*
args
)
out
,
err
=
p
.
communicate
(
cert
)
if
1
:
# BBB: Old OpenSSL could return 0 in case of errors.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment