Key-vault certificate reading issue

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: (:slight_smile: [New-Object], MethodInvocationException
    • FullyQualifiedErrorId : ConstructorInvokedThrowException,Microsoft.PowerShell.Commands.NewObjectCommand

We migrated octopus server recently after that facing the above issue for certificate reading. Can some one help to solve the issue

Hi @pradeenimal,

Thanks for getting in touch! I can certainly help figure out what’s going on here. :slight_smile:

This error is often caused by the user running the Tentacle service lacking permissions. Can you confirm if this user has adequate permissions to perform this task? If they do, could you send your full verbose task log? The process to produce and export this log file is outlined in detail in the following doc page.

This should provide enough context to point us in the right direction.

I look forward to hearing back and getting to the bottom of this one!

Best regards,