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

Community site session details

Session Id :
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

I have the same question (0)
  • Suggested answer
    fsilva-jr Profile Picture
    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
    3,110 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
    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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Andrés Arias – Community Spotlight

We are honored to recognize Andrés Arias as our Community Spotlight honoree for…

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

#1
Sohaib Cheema Profile Picture

Sohaib Cheema 814 User Group Leader

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 798 Super User 2025 Season 2

#3
CA Neeraj Kumar Profile Picture

CA Neeraj Kumar 622

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans