File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -127,6 +127,8 @@ def cmd_nexpose_connect(*args)
127
127
@trust_cert_file = args [ 1 ]
128
128
if File . exists? @trust_cert_file
129
129
@trust_cert = File . read ( @trust_cert_file )
130
+ else
131
+ @sslv = @trust_cert_file
130
132
end
131
133
end
132
134
when 4 , 5
@@ -135,6 +137,8 @@ def cmd_nexpose_connect(*args)
135
137
@trust_cert_file = @trust_cert
136
138
if File . exists? @trust_cert_file
137
139
@trust_cert = File . read ( @trust_cert_file )
140
+ else
141
+ @sslv = @trust_cert_file
138
142
end
139
143
end
140
144
else
@@ -146,9 +150,9 @@ def cmd_nexpose_connect(*args)
146
150
147
151
def nexpose_usage
148
152
print_status ( "Usage: " )
149
- print_status ( " nexpose_connect username:password@host[:port] <ssl-confirm>" )
153
+ print_status ( " nexpose_connect username:password@host[:port] <ssl-confirm || trusted_cert_file >" )
150
154
print_status ( " -OR- " )
151
- print_status ( " nexpose_connect username password host port <ssl-confirm>" )
155
+ print_status ( " nexpose_connect username password host port <ssl-confirm || trusted_cert_file >" )
152
156
end
153
157
154
158
def nexpose_login
@@ -693,4 +697,4 @@ def to_json
693
697
end
694
698
end
695
699
end
696
- end
700
+ end
You can’t perform that action at this time.
0 commit comments