sp-dev-docs icon indicating copy to clipboard operation
sp-dev-docs copied to clipboard

gulp trust-cert-dev access denied problem

Open kkyim1 opened this issue 7 years ago • 6 comments

Category

  • [X ] Question
  • [ ] Typo
  • [ ] Bug
  • [ ] Additional article idea

Expected or Desired Behavior

Hello,

I am trying to create a spfx Hello World web part on Windows 10 Professional and when I run "gulp trust-cert-dev" command, I received "Trusted Root Certification Authorities" (under Certificates - Current User) access denied problem.

My machine is connecting to company domain and I believe a Group Policy Object is setup to cause the issue.

I installed the invalid certificate (gulp-connect) into "Trusted Root Certification Authorities" (under Certificates (Local Computer)). The certificate's status showed OK (In Certificate panel) but IE and Chrome still showing "Certificate Error".

Can someone guide me to create a localhost self-signed certificate for SharePoint Framework by using Powershell? (Like using New-SelfSignedCertificate cmdlet). I researched on the Internet and the solutions that I found don't work for me.

Thanks for your help.

Ken

kkyim1 avatar Aug 30 '19 17:08 kkyim1

Thank you for reporting this issue. We will be triaging your incoming issue as soon as possible.

msft-github-bot avatar Aug 30 '19 17:08 msft-github-bot

Hi @kkyim1 , Please see if this helps: https://www.sharepointed.com/2018/04/sharepoint-spfx-gulp-trust-dev-cert-error/

nanddeepn avatar Sep 08 '19 10:09 nanddeepn

Hi @kkyim1,

will get this issue when your corporate proxy is restricting to execute the gulp, to over come this the below commands needs to be executed.

npm config set proxy http://proxy.company.com:8080 npm config set https-proxy http://proxy.company.com:8080 npm config set strict-ssl false npm config set unsafe-perm true

8080 is the sample proxy, this needs to be replaced with your organization proxy number. to find proxy : go to internet options -> lan settings in proxy server u will find it

refer to : https://jjasonclark.com/how-to-setup-node-behind-web-proxy/

PrasantiKintali avatar Sep 11 '19 10:09 PrasantiKintali

This issue has been automatically marked as stale because it has marked as requiring author feedback but has not had any activity for 7 days. It will be closed if no further activity occurs within next 7 days of this comment. Thank you for your contributions to SharePoint Developer activities.

msft-github-bot avatar Sep 18 '19 11:09 msft-github-bot

Closing issue due no response from original author. If this issue is still occurring, please open a new issue with additional details. Notice that if you have included another related issue as additional comment on this, please open that also as separate issue, so that we can track it independently.

msft-github-bot avatar Sep 25 '19 12:09 msft-github-bot

Issues that have been closed & had no follow-up activity for at least 7 days are automatically locked. Please refer to our wiki for more details, including how to remediate this action if you feel this was done prematurely or in error: Issue List: Our approach to locked issues

msft-github-bot avatar Jan 23 '20 18:01 msft-github-bot