DBSource maps a given Database schema to a CA Key Hash, so we can pick from among them when presented with OCSP requests for different certs.

We assume that OCSP responses are stored in a very simple database table, with two columns: serialNumber and response

CREATE TABLE ocsp_responses (serialNumber TEXT, response BLOB);

The serialNumber field may have any type to which Go will match a string, so you can be more efficient than TEXT if you like. We use it to store the serial number in base64. You probably want to have an index on the serialNumber field, since we will always query on it.

DBSource is referenced in 1 repository