remove testing mode from va
This commit is contained in:
parent
e1f80a108f
commit
f9d35282ce
|
|
@ -36,9 +36,7 @@ func (va ValidationAuthorityImpl) validateSimpleHTTPS(identifier core.AcmeIdenti
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
// XXX: Local version; uncomment for real version
|
url := fmt.Sprintf("https://%s/.well-known/acme-challenge/%s", identifier, challenge.Path)
|
||||||
url := fmt.Sprintf("http://localhost:5001/.well-known/acme-challenge/%s", challenge.Path)
|
|
||||||
//url := fmt.Sprintf("https://%s/.well-known/acme-challenge/%s", identifier, challenge.Path)
|
|
||||||
|
|
||||||
httpRequest, err := http.NewRequest("GET", url, nil)
|
httpRequest, err := http.NewRequest("GET", url, nil)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
@ -93,8 +91,7 @@ func (va ValidationAuthorityImpl) validateDvsni(identifier core.AcmeIdentifier,
|
||||||
zName := hex.EncodeToString(z)
|
zName := hex.EncodeToString(z)
|
||||||
|
|
||||||
// Make a connection with SNI = nonceName
|
// Make a connection with SNI = nonceName
|
||||||
hostPort := "localhost:5001"
|
hostPort := identifier + ":443"
|
||||||
//hostPort := identifier + ":443" // XXX: Local version; uncomment for real version
|
|
||||||
conn, err := tls.Dial("tcp", hostPort, &tls.Config{
|
conn, err := tls.Dial("tcp", hostPort, &tls.Config{
|
||||||
ServerName: nonceName,
|
ServerName: nonceName,
|
||||||
InsecureSkipVerify: true,
|
InsecureSkipVerify: true,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue