We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 32fc9bc commit 69941c0Copy full SHA for 69941c0
cmd/go-cache-plugin/addca_default.go
@@ -7,12 +7,20 @@ package main
7
8
import (
9
"errors"
10
+ "log"
11
12
+ "github.com/creachadair/atomicfile"
13
"github.com/creachadair/command"
14
"github.com/creachadair/tlsutil"
15
)
16
17
func installSigningCert(env *command.Env, cert tlsutil.Certificate) error {
18
+ const certFile = "revproxy-ca.crt"
19
+ if err := atomicfile.WriteData(certFile, cert.CertPEM(), 0644); err != nil {
20
+ log.Printf("WARNING: Unable to write cert file: %v", err)
21
+ } else {
22
+ log.Printf("Wrote signing cert to %s", certFile)
23
+ }
24
// TODO(creachadair): Maybe crib some other cases from mkcert, if we need
25
// them, for example:
26
// https://github.com/FiloSottile/mkcert/blob/master/truststore_darwin.go
0 commit comments