Add flag to skip verification of SSL certificate#205
Open
tflowers15 wants to merge 3 commits intogalaxyproject:masterfrom
Open
Add flag to skip verification of SSL certificate#205tflowers15 wants to merge 3 commits intogalaxyproject:masterfrom
tflowers15 wants to merge 3 commits intogalaxyproject:masterfrom
Conversation
Update to common_parser to include an optional flag to skip verification of the SSL certificate when connecting to a Galaxy instance. Default value of 'False' when not included in a function call (SSL certificate will be verified). Including the flag in the function call sets the value to 'True' (SSL certificate will NOT be verified).
Added check of skip_verify flag to python scripts after the line of main() that makes the Galaxy connections, gi = get_galaxy_connection(). SSL certificate verification is skipped if the skip_verify flag is True (default is False).
Update to common_parser to include an optional flag to skip verification of the SSL certificate when connecting to a Galaxy instance. Default value of 'False' when not included in a function call (SSL certificate will be verified). Including the flag in the function call sets the value to 'True' (SSL certificate will NOT be verified). Added check of skip_verify flag to python scripts after the line of main() that makes the Galaxy connections, gi = get_galaxy_connection(). SSL certificate verification is skipped if the skip_verify flag is True (default is False).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Within the Galaxy connection object (
gi) created using bioblend, there is an attribute the turn verification of the SSL certificate on/off:gi.verify. The default isgi.verify=True. There are some circumstances when there may be issues with verifying the SSL certificate, which results in the Galaxy connection failing. If this happens it is useful to be able to setgi.verify=Falseso as to still connect to the Galaxy instance.This pull request updates the
common_parserto include an optional flag to skip verification of the SSL certificate when connecting to a Galaxy instance. The default value isFalsewhen not included in a function call (the SSL certificate will be verified). Including the flag in the function call sets the flag toTrue(the SSL certificate will NOT be verified).Added check of the
skip_verifyflag to python scripts that connect to a Galaxy instance after the line ofmain()that makes the Galaxy connections,gi=get_galaxy_connection(). SSL certificate verification is skipped if theskip_verifyflag isTrue(default isFalse):if args.skip_verify: gi.verify = False.