Commit c089f103 authored by Kamil Trzcinski's avatar Kamil Trzcinski Committed by James Edwards-Jones

Update comments

parent 92a1efe6
...@@ -63,11 +63,9 @@ VM+d42lQAgoq318A84Xu5vRh1KCAJuztkhNbM+w= ...@@ -63,11 +63,9 @@ VM+d42lQAgoq318A84Xu5vRh1KCAJuztkhNbM+w=
end end
trait :with_trusted_chain do trait :with_trusted_chain do
# This is # This contains
# [Intermediate #2 (SHA-2)] 'Comodo RSA Domain Validation Secure Server CA' # [Intermediate #2 (SHA-2)] 'Comodo RSA Domain Validation Secure Server CA'
# [Intermediate #1 (SHA-2)] COMODO RSA Certification Authority # [Intermediate #1 (SHA-2)] 'COMODO RSA Certification Authority'
# We only validate that we want to rebuild the trust chain,
# we don't need end-to-end certificate to do that
certificate '-----BEGIN CERTIFICATE----- certificate '-----BEGIN CERTIFICATE-----
MIIGCDCCA/CgAwIBAgIQKy5u6tl1NmwUim7bo3yMBzANBgkqhkiG9w0BAQwFADCB MIIGCDCCA/CgAwIBAgIQKy5u6tl1NmwUim7bo3yMBzANBgkqhkiG9w0BAQwFADCB
hTELMAkGA1UEBhMCR0IxGzAZBgNVBAgTEkdyZWF0ZXIgTWFuY2hlc3RlcjEQMA4G hTELMAkGA1UEBhMCR0IxGzAZBgNVBAgTEkdyZWF0ZXIgTWFuY2hlc3RlcjEQMA4G
......
...@@ -117,6 +117,10 @@ describe PagesDomain, models: true do ...@@ -117,6 +117,10 @@ describe PagesDomain, models: true do
end end
context 'for trusted certificate chain' do context 'for trusted certificate chain' do
# We only validate that we can to rebuild the trust chain, for certificates
# We assume that 'AddTrustExternalCARoot' needed to validate the chain is in trusted store.
# It will be if ca-certificates is installed on Debian/Ubuntu/Alpine
let(:domain) { build(:pages_domain, :with_trusted_chain) } let(:domain) { build(:pages_domain, :with_trusted_chain) }
it { is_expected.to be_truthy } it { is_expected.to be_truthy }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment