forked from aws/aws-lc
-
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.
add support and tests for OCSP_basic_sign (aws#1742)
`OCSP_basic_sign` is mandatory for OCSP responders as the RFC specifies that all OCSP response SHALL be digitally signed. This is different from `OCSP_request_sign` since signing the OCSP request was optional. `OCSP_basic_sign` isn't too complex however, the API does a basic ASN.1 sign along with setting some fields. The slight complications involved are with the additional flag customizations exposed by OpenSSL. Ruby also exposes these flags, so I've taken them in and documented them. I also took the chance to rephrase the documentation around `OCSP_request_sign`. ### Testing: Reused the certs and keys used for testing `OCSP_request_sign`. What's different from `OCSP_request_sign` is that we create our own `OCSP_BASICRESP` instead of loading it from a file. Creating one from scratch makes more sense as all OCSP response files already have an existing signature. By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license and the ISC license.
- Loading branch information
1 parent
013240b
commit 8080ce3
Showing
3 changed files
with
355 additions
and
39 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
Oops, something went wrong.