Skip to content

Unable to trust the self-signed developer certificate before creating a project.ย #6592

@DGDC

Description

@DGDC

As of 1/4/2021 the https://docs.microsoft.com/en-us/sharepoint/dev/spfx/set-up-your-development-environment article states, with emphasis added:

Trusting the self-signed developer certificate

The SharePoint Framework's local webserver, used when testing your custom solutions from your development environment, uses HTTPS by default. This is implemented using a development self-signed SSL certificate. Self-signed SSL certificates are not trusted by your developer environment. You must first configure your development environment to trust the certificate.

A utility task is included in every SharePoint Framework project in the form of a gulp task. You can elect to do this now, or wait until you create your first project as covered in the Build your first SharePoint client-side web part (Hello World part 1) tutorial.

When executing gulp trust-dev-cert the following error is encountered.

[14:55:58] Local gulp not found in ~
[14:55:58] Try running: npm install gulp

The document states that "You can elect to do this now, or wait until you create your first project".

The use of "or" is that of a conjunction used to connect words, phrases, or clauses representing alternatives. E.g. You can dine in or you can carry out. In this case per the documentation, the command to trust the developer certificate can be done before creating a project or after creating a project.

The command fails before creating a project. So please fix the command OR correct the documentation.

Related Bugs:


Document Details

โš  Do not edit this section. It is required for docs.microsoft.com โžŸ GitHub issue linking.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Good First Issue ๐Ÿ†Great suggestion for someone from the community to jump in as their first issue to address / fix!area:docsCategory: SharePoint developer/development documentation relatedarea:docs-commentCategory: Comment left on bottom of a docs page here: https://docs.microsoft.com/sharepoint/devarea:toolingCategory: Development toolinghelp wantedLooking for someone to help with this issue (documentation fix, etc).type:archive-old-issueIssues which are closed as tool old for active work

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions