-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge of /httpd/httpd/trunk:r1913837,1916861,1916907
* mod_md: - Using OCSP stapling information to trigger certificate renewals. Proposed by @frasertweedale. - Added directive `MDCheckInterval` to control how often the server checks for detected revocations. Added proposals for configurations in the README.md chapter "Revocations". - OCSP stapling: accept OCSP responses without a `nextUpdate` entry which is allowed in RFC 6960. Treat those as having an update interval of 12 hours. Added by @frasertweedale. - Adapt OpenSSL usage to changes in their API. By Yann Ylavic. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1918195 13f79535-47bb-0310-9956-ffa450edef68
- Loading branch information
Showing
12 changed files
with
183 additions
and
51 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
* mod_md: | ||
- Using OCSP stapling information to trigger certificate renewals. Proposed | ||
by @frasertweedale. | ||
- Added directive `MDCheckInterval` to control how often the server checks | ||
for detected revocations. Added proposals for configurations in the | ||
README.md chapter "Revocations". | ||
- OCSP stapling: accept OCSP responses without a `nextUpdate` entry which is | ||
allowed in RFC 6960. Treat those as having an update interval of 12 hours. | ||
Added by @frasertweedale. | ||
- Adapt OpenSSL usage to changes in their API. By Yann Ylavic. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
#!/usr/bin/env python3 | ||
|
||
import subprocess | ||
import sys | ||
|
||
curl = "curl" | ||
challtestsrv = "localhost:8055" | ||
|
||
|
||
def run(args): | ||
sys.stderr.write(f"run: {' '.join(args)}\n") | ||
p = subprocess.Popen(args, stdin=None, stdout=subprocess.PIPE, stderr=subprocess.PIPE) | ||
output, errput = p.communicate(None) | ||
rv = p.wait() | ||
if rv != 0: | ||
sys.stderr.write(errput.decode()) | ||
sys.stdout.write(output.decode()) | ||
return rv | ||
|
||
|
||
def teardown(domain): | ||
rv = run([curl, '-s', '-d', f'{{"host":"_acme-challenge.{domain}"}}', | ||
f'{challtestsrv}/clear-txt']) | ||
if rv == 0: | ||
rv = run([curl, '-s', '-d', f'{{"host":"{domain}"}}', | ||
f'{challtestsrv}/set-txt']) | ||
return rv | ||
|
||
|
||
def setup(domain, challenge): | ||
teardown(domain) | ||
rv = run([curl, '-s', '-d', f'{{"host":"{domain}", "addresses":["127.0.0.1"]}}', | ||
f'{challtestsrv}/set-txt']) | ||
if rv == 0: | ||
rv = run([curl, '-s', '-d', f'{{"host":"_acme-challenge.{domain}.", "value":"{challenge}"}}', | ||
f'{challtestsrv}/set-txt']) | ||
return rv | ||
|
||
|
||
def main(argv): | ||
if len(argv) > 1: | ||
if argv[1] == 'setup': | ||
if len(argv) != 4: | ||
sys.stderr.write("wrong number of arguments: dns01.py setup <domain> <challenge>\n") | ||
sys.exit(2) | ||
rv = setup(argv[2], argv[3]) | ||
elif argv[1] == 'teardown': | ||
if len(argv) != 4: | ||
sys.stderr.write("wrong number of arguments: dns01.py teardown <domain> <challenge>\n") | ||
sys.exit(1) | ||
rv = teardown(argv[2]) | ||
else: | ||
sys.stderr.write(f"unknown option {argv[1]}\n") | ||
rv = 2 | ||
else: | ||
sys.stderr.write("dns01.py wrong number of arguments\n") | ||
rv = 2 | ||
sys.exit(rv) | ||
|
||
|
||
if __name__ == "__main__": | ||
main(sys.argv) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters