forked from openssl/openssl
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Extend certificate creation examples to include CRL generation and sa…
…mple scripts running the test OCSP responder.
- Loading branch information
Showing
4 changed files
with
99 additions
and
7 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
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,21 @@ | ||
# Example querying OpenSSL test responder. Assumes ocsprun.sh has been | ||
# called. | ||
|
||
OPENSSL=../../apps/openssl | ||
OPENSSL_CONF=../../apps/openssl.cnf | ||
export OPENSSL_CONF | ||
|
||
# Send responder queries for each certificate. | ||
|
||
echo "Requesting OCSP status for each certificate" | ||
$OPENSSL ocsp -issuer intca.pem -cert client.pem -CAfile root.pem \ | ||
-url http://127.0.0.1:8888/ | ||
$OPENSSL ocsp -issuer intca.pem -cert server.pem -CAfile root.pem \ | ||
-url http://127.0.0.1:8888/ | ||
$OPENSSL ocsp -issuer intca.pem -cert rev.pem -CAfile root.pem \ | ||
-url http://127.0.0.1:8888/ | ||
# One query for all three certificates. | ||
echo "Requesting OCSP status for three certificates in one request" | ||
$OPENSSL ocsp -issuer intca.pem \ | ||
-cert client.pem -cert server.pem -cert rev.pem \ | ||
-CAfile root.pem -url http://127.0.0.1:8888/ |
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,14 @@ | ||
# Example of running an querying OpenSSL test OCSP responder. | ||
# This assumes "mkcerts.sh" or similar has been run to set up the | ||
# necessary file structure. | ||
|
||
OPENSSL=../../apps/openssl | ||
OPENSSL_CONF=../../apps/openssl.cnf | ||
export OPENSSL_CONF | ||
|
||
# Run OCSP responder. | ||
|
||
PORT=8888 | ||
|
||
$OPENSSL ocsp -port $PORT -index index.txt -CA intca.pem \ | ||
-rsigner resp.pem -rkey respkey.pem -rother intca.pem $* |