Skip to content

Commit bfcb7f2

Browse files
committed
Add long option for cert.
1 parent d10cd2d commit bfcb7f2

File tree

1 file changed

+2
-2
lines changed
  • lib/msf/ui/console/command_dispatcher

1 file changed

+2
-2
lines changed

lib/msf/ui/console/command_dispatcher/db.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ def cmd_add_data_service(*args)
111111
port = args.shift
112112
when '-s', '--ssl'
113113
protocol = "https"
114-
when '-c'
114+
when '-c', '--cert'
115115
https_opts[:cert] = args.shift
116116
when '--skip-verify'
117117
https_opts[:skip_verify] = true
@@ -138,7 +138,7 @@ def cmd_add_data_service_help
138138
print_line " -h, --help Show this help information."
139139
print_line " -p <port> The port the data service is listening on. Default is 80."
140140
print_line " -s, --ssl Enable SSL. Required for HTTPS data services."
141-
print_line " -c Certificate file matching the server's certificate. Needed when using self-signed SSL cert."
141+
print_line " -c, --cert Certificate file matching the server's certificate. Needed when using self-signed SSL cert."
142142
print_line " --skip-verify Skip validating authenticity of server's certificate. NOT RECOMMENDED."
143143
print_line
144144
end

0 commit comments

Comments
 (0)