From 9b87e08faf91e5a508b36d0c42f5661786497c68 Mon Sep 17 00:00:00 2001 From: Mariano Cano Date: Fri, 21 Dec 2018 14:02:06 -0800 Subject: [PATCH] Do not require the port in the audience check. Fixes #17 --- authority/authority.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/authority/authority.go b/authority/authority.go index 5a59c492..f0e5c0b7 100644 --- a/authority/authority.go +++ b/authority/authority.go @@ -57,9 +57,7 @@ func New(config *Config) (*Authority, error) { } audiences := []string{legacyAuthority} for _, name := range config.DNSNames { - if port == "443" { - audiences = append(audiences, fmt.Sprintf("https://%s/sign", name), fmt.Sprintf("https://%s/1.0/sign", name)) - } + audiences = append(audiences, fmt.Sprintf("https://%s/sign", name), fmt.Sprintf("https://%s/1.0/sign", name)) audiences = append(audiences, fmt.Sprintf("https://%s:%s/sign", name, port), fmt.Sprintf("https://%s:%s/1.0/sign", name, port)) }