Step 1: backup the keystore C:\Program Files\Embotics\vCommander\tomcat\conf


Step 2: open powershell as ADMIN and run the command:  cd "C:\Program Files\Embotics\vCommander\jre\bin"


Step 3: List the Keys

.\Keytool -list -v -keystore "C:\Program Files\Embotics\vCommander\tomcat\conf\keystore" -storepass changeit


Step 4: Delete Expired Keys

.\keytool -delete -alias tomcat -keystore "C:\Program Files\Embotics\vCommander\tomcat\conf\keystore" -storepass changeit


Step 5: Verify Keys are deleted

.\Keytool -list -v -keystore "C:\Program Files\Embotics\vCommander\tomcat\conf\keystore" -storepass changeit


Step 6: Make a new private key

.\keytool -genkey -alias tomcat -keyalg RSA -keysize 2048 -sigalg SHA256withRSA -validity 365 -keystore "C:\Program Files\Embotics\vCommander\tomcat\conf\keystore" -storepass changeit


Step 7: Verify the key was created

.\Keytool -list -v -keystore "C:\Program Files\Embotics\vCommander\tomcat\conf\keystore" -storepass changeit


Step 8: Create the signing request

.\keytool -certreq -keyalg RSA -alias tomcat -file embotics2018.csr -keystore "C:\Program Files\Embotics\vCommander\tomcat\conf\keystore" -ext san=dns:mutant.pv.embotics.com,dns:mutant,dns:myCloudPortal.pv.embotics.com -storepass changeit


Step 9: retrieve the CSR from C:\Program Files\Embotics\vCommander\jre\bin

Step 10: upload the CSR to your certificate authority

Step 11: save the certs to "C:\Program Files\Embotics\vCommander\jre\bin"


Step 12-A: Import the p7b certificate chain


.\keytool -import -trustcacerts -alias tomcat -file embotics2018.p7b -keystore "C:\Program Files\Embotics\vCommander\tomcat\conf\keystore" -storepass changeit


Step 12-B: Import the certificates in the order root, intermed,tomcat


.\keytool -import -trustcacerts -alias root -file root.cer -keystore "C:\Program Files\Embotics\vCommander\tomcat\conf\keystore" -storepass changeit

.\keytool -import -trustcacerts -alias intermed -file intermed.cer -keystore "C:\Program Files\Embotics\vCommander\tomcat\conf\keystore" -storepass changeit

.\keytool -import -trustcacerts -alias tomcat -file embotics2018.cer -keystore "C:\Program Files\Embotics\vCommander\tomcat\conf\keystore" -storepass changeit


Step 13: restart the vcommander windows service


restart-service -name vcommander