New-Object : Exception calling “.ctor” with “2” argument(s): "Access denied. "
At O:\Octopus\Work\20191115135006-15570-8961\Script.ps1:14 char:17
- … $cert = New-Object System.Security.Cryptography.X509Certificates. …
-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- CategoryInfo : InvalidOperation: (
[New-Object], MethodInvocationException
- FullyQualifiedErrorId : ConstructorInvokedThrowException,Microsoft.PowerShell.Commands.NewObjectCommand
- CategoryInfo : InvalidOperation: (
We migrated octopus server recently after that facing the above issue for certificate reading. Can some one help to solve the issue