Sign inSign up

certpub/certificate-validator

By certpub

•Updated over 3 years ago

Service for validation of certificates used in CertPub services

Image
0

1.2K

certpub/certificate-validator repository overview

⁠CertPub Certificate Validator

Service for validation of certificates used in CertPub services.

⁠Starting the service

Starting the service is done by start it and open up the port:

docker run --rm -it -p 8080:8080 certpub/certificate-validator

The service automatically downloads the latest certificates from the issuers repository⁠ before starting the web server.

⁠Validating a certificate

Simply perform a post of the certificate to the service to trigger validation:

curl -s -X POST http://localhost:8080/api/v1/validate --data-binary @certificate.pem

The response is JSON and will be equivalent to this:

{
  "valid": true,
  "mode": "production",
  "features": [
    "legal-person"
  ],
  "certificate": {
    "fingerprint": "D5:11:50:00:E7:B0:7E:84:47:A2:34:66:79:FB:B4:0D",
    "not-before": "2022-03-09T08:25:36Z",
    "not-after": "2025-03-09T22:59:00Z"
  },
  "issuer": {
    "fingerprint": "59:E3:3E:A8:F4:08:72:37:C2:1E:1E:85:0B:19:46:C5"
  },
  "validations": [
    "validity",
    "crl",
    "ocsp"
  ],
  "timestamp": "2023-04-20T18:25:54Z",
  "next-update": "2023-04-20T18:55:54Z"
}

Tag summary

Content type

Image

Digest

sha256:370e35f50…

Size

4.9 MB

Last updated

over 3 years ago

docker pull certpub/certificate-validator