Skip to content

Commit

Permalink
Disable AIA over HTTPS
Browse files Browse the repository at this point in the history
Based on CAPI2 logs, it appears that usage of AIA over HTTPS was a
contributing factor to namecoin/encaya#19 .
  • Loading branch information
JeremyRand committed Aug 26, 2021
1 parent abbb44d commit 93aa4ba
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions parent.go
Original file line number Diff line number Diff line change
Expand Up @@ -192,10 +192,11 @@ func getParent() (parentCert x509.Certificate, parentPriv interface{}) {
aiaPubHash := sha256.Sum256(aiaPubBytes)
aiaPubHashStr := hex.EncodeToString(aiaPubHash[:])

// Support both HTTP and HTTPS AIA.
// Support only HTTP AIA. HTTPS is not supported by major TLS clients,
// and listing an HTTPS URL can cause them to not chase the HTTP URL.
aiaBaseURL := "aia.x--nmc.bit/aia"
aiaURL := aiaBaseURL + "?domain=" + *host + "&pubsha256=" + aiaPubHashStr
template.IssuingCertificateURL = []string{"https://"+aiaURL, "http://"+aiaURL}
template.IssuingCertificateURL = []string{"http://" + aiaURL}
} else if *grandparentKey != "" {
aiaParent, aiaParentPriv = getAIAParent()
} else {
Expand Down

0 comments on commit 93aa4ba

Please sign in to comment.