MCPcopy
hub / github.com/jsha/minica / makeIssuer

Function makeIssuer

main.go:110–120  ·  view source on GitHub ↗
(keyFile, certFile string, alg x509.PublicKeyAlgorithm)

Source from the content-addressed store, hash-verified

108}
109
110func 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
122func makeKey(filename string, alg x509.PublicKeyAlgorithm) (crypto.Signer, error) {
123 var key crypto.Signer

Callers 1

getIssuerFunction · 0.85

Calls 2

makeKeyFunction · 0.85
makeRootCertFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…