Skip to content

ernstwi/sunet-revoke-ocsp

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

57 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

revoke-ocsp

Configuration

The following environment variables are required:

CA_CERT
RESPONDER_CERT
RESPONDER_KEY
PORT
DB

For testing an additional variable TEST_CLIENT_CERT should point to a certificate signed by CA_CERT with serial number 1.

Private API specification

/ocsp

  • Method: POST

Responds to POST OSCP requests according to RFC 6960.

/update

  • Method: PUT
  • Body: JSON
    • serial: integer
    • revoked: RFC 3339 string, with "0001-01-01T00:00:00Z" signifying null

Add a certificate to the OCSP database, overwriting a row with the same serial number if present.

/init

  • Method: PUT
  • Body: JSON
    • Array of objects with properties
      • serial: integer
      • revoked: RFC 3339 string, with "0001-01-01T00:00:00Z" signifying null

Wipe the OCSP database and initialize it with the given data.

/all

  • Method: GET

Responds with map of all OCSP database entries.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Go 96.5%
  • Shell 2.6%
  • Dockerfile 0.9%