gofmt -s certinject/file.go

pull/46/head
JeremyRand 7 years ago
parent f70f23aff0
commit 53adb64d85
No known key found for this signature in database
GPG Key ID: B3F2D165786D6570

@ -7,7 +7,7 @@ import (
// Injects a certificate by writing to a file. Might be relevant for non-CryptoAPI trust stores.
func injectCertFile(derBytes []byte, fileName string) {
pemBytes := pem.EncodeToMemory(&pem.Block{Type: "CERTIFICATE", Bytes: derBytes})
err := ioutil.WriteFile(fileName, pemBytes, 0644)
if err != nil {

Loading…
Cancel
Save