New to JSS. Trying to use Sitecore Forms + JSS for the first time, I followed JSS documentation, creating a form in Sitecore; when I run jss deploy component Form --allowedplaceholders jss-main, I get error:

Manifest has been generated and written to C:\...\AppData\Local\Temp\tmp-52900G0A3kyGFGNy1\manifest\tempManifest.json/sitecore-import.json   
JSS is manifest packaging tapp to C:\...\AppData\Local\Temp\tmp-52900G0A3kyGFGNy1\package\tempPackage.manifest.zip...
Adding sitecore-import.json
Wrote C:\...\AppData\Local\Temp\tmp-52900G0A3kyGFGNy1\package\tempPackage.manifest.zip\tapp.1612293689528.manifest.zip
Sending package C:\...\AppData\Local\Temp\tmp-52900G0A3kyGFGNy1\package\tempPackage.manifest.zip\tapp.1612293689528.manifest.zip to https://----.local/sitecore/api/jss/import...
Unexpected response from import service:
Error: unable to verify the first certificate

    throw err;

When deploying my JSS app to sitecore, I had a similar certificate issue and had to use --acceptCertificate, but I understand that isn't accepted for deploy component.

This is a local instance of sitecore I'm using. Still kind of confused about whether I'm actually using connected or disconnected mode, since it's a local instance of Sitecore. Any help is appreciated. I haven't had a lot of luck searching for answers.

1 Answer 1


This issue occurs due to Node not trusting certificates added to Windows root Certificate Authority list. If you're using https with Sitecore locally, it's likely you'll need to whitelist that specific certificate to Node when running jss cli commands.

This is done (as you mentioned) using the --acceptCertificate flag. I believe this is supported by the deploy component command in all recent versions. To confirm, check the available parameters for this command in the CLI.

jss deploy component --help

Based on your example you would need to run something like:

jss deploy component Form --allowedPlaceholders jss-main --acceptCertificate yourCertThumbPrint

If you're not sure what the thumbprint should be, just run it as above (with a junk thumbprint) and the command will fail and print out the expected thumbprint. You can then replace it and run again. NB: Make sure your deployUrl in scjssconfig is set to the correct instance!

As for local vs disconnected, you may need to do some reading on the differences and architecture of each. However, note that if you are using forms with JSS, you should use connected mode. Disconnected is not currently supported. This is noted in the Limitations section of the JSS Forms documentation:

Forms cannot be defined or rendered in disconnected (connected, integrated, headless are supported)


  • Awesome! Thank you. I was wrong, you are right: --acceptCertificate is supported for deploy component.
    – T Lementz
    Commented Feb 3, 2021 at 13:53
  • 1
    I ran into this certificate issue while going through the "Sitecore Containers template for Sitecore JSS for Next.js" course (learning.sitecore.com/learn/lp/23/…). Adding the --acceptCertificate parameter with the appropriate thumbprint string to the couple of jss deploy calls in the up.ps1 file resolved the certificate error. Commented Sep 1, 2022 at 20:05

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.