OneIdentity / safeguard-ps

One Identity Safeguard PowerShell scripting resources
Apache License 2.0
22 stars 27 forks source link

safeguard-ps under PowerShell 7.4 doesn't report TLS error properly #508

Closed petrsnd closed 10 months ago

petrsnd commented 10 months ago

I have a new appliance set up with an untrusted, self-signed TLS certificate. When I try to connect without the -Insecure option, the error handling code uses some unsupported cmdlets or options when trying to process exceptions.

PS> connect-safeguard 10.3.94.5
(certificate, local)
Provider: local
Username: Admin
Password: ********
Add-Type: (30,13): error SYSLIB0051: 'Exception.Exception(SerializationInfo, StreamingContext)' is obsolete: 'This API supports
obsolete formatter-based serialization. It should not be called or extended by application code.'
(https://aka.ms/dotnet-warnings/SYSLIB0051)             : base(info, context) {}
petrsnd commented 10 months ago

duplicate of #505