Permalink
Browse files

Added config property no_verify_ssl to tolerate wildcard cert

  • Loading branch information...
1 parent 3c304ad commit 05ffa1ecc77fa49d1d4958a56aa464a2318b8e66 @scottrich scottrich committed with technoweenie Apr 22, 2013
Showing with 7 additions and 2 deletions.
  1. +3 −2 docs/rationalteamconcert
  2. +4 −0 lib/services/rational_team_concert.rb
View
@@ -20,5 +20,6 @@ Configuring the github hook:
1. Server Url - This is your server url (including the jazz application suffix). A valid example would be https://yourdomain:port/jazz or https://yourdomain:port/ccm.
2. Username - This is the username of the user used to access your Rational Team Concert instance.
3. Password - This is the password of the user used to access your Rational Team Concert instance.
-4. Project Area UUID - This is the uuid of your project area. It is needed to create new work items. You can find out the uuid by accessing your projet using the web ui (using the admin panel). The uuid will be after the itemId parameter in the url. E.g. itemId=_VZsIQOehEeGMALe74yZ8ZQ. Enter just the itemId, which in this example is _VZsIQOehEeGMALe74yZ8ZQ
-5. Basic Authentication - Check this option if you have configured your server to use basic authentication instead of form authentication.
+4. Project Area UUID - This is the uuid of your project area. It is needed to create new work items. You can find out the uuid by accessing your project using the web ui (using the admin panel). The uuid will be after the itemId parameter in the url. E.g. itemId=_VZsIQOehEeGMALe74yZ8ZQ. Enter just the itemId, which in this example is _VZsIQOehEeGMALe74yZ8ZQ
+5. Basic Authentication - Check this option if you have configured your server to use basic authentication instead of form authentication.
+6. No Verify SSL - Check this option if you need the hook to skip the verification of your server's SSL certificate. Not recommended for production use, but necessary if your server is running with a self-signed certificate or with a wildcard certificate, since the current Ruby level does not understand SNA/SNI.
@@ -2,6 +2,7 @@ class Service::RationalTeamConcert < Service
string :server_url, :username, :project_area_uuid
password :password
boolean :basic_authentication
+ boolean :no_verify_ssl
white_list :server_url, :username, :basic_authentication
attr_accessor :cookies
@@ -20,6 +21,9 @@ def checkSettings
end
def prepare
+ if data['no_verify_ssl']
+ http.ssl[:verify] = false
+ end
http.headers['X-com-ibm-team-userid']= data['username']
end

0 comments on commit 05ffa1e

Please sign in to comment.