|
27 | 27 | describe x509_certificate('/etc/foreman-proxy/ssl_cert.pem') do |
28 | 28 | it { should be_certificate } |
29 | 29 | it { should be_valid } |
30 | | - it { should have_purpose 'server' } |
| 30 | + it { should have_purpose 'SSL server' } |
31 | 31 | its(:issuer) { should match_without_whitespace(/C = US, ST = North Carolina, L = Raleigh, O = Katello, OU = SomeOrgUnit, CN = #{fqdn}/) } |
32 | 32 | its(:subject) { should match_without_whitespace(/C = US, ST = North Carolina, O = FOREMAN, OU = SMART_PROXY, CN = #{fqdn}/) } |
33 | 33 | its(:keylength) { should be >= 4096 } |
|
56 | 56 | describe x509_certificate('/etc/foreman-proxy/ssl_ca.pem') do |
57 | 57 | it { should be_certificate } |
58 | 58 | it { should be_valid } |
59 | | - it { should have_purpose 'server' } |
| 59 | + it { should have_purpose 'SSL server' } |
60 | 60 | its(:issuer) { should match_without_whitespace(/C = US, ST = North Carolina, L = Raleigh, O = Katello, OU = SomeOrgUnit, CN = #{fqdn}/) } |
61 | 61 | its(:subject) { should match_without_whitespace(/C = US, ST = North Carolina, L = Raleigh, O = Katello, OU = SomeOrgUnit, CN = #{fqdn}/) } |
62 | 62 | its(:keylength) { should be >= 4096 } |
|
94 | 94 | describe x509_certificate('/etc/foreman-proxy/foreman_ssl_ca.pem') do |
95 | 95 | it { should be_certificate } |
96 | 96 | it { should be_valid } |
97 | | - it { should have_purpose 'server' } |
| 97 | + it { should have_purpose 'SSL server' } |
98 | 98 | its(:issuer) { should match_without_whitespace(/C = US, ST = North Carolina, L = Raleigh, O = Katello, OU = SomeOrgUnit, CN = #{fqdn}/) } |
99 | 99 | its(:subject) { should match_without_whitespace(/C = US, ST = North Carolina, L = Raleigh, O = Katello, OU = SomeOrgUnit, CN = #{fqdn}/) } |
100 | 100 | its(:keylength) { should be >= 4096 } |
|
103 | 103 | describe x509_certificate("/root/ssl-build/#{fqdn}/#{fqdn}-foreman-proxy.crt") do |
104 | 104 | it { should be_certificate } |
105 | 105 | it { should be_valid } |
106 | | - it { should have_purpose 'server' } |
| 106 | + it { should have_purpose 'SSL server' } |
107 | 107 | its(:issuer) { should match_without_whitespace(/C = US, ST = North Carolina, L = Raleigh, O = Katello, OU = SomeOrgUnit, CN = #{fqdn}/) } |
108 | 108 | its(:subject) { should match_without_whitespace(/C = US, ST = North Carolina, O = FOREMAN, OU = SMART_PROXY, CN = #{fqdn}/) } |
109 | 109 | its(:keylength) { should be >= 4096 } |
@@ -187,7 +187,7 @@ class { '::certs::foreman_proxy': |
187 | 187 | describe x509_certificate('/etc/foreman-proxy/ssl_cert.pem') do |
188 | 188 | it { should be_certificate } |
189 | 189 | # Doesn't have to be valid - can be expired since it's a static resource |
190 | | - it { should have_purpose 'server' } |
| 190 | + it { should have_purpose 'SSL server' } |
191 | 191 | its(:issuer) { should match_without_whitespace(/CN = Fake LE Intermediate X1/) } |
192 | 192 | its(:subject) { should match_without_whitespace(/CN = example.partial.solutions/) } |
193 | 193 | its(:keylength) { should be >= 2048 } |
@@ -217,7 +217,7 @@ class { 'certs::foreman_proxy': |
217 | 217 | describe x509_certificate("/root/ssl-build/#{fqdn}/#{fqdn}-foreman-proxy.crt") do |
218 | 218 | it { should be_certificate } |
219 | 219 | it { should be_valid } |
220 | | - it { should have_purpose 'server' } |
| 220 | + it { should have_purpose 'SSL server' } |
221 | 221 | its(:issuer) { should match_without_whitespace(/C = US, ST = North Carolina, L = Raleigh, O = Katello, OU = SomeOrgUnit, CN = #{fqdn}/) } |
222 | 222 | its(:subject) { should match_without_whitespace(/C = US, ST = North Carolina, O = FOREMAN, OU = SMART_PROXY, CN = #{fqdn}/) } |
223 | 223 | its(:keylength) { should be >= 4096 } |
|
0 commit comments