CAStore is the narrow persistence interface the CA needs to load/save its root certificate and encrypted private key from a shared database. When set on Options, the CA uses DB storage instead of local files.
| 41 | // its root certificate and encrypted private key from a shared database. |
| 42 | // When set on Options, the CA uses DB storage instead of local files. |
| 43 | type CAStore interface { |
| 44 | GetCAState(ctx context.Context) (*CAStateRecord, error) |
| 45 | SetCAState(ctx context.Context, state *CAStateRecord) error |
| 46 | } |
| 47 | |
| 48 | // CAStateRecord holds the CA root cert and encrypted key for DB storage. |
| 49 | type CAStateRecord struct { |
no outgoing calls
no test coverage detected