Skip to content

Commit 86fe82a

Browse files
committed
...
1 parent 46ea47f commit 86fe82a

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

pki/internal/xocsp/ocsp.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,7 @@ type responseData struct {
125125
RawResponderID asn1.RawValue
126126
ProducedAt time.Time `asn1:"generalized"`
127127
Responses []singleResponse
128+
Extensions []pkix.Extension `asn1:"explicit,tag:1,optional"`
128129
}
129130

130131
type singleResponse struct {
@@ -752,6 +753,7 @@ func CreateResponse(issuer, responderCert *x509.Certificate, template Response,
752753
RawResponderID: rawResponderID,
753754
ProducedAt: time.Now().Truncate(time.Minute).UTC(),
754755
Responses: []singleResponse{innerResponse},
756+
Extensions: template.Extensions,
755757
}
756758

757759
tbsResponseDataDER, err := asn1.Marshal(tbsResponseData)

pki/ocsp.go

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -82,11 +82,6 @@ func (v *OCSPServer) HTTPHandler(w http.ResponseWriter, r *http.Request) {
8282
Critical: false,
8383
Value: nonce,
8484
})
85-
template.ExtraExtensions = append(template.ExtraExtensions, pkix.Extension{
86-
Id: xocsp.OIDNonce,
87-
Critical: false,
88-
Value: nonce,
89-
})
9085
}
9186

9287
resp, err := xocsp.CreateResponse(v.CA.Crt, v.CA.Crt, template, v.CA.Key)

0 commit comments

Comments
 (0)