Skip to content

Commit 84ce2b3

Browse files
Merge pull request SharePoint#7817 from reshmee011/patch-1
Update Unable to Trust the self-signed development certificate
2 parents 7161e63 + d0744da commit 84ce2b3

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

docs/spfx/set-up-your-development-environment.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: Set up your SharePoint Framework development environment
33
description: Use any text editor to build SharePoint Framework solutions. You can use macOS, Windows, or Linux.
4-
ms.date: 02/10/2022
4+
ms.date: 03/24/2022
55
ms.prod: sharepoint
66
ms.localizationpriority: high
77
ms.custom: scenarios:getting-started
@@ -172,7 +172,9 @@ npm list --global --depth=0️
172172

173173
If you're having trouble trusting your self-signed certificate when you run **gulp trust-dev-cert** & you've verified that the correct versions of all dependencies are installed, one solution we usually see resolve the issue is to uninstall all globally installed packages, uninstall Node.js, reboot & start again.
174174

175-
In some cases, executing the command **gulp trust-dev-cert**, doesn't have the wanted effect of trusting the self-signed development certificate on your machine. In rare cases such as these, you may need to delete a hidden folder that's generated in your profile folder. Locate & delete the folder **{{homedir}}/.gcb-serve-data** and then try to trust the self-signed development certificate again.
175+
In some cases, executing the command **gulp trust-dev-cert**, doesn't have the wanted effect of trusting the self-signed development certificate on your machine. In rare cases such as these, you may need to delete a hidden folder that's generated in your profile folder.
176+
Locate & delete the folder **{{homedir}}/.gcb-serve-data** for SPFx version earlier than v1.12.1. For later versions delete folder **{{homedir}}/.rushstack** then try to trust the self-signed development certificate again. Otherwise running **gulp untrust-dev-cert** will have same effect to remove the certificate files from the profile folder.
177+
In case the certificate is not added to the Trusted Root Certification Authority despite running **gulp trust-dev-cert** because of some policies blocking the action, the **rushstack-serve.pem** file from **{{homedir}}/.rushstack** folder can be imported manually into the Certificate Manager under Trusted Root Certification Authority with a local admin account.
176178

177179
### Unable to Install Packages with NPM - Corporate Proxies
178180

0 commit comments

Comments
 (0)