|
42 | 42 |
|
43 | 43 | it {
|
44 | 44 | is_expected.to contain_exec('Export /etc/ssl/certs/foo.pfx to /etc/ssl/certs/foo.pem').with(
|
45 |
| - command: 'openssl pkcs12 -in /etc/ssl/certs/foo.pfx -out /etc/ssl/certs/foo.pem ', |
| 45 | + command: ['openssl', 'pkcs12', '-in', '/etc/ssl/certs/foo.pfx', '-out', '/etc/ssl/certs/foo.pem'], |
46 | 46 | creates: '/etc/ssl/certs/foo.pem',
|
47 | 47 | path: '/usr/bin:/bin:/usr/sbin:/sbin'
|
48 | 48 | )
|
|
60 | 60 |
|
61 | 61 | it {
|
62 | 62 | is_expected.to contain_exec('Export /etc/ssl/certs/foo.pfx to /etc/ssl/certs/foo.pem').with(
|
63 |
| - command: 'openssl pkcs12 -in /etc/ssl/certs/foo.pfx -out /etc/ssl/certs/foo.pem ', |
| 63 | + command: ['openssl', 'pkcs12', '-in', '/etc/ssl/certs/foo.pfx', '-out', '/etc/ssl/certs/foo.pem'], |
64 | 64 | path: '/usr/bin:/bin:/usr/sbin:/sbin',
|
65 | 65 | refreshonly: true
|
66 | 66 | )
|
|
79 | 79 |
|
80 | 80 | it {
|
81 | 81 | is_expected.to contain_exec('Export /etc/ssl/certs/foo.pfx to /etc/ssl/certs/foo.pem').with(
|
82 |
| - command: "openssl pkcs12 -in /etc/ssl/certs/foo.pfx -out /etc/ssl/certs/foo.pem -nokeys -passin pass:'5r$}^'", |
| 82 | + command: ['openssl', 'pkcs12', '-in', '/etc/ssl/certs/foo.pfx', '-out', '/etc/ssl/certs/foo.pem', '-nokeys', '-passin', 'pass:5r$}^'], |
83 | 83 | creates: '/etc/ssl/certs/foo.pem',
|
84 | 84 | path: '/usr/bin:/bin:/usr/sbin:/sbin'
|
85 | 85 | )
|
|
96 | 96 |
|
97 | 97 | it {
|
98 | 98 | is_expected.to contain_exec('Export /etc/ssl/certs/foo.der to /etc/ssl/certs/foo.pem').with(
|
99 |
| - command: 'openssl x509 -inform DER -in /etc/ssl/certs/foo.der -out /etc/ssl/certs/foo.pem ', |
| 99 | + command: ['openssl', 'x509', '-inform', 'DER', '-in', '/etc/ssl/certs/foo.der', '-out', '/etc/ssl/certs/foo.pem'], |
100 | 100 | creates: '/etc/ssl/certs/foo.pem',
|
101 | 101 | path: '/usr/bin:/bin:/usr/sbin:/sbin'
|
102 | 102 | )
|
|
0 commit comments