mirror of
https://github.com/MrAle98/sliver
synced 2026-06-08 11:54:46 +00:00
Merge branch 'v1.6.0/master'
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user