+11
-11
lines changedFilter options
+11
-11
lines changed Original file line number Diff line number Diff line change
@@ -51,7 +51,7 @@ func NewHandler(dbAccessor certdb.Accessor, caPath string, caKeyPath string) (ht
51
51
// Parse the key given
52
52
key, err := helpers.ParsePrivateKeyPEMWithPassword(caKey, password)
53
53
if err != nil {
54
-
log.Debug("malformed private key %v", err)
54
+
log.Debugf("malformed private key %v", err)
55
55
return nil, err
56
56
}
57
57
Original file line number Diff line number Diff line change
@@ -80,13 +80,13 @@ func gencrlHandler(w http.ResponseWriter, r *http.Request) error {
80
80
81
81
key, err := helpers.ParsePrivateKeyPEM([]byte(req.PrivateKey))
82
82
if err != nil {
83
-
log.Debug("malformed private key %v", err)
83
+
log.Debugf("malformed private key %v", err)
84
84
return errors.NewBadRequestString("malformed Private Key")
85
85
}
86
86
87
87
result, err := cert.CreateCRL(rand.Reader, key, revokedCerts, time.Now(), newExpiryTime)
88
88
if err != nil {
89
-
log.Debug("unable to create CRL: %v", err)
89
+
log.Debugf("unable to create CRL: %v", err)
90
90
return err
91
91
}
92
92
Original file line number Diff line number Diff line change
@@ -74,7 +74,7 @@ func generateCRL(c cli.Config) (crlBytes []byte, err error) {
74
74
// Parse the key given
75
75
key, err := helpers.ParsePrivateKeyPEMWithPassword(cakey, password)
76
76
if err != nil {
77
-
log.Debug("malformed private key %v", err)
77
+
log.Debugf("malformed private key %v", err)
78
78
return nil, err
79
79
}
80
80
Original file line number Diff line number Diff line change
@@ -67,7 +67,7 @@ func NewCRLFromFile(serialList, issuerFile, keyFile []byte, expiryTime string) (
67
67
// Parse the key given
68
68
key, err := helpers.ParsePrivateKeyPEMWithPassword(keyFile, password)
69
69
if err != nil {
70
-
log.Debug("Malformed private key %v", err)
70
+
log.Debugf("Malformed private key %v", err)
71
71
return nil, err
72
72
}
73
73
@@ -100,7 +100,7 @@ func NewCRLFromDB(certs []certdb.CertificateRecord, issuerCert *x509.Certificate
100
100
func CreateGenericCRL(certList []pkix.RevokedCertificate, key crypto.Signer, issuingCert *x509.Certificate, expiryTime time.Time) ([]byte, error) {
101
101
crlBytes, err := issuingCert.CreateCRL(rand.Reader, key, certList, time.Now(), expiryTime)
102
102
if err != nil {
103
-
log.Debug("error creating CRL: %s", err)
103
+
log.Debugf("error creating CRL: %s", err)
104
104
}
105
105
106
106
return crlBytes, err
Original file line number Diff line number Diff line change
@@ -473,7 +473,7 @@ func LoadClientCertificate(certFile string, keyFile string) (*tls.Certificate, e
473
473
if certFile != "" && keyFile != "" {
474
474
cert, err := tls.LoadX509KeyPair(certFile, keyFile)
475
475
if err != nil {
476
-
log.Critical("Unable to read client certificate from file: %s or key from file: %s", certFile, keyFile)
476
+
log.Criticalf("Unable to read client certificate from file: %s or key from file: %s", certFile, keyFile)
477
477
return nil, err
478
478
}
479
479
log.Debug("Client certificate loaded ")
Original file line number Diff line number Diff line change
@@ -135,7 +135,7 @@ func NewSignerFromFile(issuerFile, responderFile, keyFile string, interval time.
135
135
136
136
key, err := helpers.ParsePrivateKeyPEM(keyBytes)
137
137
if err != nil {
138
-
log.Debug("Malformed private key %v", err)
138
+
log.Debugf("Malformed private key %v", err)
139
139
return nil, err
140
140
}
141
141
Original file line number Diff line number Diff line change
@@ -119,7 +119,7 @@ func NewSignerFromFile(caFile, caKeyFile string, policy *config.Signing) (*Signe
119
119
120
120
priv, err := helpers.ParsePrivateKeyPEMWithPassword(cakey, password)
121
121
if err != nil {
122
-
log.Debug("Malformed private key %v", err)
122
+
log.Debugf("Malformed private key %v", err)
123
123
return nil, err
124
124
}
125
125
Original file line number Diff line number Diff line change
@@ -94,7 +94,7 @@ func (l *Listener) AutoUpdate(certUpdates chan<- time.Time, errChan chan<- error
94
94
95
95
config, err := l.getConfig()
96
96
if err != nil {
97
-
log.Debug("immediately after getting a new certificate, the Transport is reporting errors: %v", err)
97
+
log.Debugf("immediately after getting a new certificate, the Transport is reporting errors: %v", err)
98
98
if errChan != nil {
99
99
errChan <- err
100
100
}
@@ -104,7 +104,7 @@ func (l *Listener) AutoUpdate(certUpdates chan<- time.Time, errChan chan<- error
104
104
lnet := l.Listener.Addr().Network()
105
105
l.Listener, err = tls.Listen(lnet, address, config)
106
106
if err != nil {
107
-
log.Debug("immediately after getting a new certificate, the Transport is reporting errors: %v", err)
107
+
log.Debugf("immediately after getting a new certificate, the Transport is reporting errors: %v", err)
108
108
if errChan != nil {
109
109
errChan <- err
110
110
}
You can’t perform that action at this time.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4