web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Suggested Answer

Generate Self-Signed Certificates Error

(0) ShareShare
ReportReport
Posted on by 10

When setting up a Development or Test environment for Dynamics 365 following bellow URL.

Set up the downloadable VHD for first use - Finance & Operations | Dynamics 365 | Microsoft Learn

I got the error when execute Generate Self-Signed Certificates.

Creating self-signed certificate with Subject: CN=DeploymentsOnebox.SessionAuthenticationCertificate.pfx
ForEach-Object : CertEnroll::CObjectId::InitializeFromValue: The parameter is incorrect. 0x80070057 (WIN32: 87 ERROR_IN
VALID_PARAMETER)
At C:\DynamicsTools\CleanVHD\Build-Vhd.ps1:278 char:29
+ $EnhancedKeyUsage | ForEach-Object {
+ ~~~~~~~~~~~~~~~~
+ CategoryInfo : OperationStopped: (:) [ForEach-Object], ArgumentException
+ FullyQualifiedErrorId : System.ArgumentException,Microsoft.PowerShell.Commands.ForEachObjectCommand

pastedimage1671759224361v1.png

I registered the app or web API and set the application id as first parameter, and set 'N' as  second parameter.

Could you tell me how to resolve this ERROR?

Best Regards,

Go Watanabe

I have the same question (0)
  • CU14081119-0 Profile Picture
    4 on at
     Did anyone can answer this the above error.
     

  • Shabir Ahmad Profile Picture
    3,124 on at
    Hi Go Watanabe,
     
    Same above issue. Did you find any solution for this.
     
    Best Regards,
    Shabir Ahmad
  • Suggested answer
    fsilva-jr Profile Picture
    20 on at
    Are you using one account/App Registration/Tenant which already has F&O valid licenses?
    You will only be able to use it if the account you are using already have valid licenses.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Martin Dráb Profile Picture

Martin Dráb 265 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 261 Super User 2026 Season 2

#3
Subra Profile Picture

Subra 229 Super User 2026 Season 2

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans