Friday, June 30, 2023

How to fix Docker Sitecore Next JSS setup issue : The certificate chain was issued by an authority that is not trusted.

This blog will help you if you are trying to set up the Sitecore Next JSS application using Docker and come across an error -' The certificate chain was issued by an authority that is not trusted '

Error Screenshot:



Follow the following steps to resolve the issue:

1. Go to the file - 'nuget.config' and change HTTPS to HTTP as shown below.

    <add key="Nuget" value="http://api.nuget.org/v3/index.json" />
    <add key="Sitecore" value="http://sitecore.myget.org/F/sc-packages/api/v3/index.json" />



2. Go to file - 'Dockerfile' and comment out the following command.
          
        RUN nuget restore -Verbosity quiet




3. Go to the file- '\docker\build\nodejs\Dockerfile' and change the command as shown in the screenshot below.

RUN curl.exe -sS -k -L -o node.zip https://nodejs.org/dist/v%NODEJS_VERSION%/node-v%NODEJS_VERSION%-win-x64.zip"





                                                          Hope this helps. Happy learning!

No comments:

Post a Comment

How to Create a Public Link Using the Sitecore Content Hub REST API

Creating a public link using the Sitecore Content Hub REST API is a straightforward process that enables you to share content externally whi...