freaky-media / PRTGScripts

8 stars 5 forks source link

Add TLSv1.2 support #3

Open flostyen opened 3 years ago

flostyen commented 3 years ago

Hi,

your nice script only works when nextcloud is running with TLSv1.0 due to powershell is only using TLSv1.0. To address this, simply add

[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12

to your script, as done in the fork: https://github.com/flostyen/PRTGScripts/blob/master/PRTG-NextCloud-Status/Prtg_NextCloud.ps1

Kind regards, Flo :-)