mirror of
https://github.com/go-acme/lego
synced 2026-03-14 14:35:48 +01:00
Merge f5543d320a into 87b172f103
This commit is contained in:
commit
8520e7cec1
3 changed files with 4 additions and 3 deletions
|
|
@ -351,6 +351,7 @@ func (c *Certifier) getForCSR(domains []string, order acme.ExtendedOrder, bundle
|
|||
Domain: domains[0],
|
||||
CertURL: respOrder.Certificate,
|
||||
PrivateKey: privateKeyPem,
|
||||
CSR: csr,
|
||||
}
|
||||
|
||||
if respOrder.Status == acme.StatusValid {
|
||||
|
|
|
|||
|
|
@ -239,7 +239,7 @@ func TestChallengeHTTP_Client_Obtain(t *testing.T) {
|
|||
assert.Regexp(t, `https://localhost:14000/certZ/[\w\d]{14,}`, resource.CertStableURL)
|
||||
assert.NotEmpty(t, resource.Certificate)
|
||||
assert.NotEmpty(t, resource.IssuerCertificate)
|
||||
assert.Empty(t, resource.CSR)
|
||||
assert.NotEmpty(t, resource.CSR)
|
||||
}
|
||||
|
||||
func TestChallengeHTTP_Client_Obtain_profile(t *testing.T) {
|
||||
|
|
@ -449,7 +449,7 @@ func TestChallengeTLS_Client_Obtain(t *testing.T) {
|
|||
assert.Regexp(t, `https://localhost:14000/certZ/[\w\d]{14,}`, resource.CertStableURL)
|
||||
assert.NotEmpty(t, resource.Certificate)
|
||||
assert.NotEmpty(t, resource.IssuerCertificate)
|
||||
assert.Empty(t, resource.CSR)
|
||||
assert.NotEmpty(t, resource.CSR)
|
||||
}
|
||||
|
||||
func TestChallengeTLS_Client_ObtainForCSR(t *testing.T) {
|
||||
|
|
|
|||
|
|
@ -183,7 +183,7 @@ func TestChallengeDNS_Client_Obtain_profile(t *testing.T) {
|
|||
assert.Regexp(t, `https://localhost:15000/certZ/[\w\d]{14,}`, resource.CertStableURL)
|
||||
assert.NotEmpty(t, resource.Certificate)
|
||||
assert.NotEmpty(t, resource.IssuerCertificate)
|
||||
assert.Empty(t, resource.CSR)
|
||||
assert.NotEmpty(t, resource.CSR)
|
||||
}
|
||||
|
||||
type fakeUser struct {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue