Skip to content
This repository has been archived by the owner on Oct 24, 2024. It is now read-only.

Allow enabled SSL protocols to be specified #86

Merged
merged 6 commits into from
Dec 25, 2018
Merged
Show file tree
Hide file tree
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions manifests/init.pp
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,8 @@
$proxy_user = '',
$proxy_password = '',
$is_password_secure = true,
Optional[Enum['ssl3', 'tls', 'tls11', 'tls12', 'tls13']]
ekohl marked this conversation as resolved.
Show resolved Hide resolved
$security_protocol = undef,
Optional[Integer] $timeout = undef,
Optional[Array[String]] $cookies = undef,
Optional[String] $user_agent = undef
Expand Down
4 changes: 4 additions & 0 deletions templates/download.ps1.erb
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
<% if @security_protocol -%>
[Net.ServicePointManager]::Expect100Continue = 'true';
[Net.ServicePointManager]::SecurityProtocol = '<%= @security_protocol %>';
<% end -%>
$webclient = New-Object System.Net.WebClient
$user = '<%= @user %>'
$password = '<%= @password %>'
Expand Down