Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
nghttp2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Libraries
nghttp2
Commits
07f763be
Commit
07f763be
authored
Jun 17, 2015
by
Tatsuhiro Tsujikawa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fetch-ocsp-response: Support LibreSSL, and include port in ocsp_host
parent
69119f47
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
script/fetch-ocsp-response
script/fetch-ocsp-response
+5
-5
No files found.
script/fetch-ocsp-response
View file @
07f763be
...
...
@@ -142,13 +142,13 @@ def send_and_receive_ocsp(respder_fn, cmd, cert_fn, issuer_fn, ocsp_uri,
# obtain response (without verification)
sys
.
stderr
.
write
(
'sending OCSP request to {}
\n
'
.
format
(
ocsp_uri
))
args
=
[
cmd
,
'ocsp'
,
'-issuer'
,
issuer_fn
,
'-cert'
,
cert_fn
,
'-url'
,
ocsp_uri
cmd
,
'ocsp'
,
'-issuer'
,
issuer_fn
,
'-cert'
,
cert_fn
,
'-url'
,
ocsp_uri
,
'-noverify'
,
'-respout'
,
respder_fn
]
if
openssl_version
.
lower
().
startswith
(
'openssl 1.'
):
ver
=
openssl_version
.
lower
()
if
ver
.
startswith
(
'openssl 1.'
)
or
ver
.
startswith
(
'libressl '
):
args
.
extend
([
'-header'
,
'Host'
,
ocsp_host
])
args
.
extend
([
'-noverify'
,
'-respout'
,
respder_fn
])
resp
=
run_openssl
(
args
,
allow_tempfail
=
True
)
return
resp
.
decode
(
'utf-8'
)
...
...
@@ -188,7 +188,7 @@ def fetch_ocsp_response(cmd, cert_fn, tempdir, issuer_fn=None):
'fetch-ocsp-response (using {})
\n
'
.
format
(
openssl_version
))
ocsp_uri
=
extract_ocsp_uri
(
cmd
,
cert_fn
)
ocsp_host
=
urlparse
(
ocsp_uri
).
hostname
ocsp_host
=
urlparse
(
ocsp_uri
).
netloc
if
not
issuer_fn
:
issuer_fn
=
os
.
path
.
join
(
tempdir
,
'issuer.crt'
)
...
...
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