ocsp: pre-serialized responses and improved ASN.1
OCSP responders sometimes rely on pre-generated responses to increase performance. In such cases, RFC 5019 allows responders to respond with responseStatus unauthorized if they do not have a pre-generated response for a certificate. This patch provides a pre-serialized unauthorized response. This change also updates the serialization of OCSP responses so that the resulting DER encoding is compatible with other parsers. Note: This change depends on updates to encoding/asn1 to improve handling of flags and time values. https://go-review.googlesource.com/#/c/5970/ Change-Id: I77e042de6535a70b0996e058cb38a00076a16dd4 Reviewed-on: https://go-review.googlesource.com/4121 Reviewed-by: Adam Langley <agl@golang.org>
This commit is contained in:
committed by
Adam Langley
parent
ecf53cc131
commit
5b330e8ba0
+3
-3
@@ -333,9 +333,9 @@ const ocspResponseWithoutCertHex = "308201d40a0100a08201cd308201c906092b06010505
|
||||
"20a1a65c7f0b6427a224b3c98edd96b9b61f706099951188b0289555ad30a216fb774651" +
|
||||
"5a35fca2e054dfa8"
|
||||
|
||||
const ocspRequestHex = "30563054a003020100304d304b3049300906052b0e03021a05000414c0fe0278fc991888" +
|
||||
"91b3f212e9c7e1b21ab7bfc004140dfc1df0a9e0f01ce7f2b213177e6f8d157cd4f60210" +
|
||||
"017f77deb3bcbb235d44ccc7dba62e72"
|
||||
const ocspRequestHex = "3051304f304d304b3049300906052b0e03021a05000414c0fe0278fc99188891b3f212e9" +
|
||||
"c7e1b21ab7bfc004140dfc1df0a9e0f01ce7f2b213177e6f8d157cd4f60210017f77deb3" +
|
||||
"bcbb235d44ccc7dba62e72"
|
||||
|
||||
const leafCertHex = "308203c830820331a0030201020210017f77deb3bcbb235d44ccc7dba62e72300d06092a" +
|
||||
"864886f70d01010505003081ba311f301d060355040a1316566572695369676e20547275" +
|
||||
|
||||
Reference in New Issue
Block a user