Skip to main content

Notifications

Announcements

No record found.

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

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

  • 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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Verified Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,445 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans