Skip to main content

Notifications

Finance | Project Operations, Human Resources, ...
Unanswered

Generate Self-Signed Certificates Error

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

  • Suggested answer
    fsilva-jr Profile Picture
    fsilva-jr 20 on at
    Generate Self-Signed Certificates Error
    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.
  • Shabir Ahmad Profile Picture
    Shabir Ahmad 3,024 on at
    Generate Self-Signed Certificates Error
    Hi Go Watanabe,
     
    Same above issue. Did you find any solution for this.
     
    Best Regards,
    Shabir Ahmad
  • CU14081119-0 Profile Picture
    CU14081119-0 4 on at
    Generate Self-Signed Certificates Error
     Did anyone can answer this the above error.
     

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

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Complete!

🔔 Be sure to subscribe to the new forums you are interested in to stay up to date! 🔔

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,101 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 229,908 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans