File tree Expand file tree Collapse file tree 2 files changed +1
-5
lines changed
lib/puppet/provider/x509_cert
spec/unit/puppet/provider/x509_cert Expand file tree Collapse file tree 2 files changed +1
-5
lines changed Original file line number Diff line number Diff line change @@ -98,7 +98,7 @@ def create
98
98
options += [ '-passin' , 'env:CERTIFICATE_PASSIN' ]
99
99
env [ 'CERTIFICATE_PASSIN' ] = password
100
100
end
101
- options += [ '-extensions' , 'v3_req' ] if resource [ :req_ext ] != :false
101
+ options += [ '-extensions' , 'v3_req' ] if resource [ :req_ext ]
102
102
103
103
# openssl(options) doesn't work because it's impossible to pass an env
104
104
# https://github.com/puppetlabs/puppet/issues/9493
Original file line number Diff line number Diff line change 40
40
'-days' , 3650 ,
41
41
'-key' , '/tmp/foo.key' ,
42
42
'-out' , '/tmp/foo.crt' ,
43
- '-extensions' , 'v3_req' ,
44
43
] ,
45
44
{
46
45
combine : true ,
65
64
'-key' , '/tmp/foo.key' ,
66
65
'-out' , '/tmp/foo.crt' ,
67
66
'-passin' , 'env:CERTIFICATE_PASSIN' ,
68
- '-extensions' , 'v3_req' ,
69
67
] ,
70
68
{
71
69
combine : true ,
95
93
'-CAcreateserial' ,
96
94
'-CA' , '/tmp/foo-ca.crt' ,
97
95
'-CAkey' , '/tmp/foo-ca.key' ,
98
- '-extensions' , 'v3_req' ,
99
96
] ,
100
97
{
101
98
combine : true ,
126
123
'-CA' , '/tmp/foo-ca.crt' ,
127
124
'-CAkey' , '/tmp/foo-ca.key' ,
128
125
'-passin' , 'env:CERTIFICATE_PASSIN' ,
129
- '-extensions' , 'v3_req' ,
130
126
] ,
131
127
{
132
128
combine : true ,
You can’t perform that action at this time.
0 commit comments