CertificateValidatorValve
Valve for validating X.509 certificates
Performs the following validations:
- Certificate integrity and validity (signature, not_before, not_after)
- Trust (that the certificate is issued by a trusted party)
- OCSP
- CRL
Valve operates in dual mode – on request, when no item(s) exist and on item(s).
The status of validation is either returned as error detail or set on the item depending on the mode of operation.
Validation statuses:
- GOOD
- EXPIRED
- NOT_YET_VALID
- INVALID_SIGNATURE
- SELF_SIGNED
- INVALID_PATH
- CRL_STATUS_REVOKED
- CRL_MISSING
- CRL_ERROR
- OCSP_STATUS_REVOKED
- OCSP_STATUS_UNKNOWN
- OCSP_MISSING
- OCSP_ERROR
- INTERNAL_ERROR
Note: OCSP/CRL is experimental. Use with caution.
Note: The current CRL validation is trivial and does not cache CRLs.
Properties
Example Configuration
{
"name": "CertificateValidatorValve",
"enabled": "true",
"config": {
"cert": "{{request.certificate}}",
"trust_store_path": "ssl/trust.p12",
"trust_store_type": "PKCS12"
}
}