Why are my Powershell Secrets Cmdlets now throwing exceptions

52 views Asked by At

If I run any of the secrets vault cmdlets I get the following error:

Get-SecretInfo: Exception calling "GetInstance" with "0" argument(s): "Padding is invalid and cannot be removed."

Another example:

> get-secret -Vault Secrets -Name SecretName  -AsPlainText

Get-Secret: Exception calling "GetInstance" with "0" argument(s): "Padding is invalid and cannot be removed." Get-Secret: Exception calling "GetInstance" with "0" argument(s): "Padding is invalid and cannot be removed." Get-Secret: The secret SecretName was not found.

I'm using the latest version of Powershell.

Has anyone encountered this before and now how to fix it or workaround it?

0

There are 0 answers