Skip to content

Commit

Permalink
Include the domain in the SAN of the CSR
Browse files Browse the repository at this point in the history
Allows autocert to work with Pebble (see letsencrypt/pebble#304).
  • Loading branch information
trevordixon authored Jun 21, 2020
1 parent 70a84ac commit 9860d60
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion acme/autocert/autocert.go
Original file line number Diff line number Diff line change
Expand Up @@ -645,7 +645,7 @@ func (m *Manager) certState(ck certKey) (*certState, error) {
// authorizedCert starts the domain ownership verification process and requests a new cert upon success.
// The key argument is the certificate private key.
func (m *Manager) authorizedCert(ctx context.Context, key crypto.Signer, ck certKey) (der [][]byte, leaf *x509.Certificate, err error) {
csr, err := certRequest(key, ck.domain, m.ExtraExtensions)
csr, err := certRequest(key, ck.domain, m.ExtraExtensions, ck.domain)
if err != nil {
return nil, nil, err
}
Expand Down

0 comments on commit 9860d60

Please sign in to comment.