Merge branch 'v1.6.0/master'

This commit is contained in:
moloch--
2023-06-04 09:01:26 -07:00
+6
View File
@@ -20,6 +20,8 @@ package jobs
import (
"context"
"crypto/tls"
"fmt"
"io/ioutil"
"time"
@@ -98,5 +100,9 @@ func getLocalCertificatePair(cmd *cobra.Command) ([]byte, []byte, error) {
if err != nil {
return nil, nil, err
}
if _, err := tls.X509KeyPair(cert, key); err != nil {
return nil, nil, fmt.Errorf("- could not parse cert or key (encrypted keys are not supported): %s", err.Error())
}
return cert, key, nil
}