(originCertPath string)
| 111 | } |
| 112 | |
| 113 | func readOriginCert(originCertPath string) ([]byte, error) { |
| 114 | originCert, err := os.ReadFile(originCertPath) |
| 115 | if err != nil { |
| 116 | return nil, fmt.Errorf("cannot read %s to load origin certificate", originCertPath) |
| 117 | } |
| 118 | |
| 119 | return originCert, nil |
| 120 | } |
| 121 | |
| 122 | // FindOriginCert will check to make sure that the certificate exists at the specified file path. |
| 123 | func FindOriginCert(originCertPath string, log *zerolog.Logger) (string, error) { |