Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in Get-AutomationCertificate for PowerShell 7.2 #100

Open
canturan opened this issue Mar 29, 2023 · 1 comment
Open

Error in Get-AutomationCertificate for PowerShell 7.2 #100

canturan opened this issue Mar 29, 2023 · 1 comment

Comments

@canturan
Copy link

The Get-AutomationCertificate command does not work in PowerShell 7.2 runtime.

The same command works without any problem in PowerShell 5.1. Addition to that, it was also working for the PowerShell 7.2 10 days ago. It is a new bug in the 7.2 runtime. The 7.2 runtime somehow does not have access to the automation account certificates.

The error message: Object not found.

That means, we don't have any possibility to use certificates with the PowerShell 7.2 runtime. I would be very happy, if there would be fix for that as soon as possible.

Thank you!!

@canturan
Copy link
Author

I have dug a little bit deeper into the problem. The problem occurs only on the certificates with the private key. If I try to load a certificate, from a file or from a base64 encoded string, I can create the X509 Certificate object without any problem. Only on the certificates with private key (.pfx oder base64 encoded string of a .pfx), I get the same error message "Object not found". That should also be the cause of the problem, when we try to get the Automation Certificate which is also a .pfx (certificate with a private key.) I think it is failing internally during the creation of the X509 object.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant