From bfcb7f2e501b1924541cefb5ce18398a16def9cd Mon Sep 17 00:00:00 2001 From: James Barnett Date: Tue, 23 Jan 2018 17:10:10 -0600 Subject: [PATCH] Add long option for cert. --- lib/msf/ui/console/command_dispatcher/db.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/msf/ui/console/command_dispatcher/db.rb b/lib/msf/ui/console/command_dispatcher/db.rb index 6044a14bd0..1aa2a19811 100644 --- a/lib/msf/ui/console/command_dispatcher/db.rb +++ b/lib/msf/ui/console/command_dispatcher/db.rb @@ -111,7 +111,7 @@ module Msf port = args.shift when '-s', '--ssl' protocol = "https" - when '-c' + when '-c', '--cert' https_opts[:cert] = args.shift when '--skip-verify' https_opts[:skip_verify] = true @@ -138,7 +138,7 @@ module Msf print_line " -h, --help Show this help information." print_line " -p The port the data service is listening on. Default is 80." print_line " -s, --ssl Enable SSL. Required for HTTPS data services." - print_line " -c Certificate file matching the server's certificate. Needed when using self-signed SSL cert." + print_line " -c, --cert Certificate file matching the server's certificate. Needed when using self-signed SSL cert." print_line " --skip-verify Skip validating authenticity of server's certificate. NOT RECOMMENDED." print_line end