This commit is contained in:
Rafael de Elvira 2026-03-13 10:25:57 +00:00 committed by GitHub
commit 8520e7cec1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 4 additions and 3 deletions

View file

@ -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 {

View file

@ -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) {

View file

@ -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 {