(keyFile, certFile string, alg x509.PublicKeyAlgorithm)
| 108 | } |
| 109 | |
| 110 | func makeIssuer(keyFile, certFile string, alg x509.PublicKeyAlgorithm) error { |
| 111 | key, err := makeKey(keyFile, alg) |
| 112 | if err != nil { |
| 113 | return err |
| 114 | } |
| 115 | _, err = makeRootCert(key, certFile) |
| 116 | if err != nil { |
| 117 | return err |
| 118 | } |
| 119 | return nil |
| 120 | } |
| 121 | |
| 122 | func makeKey(filename string, alg x509.PublicKeyAlgorithm) (crypto.Signer, error) { |
| 123 | var key crypto.Signer |
no test coverage detected
searching dependent graphs…