Changeset 87d7f89 in mod_gnutls
- Timestamp:
- Apr 4, 2020, 1:07:28 PM (3 years ago)
- Branches:
- asyncio, main, master, proxy-ticket
- Children:
- ee35a9f
- Parents:
- e932ba5
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
doc/mod_gnutls_manual.md
re932ba5 r87d7f89 640 640 ### GnuTLSOCSPCheckNonce 641 641 642 Check the nonce in OCSP responses? 642 Send nonces in OCSP requests and verify them in responses. 643 643 644 644 GnuTLSOCSPCheckNonce [On|Off] … … 647 647 Context: server config, virtual host 648 648 649 Most CAs do not to send nonces in their OCSP responses, probably 650 because that way they can cache responses, which is [explicitly 651 allowed by RFC 652 6960](https://tools.ietf.org/html/rfc6960#section-2.5). You can enable 653 `GnuTLSOCSPCheckNonce` to enforce nonce validation if your CA is one 654 that supports OCSP nonces. Note that `mod_gnutls` will _send_ a nonce 655 either way. 649 If `GnuTLSOCSPCheckNonce` is enabled, `mod_gnutls` will send nonces in 650 OCSP requests and verify them in responses. Responses without a nonce 651 or with a mismatching one will be considered invalid and discarded. 652 653 This option is disabled by default because many CAs do not support the 654 OCSP nonce extension. The likely reason for that is the use of 655 pre-produced responses, as described in [RFC 6960, Section 656 2.5](https://tools.ietf.org/html/rfc6960#section-2.5). 656 657 657 658 ### GnuTLSOCSPResponseFile -
src/gnutls_ocsp.c
re932ba5 r87d7f89 213 213 } 214 214 215 ret = gnutls_ocsp_req_randomize_nonce(r);216 if (ret != GNUTLS_E_SUCCESS)217 {218 ap_log_error(APLOG_MARK, APLOG_ERR, APR_EGENERAL, s,219 "OCSP nonce creation failed: %s (%d)",220 gnutls_strerror(ret), ret);221 gnutls_ocsp_req_deinit(r);222 return ret;223 }224 225 215 if (nonce != NULL) 226 216 { 217 ret = gnutls_ocsp_req_randomize_nonce(r); 218 if (ret != GNUTLS_E_SUCCESS) 219 { 220 ap_log_error(APLOG_MARK, APLOG_ERR, APR_EGENERAL, s, 221 "OCSP nonce creation failed: %s (%d)", 222 gnutls_strerror(ret), ret); 223 gnutls_ocsp_req_deinit(r); 224 return ret; 225 } 226 227 227 ret = gnutls_ocsp_req_get_nonce(r, NULL, nonce); 228 228 if (ret != GNUTLS_E_SUCCESS) … … 706 706 { 707 707 gnutls_datum_t req; 708 int ret = mgs_create_ocsp_request(s, req_data, &req, &nonce); 708 int ret = mgs_create_ocsp_request(s, req_data, &req, 709 sc->ocsp_check_nonce ? &nonce : NULL); 709 710 if (ret == GNUTLS_E_SUCCESS) 710 711 {
Note: See TracChangeset
for help on using the changeset viewer.