|
@@ -5,7 +5,6 @@ import (
|
|
"crypto/x509"
|
|
"crypto/x509"
|
|
"embed"
|
|
"embed"
|
|
"encoding/pem"
|
|
"encoding/pem"
|
|
- "fmt"
|
|
|
|
"io"
|
|
"io"
|
|
"log"
|
|
"log"
|
|
"os"
|
|
"os"
|
|
@@ -170,7 +169,6 @@ func (m *Manager) GetCert(helloInfo *tls.ClientHelloInfo) (*tls.Certificate, err
|
|
} else if m.CertMatchExists(helloInfo.ServerName) {
|
|
} else if m.CertMatchExists(helloInfo.ServerName) {
|
|
//Use x509
|
|
//Use x509
|
|
pubKey, priKey = m.GetCertByX509CNHostname(helloInfo.ServerName)
|
|
pubKey, priKey = m.GetCertByX509CNHostname(helloInfo.ServerName)
|
|
- fmt.Println(pubKey, priKey)
|
|
|
|
} else {
|
|
} else {
|
|
//Fallback to legacy method of matching certificates
|
|
//Fallback to legacy method of matching certificates
|
|
/*
|
|
/*
|