Skip to content

Adding TLS 1.2 support for the PowerShell module#154

Merged
chriswahl merged 3 commits intomasterfrom
TLS12Support
Jan 2, 2018
Merged

Adding TLS 1.2 support for the PowerShell module#154
chriswahl merged 3 commits intomasterfrom
TLS12Support

Conversation

@MikeFal
Copy link
Copy Markdown
Contributor

@MikeFal MikeFal commented Jan 2, 2018

Description

Currently, PowerShell defaults to using TLS 1.0 for Invoke-WebRequest. This change forces use of TLS 1.2.

Related Issue

Fixes #153 RFE: TLS 1.2 support

Motivation and Context

If the Rubrik cluster disables TLS 1.0, the PowerShell module will stop working. Enforcing TLS 1.2 for the Rubrik PowerShell module solves this issue.

How Has This Been Tested?

Rubrik's SE-3 lab has TLS 1.0 disabled. With the updated module, Get-RubrikVM, Get-RubrikDatabase, and New-RubrikSnapshot were tested to validate no issues with connectivity.

Types of changes

What types of changes does your code introduce? Put an x in all the boxes that apply:

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

Go over all the following points, and put an x in all the boxes that apply. If you're unsure about any of these, don't hesitate to ask. We're here to help!

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTION document.
  • I have updated the CHANGELOG file accordingly for the version that this merge modifies.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

Mike Fal added 3 commits January 2, 2018 11:59
- Removed TLS 1.2 force from Submit-Request (relying on TLS 1.2 to be added as part of the connect)
- Modified Connect-Rubrik to check for Tls12 in SecurityProtocol, add to existing protocols if not found.
Copy link
Copy Markdown
Contributor

@chriswahl chriswahl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested on my end. Works fine. :shipit:

@chriswahl chriswahl merged commit eaaa84e into master Jan 2, 2018
@chriswahl chriswahl deleted the TLS12Support branch January 3, 2018 00:52
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.

RFE: TLS 1.2 support

2 participants