FileCAPool generates trusted root certificates pool from the designated DER and PEM file
| 123 | |
| 124 | // FileCAPool generates trusted root certificates pool from the designated DER and PEM file |
| 125 | type FileCAPool struct { |
| 126 | // TrustedCACertPEMFiles is a list of PEM file names |
| 127 | // from which to load certificates of trusted CAs. |
| 128 | // Client certificates which are not signed by any of |
| 129 | // these CA certificates will be rejected. |
| 130 | TrustedCACertPEMFiles []string `json:"pem_files,omitempty"` |
| 131 | |
| 132 | pool *x509.CertPool |
| 133 | certs []*x509.Certificate |
| 134 | } |
| 135 | |
| 136 | // CaddyModule implements caddy.Module. |
| 137 | func (FileCAPool) CaddyModule() caddy.ModuleInfo { |
nothing calls this directly
no outgoing calls
no test coverage detected