From f9d35282cee302c0cf027eb52ee57abca7619088 Mon Sep 17 00:00:00 2001 From: James Kasten Date: Tue, 24 Mar 2015 11:29:07 -0700 Subject: [PATCH] remove testing mode from va --- va/validation-authority.go | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/va/validation-authority.go b/va/validation-authority.go index 6d20a04cb..5c7d31785 100644 --- a/va/validation-authority.go +++ b/va/validation-authority.go @@ -36,9 +36,7 @@ func (va ValidationAuthorityImpl) validateSimpleHTTPS(identifier core.AcmeIdenti return } - // XXX: Local version; uncomment for real version - 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) + url := fmt.Sprintf("https://%s/.well-known/acme-challenge/%s", identifier, challenge.Path) httpRequest, err := http.NewRequest("GET", url, nil) if err != nil { @@ -93,8 +91,7 @@ func (va ValidationAuthorityImpl) validateDvsni(identifier core.AcmeIdentifier, zName := hex.EncodeToString(z) // Make a connection with SNI = nonceName - hostPort := "localhost:5001" - //hostPort := identifier + ":443" // XXX: Local version; uncomment for real version + hostPort := identifier + ":443" conn, err := tls.Dial("tcp", hostPort, &tls.Config{ ServerName: nonceName, InsecureSkipVerify: true,