Sunday 13 January 2019

Cannot process argument transformation on parameter 'Signer' during CreateSignedCert : NewSignedCertificate: Sitecore 9 Installation Issue

Getting this issue when i was trying to install another Sitecore 9 instance, did some google and found that need to first remove all the existing Sitecore certificates for CurrentUser and LocalMachine.
After this it works fine for me. 
Remember if already any Sitecore instance is running, then do not need to remove certificate for that instance

NewSignedCertificate-Sitecore


Below are the steps to fix this issue:

  • Open mmc (by win+R and type mmc)
  • Click on file and open Add/Remove Snap-in (CTRL+M)
  • Select Certificates from Left hand side and click on Add

  • Select as Computer Account - Next - Local Computer - Finish - OK
  • Console Root - Certificates (local Computer) -  Personal - Certificates
    • And now delete all the *.xconnect, *_SIF, *_sitecore_* related certificates
  • Same follow for Console Root - Certificates (local Computer) -  Trusted Root Certification Authorities - Certificates
    • And now delete all the *.xconnect, *_SIF, *_sitecore_* related certificates

removing-sitecore-certificate

  • Now again Click on file and open Add/Remove Snap-in (CTRL+M)
  • Select Certificates from Left hand side and click on Add
  • Select as Computer Account - Next - My User Account - OK - OK
  • Console Root - Certificates (local Computer) -  Personal - Certificates
    • And now delete all the *.xconnect, *_SIF, *_sitecore_* related certificates
  • Same follow for Console Root - Certificates (local Computer) -  Trusted Root Certification Authorities - Certificates
    • And now delete all the *.xconnect, *_SIF, *_sitecore_* related certificates
remove-sitecore-certificate-currentuser

After these steps, remove physical certificate files from directory c:certificates/

Now again run the final installation script, hope this will help to fix coming issue while installation.


Friday 11 January 2019

All about Package.json ?

Usually, when we are going to start development with any Javascript Framework related project, Package.json is the first step to know all about. And today we will know all about Package.json

sitecore-jss-package.json


What is Package.json?

It's a plain JSON file
Kind of manifest for the project
Help others to easily use, manage and install dependencies
List packages on which project depends on
Packages are in ranges or the specific version
File must contain packages in "name" and "version" format
Used to give information to npm that allows it to identify the project
And help to handle the project's dependencies
Also contain other metadata such as license, distribution, configuration data
Also recommended to put DevDependencies, which makes dev life smooth by fast development

Package.json contains?

All the information are listed in ascending order as below:

name
 sets the application/package name
version
indicates the current version
description 
is a brief description of the app/package
main
set the entry point for the application
private
if set to true prevents the app/package to be accidentally published on npm
scripts
defines a set of node scripts you can run
dependencies
 sets a list of npm packages installed as dependencies
devDependencies
 sets a list of npm packages installed as development dependencies
engines
sets which versions of Node this package/app works on
browserslist
is used to tell which browsers (and their versions) you want to support


Role of package.json?

Whenever user run "npm install" command on root level, all the dependencies related to project which is listed in Package.json will be installed.
and put all dependencies to "node_modules" directory