feat: remove comments and useless logs
This commit is contained in:
parent
0166d10d30
commit
016293773b
|
@ -5,7 +5,6 @@ import (
|
|||
"encoding/pem"
|
||||
"errors"
|
||||
"fmt"
|
||||
"log"
|
||||
"os"
|
||||
"os/exec"
|
||||
"strings"
|
||||
|
@ -51,13 +50,11 @@ func CredentialsFromKeyWithPasswd(certFile, certKey, passwd string) (credentials
|
|||
if err != nil {
|
||||
return nil, fmt.Errorf("tls.X509KeyPair: %s", err)
|
||||
}
|
||||
log.Println("cert loaded successfuly")
|
||||
|
||||
return credentials.NewServerTLSFromCert(&cert), nil
|
||||
}
|
||||
|
||||
func decryptRSA(keyFile, password string) (string, error) {
|
||||
// openssl rsa -passin pass:test -in passwd.pem -out passwd.enc.key
|
||||
cmd := exec.Command("openssl", "rsa", "-in", keyFile, "-passin", formatPass(password), "-text")
|
||||
output_bts, err := cmd.Output()
|
||||
if err != nil {
|
||||
|
|
Loading…
Reference in New Issue