Skip to content

Commit

Permalink
Elastic Agent - Endpoint e2e test fix (elastic#23776)
Browse files Browse the repository at this point in the history
  • Loading branch information
michalpristas authored Feb 1, 2021
1 parent 1f8a2e6 commit 333edd8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions x-pack/elastic-agent/pkg/core/authority/ca.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ func NewCA() (*CertificateAuthority, error) {
SerialNumber: big.NewInt(1653),
Subject: pkix.Name{
Organization: []string{"elastic-fleet"},
CommonName: "localhost",
},
NotBefore: time.Now(),
NotAfter: time.Now().AddDate(10, 0, 0),
Expand Down Expand Up @@ -108,6 +109,7 @@ func (c *CertificateAuthority) GeneratePairWithName(name string) (*Pair, error)
DNSNames: []string{name},
Subject: pkix.Name{
Organization: []string{"elastic-fleet"},
CommonName: name,
},
NotBefore: time.Now(),
NotAfter: time.Now().AddDate(10, 0, 0),
Expand Down

0 comments on commit 333edd8

Please sign in to comment.