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

Update-M365DSCAzureAdApplication creates certificate in wrong store #4880

Open
ketumbra opened this issue Jul 15, 2024 · 0 comments · May be fixed by #4881
Open

Update-M365DSCAzureAdApplication creates certificate in wrong store #4880

ketumbra opened this issue Jul 15, 2024 · 0 comments · May be fixed by #4881

Comments

@ketumbra
Copy link
Contributor

ketumbra commented Jul 15, 2024

Update-M365DSCAzureAdApplication when used with the -CreateSelfSignedCertificate switch, creates a certificate in the CurrentUser store.
Unfortunately, the other scripts in the module assume certificates specified with -CertificateThumbprint are in the LocalMachine store.
Passing the thumbprint as ..\..\LocalMachine\My\abced... does not work either.

I suggest we change the location of the generated cert to match the expectation and make it easier for new users to correctly authenticate with an app ID and certificate.

Additionally, this should be combined with -certificatePath to export the cert to a file. However, the export is only the public key which cannot be used for authentication. Is the intention here that the export should be a pfx?

@ketumbra ketumbra linked a pull request Jul 15, 2024 that will close this issue
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

Successfully merging a pull request may close this issue.

1 participant