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

Announcements

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,110 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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

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

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 692 Super User 2026 Season 1

#2
Abhilash Warrier Profile Picture

Abhilash Warrier 280 Super User 2026 Season 1

#3
Giorgio Bonacorsi Profile Picture

Giorgio Bonacorsi 244

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans