This is an automated email from the ASF dual-hosted git repository. rubys pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/whimsy.git
The following commit(s) were added to refs/heads/master by this push: new f9c54d4 add a no-verify option f9c54d4 is described below commit f9c54d4f46265ac7311a6360235396bdb1835628 Author: Sam Ruby <ru...@intertwingly.net> AuthorDate: Sat Oct 24 15:00:41 2020 -0400 add a no-verify option --- www/board/agenda/daemon/wsc.rb | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/www/board/agenda/daemon/wsc.rb b/www/board/agenda/daemon/wsc.rb index c7f09b7..b3fd22e 100644 --- a/www/board/agenda/daemon/wsc.rb +++ b/www/board/agenda/daemon/wsc.rb @@ -24,6 +24,7 @@ options.host = 'whimsy.local' options.path = '/board/agenda/websocket/' options.user = Etc.getlogin options.restart = false +options.verfify = true opt_parser = OptionParser.new do |opts| opts.banner = "Usage: #{File.basename(__FILE__)} [options]" @@ -44,6 +45,10 @@ opt_parser = OptionParser.new do |opts| options.protocol = 'wss' end + opts.on "--noverify", 'Bypass SSL certificate verification' do + options.verify = false + end + opts.on "--user USER", 'User to log in as' do |user| options.user = user end @@ -92,6 +97,7 @@ EM.run do ssl = {use_ssl: options.protocol == 'wss'} response = Net::HTTP.start(options.host, options.port, ssl) do |http| + http.verify_mode = OpenSSL::SSL::VERIFY_NONE if options.verify http.request(request) end