SignServer In Place Upgrade
Overview
This guide will upgrade a single node from SignServer Enterprise version 5.4.0 to SignServer Enterprise 5.5.0. In this example, the SignServer host will have an IP Address of 172.1617.130. Please change this IP address to be the IP Address that matches the SignServer node being upgraded.
Download the SignServer binary file from your customer download folder or obtain a copy from support at support@primekey.com.
- Copy the upgrade package to the SignServer node using the following method:
- Using the CLI:
If using a Mac or Linux based computer use the following command to copy the file to the host (Note: If using AWS, ensure you specify the user as ec2-user with your SSH key and in Azure, specify the user provisioned with your instance)BASHscp ~/Downloads/signserver-ee-5.5.0.Final-bin.zip root@172.16.17.130:/opt/dist/
- If using a program such as WinSCP or CyberDuck:
Click "Open Connection":
Enter the host credentials and click connect:
Select the /opt/dist directory
Drag and drop the file to the SignServer host in the /opt/dist directory.
- Using the CLI:
- SSH to the SignServer host and login as rootBASH
ssh root@172.16.17.130
- Change directory to the /opt directoryBASH
cd /opt
- Unzip the upgrade file into the /opt/ directoryBASH
unzip dist/signserver-ee-5.5.0.Final-bin.zip
- Ensure the file extracted into the /opt/ directory by doing a directory listingBASH
[root@signserver-node-01 opt]# ls -la total 0 drwxr-xr-x. 8 root root 148 May 15 17:34 . drwxr-xr-x. 17 root root 261 May 14 20:19 .. drwxr-xr-x. 2 root root 60 May 15 17:29 dist lrwxrwxrwx. 1 root root 22 May 14 18:20 signserver -> /opt/signserver-ee-5.4.0.Final/ drwxr-xr-x. 7 wildfly wildfly 80 May 14 20:22 signserver-ee-5.4.0.Final drwxr-xr-x 6 root root 52 May 14 12:20 signserver-ee-5.5.0.Final drwxr-xr-x. 6 wildfly wildfly 90 May 14 20:23 PrimeKey drwxr-xr-x. 3 root root 21 May 14 17:54 rh lrwxrwxrwx. 1 root root 25 May 14 18:03 wildfly -> /opt/wildfly-10.1.0.Final drwxr-xr-x. 10 wildfly wildfly 237 May 14 18:20 wildfly-10.1.0.Final [root@signserver-node-01 opt]#
- Copy the existing config files to the new SignServer install folder overwriting the default files with the existing filesBASH
/bin/cp -f signserver/conf/*.properties signserver-ee-5.5.0.Final/conf/
- Stop WildFlyBASH
systemctl stop wildfly
- Remove "signserver" symlinkBASH
rm signserver
NOTE: Ensure it asks you to remove symbolic link!
BASHrm: remove symbolic link ‘signserver’?
If sure, select "y" and press enter.
- Create a new symbolic linkBASH
ln -s signserver-ee-5.5.0.Final signserver
- Ensure the symbolic link points to the new SignServer directoryBASH
lrwxrwxrwx 1 root root 16 May 15 17:53 signserver -> signserver-ee-5.5.0.Final
- Change the ownership of the new SignServer files (ensure the trailing "/" in the command below so the permissions of the directory are changed and not the symlink itself)BASH
chown -R wildfly:wildfly /opt/signserver/
- Copy the "signserver.ear" file to the WildFly deployments directoryBASH
/bin/cp -f signserver/dist/signserver.ear /opt/wildfly/standalone/deployments/
- Restart wildflyBASH
systemctl start wildfly
- Ensure the new version of SignServer is 5.5.0 in the Admin UI