Skip to content

Add flag to skip verification of SSL certificate#205

Open
tflowers15 wants to merge 3 commits intogalaxyproject:masterfrom
tflowers15:master
Open

Add flag to skip verification of SSL certificate#205
tflowers15 wants to merge 3 commits intogalaxyproject:masterfrom
tflowers15:master

Conversation

@tflowers15
Copy link

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 is gi.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 set gi.verify=False so as to still connect to the Galaxy instance.

This pull request updates the common_parser to include an optional flag to skip verification of the SSL certificate when connecting to a Galaxy instance. The default value is False when not included in a function call (the SSL certificate will be verified). Including the flag in the function call sets the flag to True (the SSL certificate will NOT be verified).

Added check of the skip_verify flag to python scripts that connect to a Galaxy instance 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): if args.skip_verify: gi.verify = 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).
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).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant