tls: fallback to self-signed certificate (#2760)

* tls: fallback to self-signed certificate

* remove unknown domain because certs are no longer valid

* update multi-deployment to use service-specific certificates
This commit is contained in:
Caleb Doxsey 2021-11-15 14:11:53 -07:00 committed by GitHub
parent 9b3d574d48
commit ca48052551
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
14 changed files with 46 additions and 80 deletions

View file

@ -49,7 +49,8 @@ func TestGetCertificateForDomain(t *testing.T) {
if !assert.NoError(t, err) {
return
}
assert.Equal(t, &certs[0], found)
assert.NotNil(t, found)
assert.NotEqual(t, &certs[0], found)
})
t.Run("generate", func(t *testing.T) {
certs := []tls.Certificate{}