Skip to content

Commit 8636c6d

Browse files
committed
Output certificate in cer form
1 parent c140d7a commit 8636c6d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

certificates.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ import (
1616
"crypto/x509/pkix"
1717
"encoding/pem"
1818
"fmt"
19+
"io/ioutil"
1920
"math/big"
2021
"net"
2122
"os"
@@ -171,6 +172,9 @@ func generateCertificates() {
171172
certOut.Close()
172173
log.Print("written ca.cert.pem")
173174

175+
ioutil.WriteFile("ca.cert.cer", derBytes, 0644)
176+
log.Print("written ca.cert.cer")
177+
174178
// Create the key for the final certificate
175179
key, err := generateKey("")
176180
if err != nil {

0 commit comments

Comments
 (0)