|
| 1 | +--- |
| 2 | +id: linux |
| 3 | +title: Install for Linux |
| 4 | +--- |
| 5 | + |
| 6 | +## Certify Management Hub |
| 7 | + |
| 8 | +If you just want to try out the Management Hub and easy way to do that is to use [docker or other container tool](containers.md). However if you want to install the Management Hub (or Management Agent) directly you can do that as well. |
| 9 | + |
| 10 | +#### Scripted Install |
| 11 | +The following commands: |
| 12 | +- Download the latest version, ensuring any old download and old install files are removed if present |
| 13 | +- Extract the downloaded archive to the temporary ./certify-hub-install path |
| 14 | +- Runs the install script to install under /opt/certify-hub, and sets up the hub as a systemd service called `certify-hub`, running as user `certify`. |
| 15 | + |
| 16 | +``` |
| 17 | +rm ./certify-hub-linux-x64-latest.tar.gz -f |
| 18 | +wget https://certifytheweb.s3.amazonaws.com/downloads/archive/beta/hub/certify-mgmthub-linux-x64-latest.tar.gz |
| 19 | +rm -rf ./certify-hub-install && mkdir -p ./certify-hub-install |
| 20 | +tar -xvf certify-mgmthub-linux-x64-latest.tar.gz -C ./certify-hub-install |
| 21 | +sudo ./certify-hub-install/scripts/install-hub.sh |
| 22 | +``` |
| 23 | + |
| 24 | +Note: for arm64, replace `x64` with `arm64` in the above instructions. |
| 25 | + |
| 26 | +This will configure/update a systemd service called `certify-hub` running as user `certify`, with the main installed files under `/opt/certify-hub`. Settings will be stored under `/usr/share/certify`, by default the UI will be available at `http://localhost:8080` |
| 27 | + |
| 28 | +To then clean up the temporary install files: |
| 29 | +``` |
| 30 | +rm -rf ./certify-hub* |
| 31 | +``` |
| 32 | + |
| 33 | +##### Manual Install |
| 34 | +Alternatively, manually update and configure your install to your own preferences, you will need to run the executable `<install location>/Certify.HubService` to run the service and the user for the process will need to write to `/usr/share/certify`. |
| 35 | + |
| 36 | +### Post Install Steps |
| 37 | +The default configuration will make the service and UI available at `http://localhost:8080`, with the default username `admin` and default password `changeme!`. |
| 38 | + |
| 39 | +To use the service with https you can either [configure the service to use https](service.md) or reverse proxy the service from a webserver of your choice (Caddy, IIS, nginx, Apache etc and administer https on those as normal). |
| 40 | + |
| 41 | +:::note |
| 42 | +Do not install the Hub service where you also want to use Certify Certificate Manager (or Certify Management Agent) as they will share the same settings/databases via different services which could create confusion or conflicts and is not a supported configuration. |
| 43 | +::: |
| 44 | + |
| 45 | +Suggested Configuration for multi-user access: |
| 46 | +- Create an internal DNS hostname for the service e.g. certify-hub.yourowndomain.com and point it at the internal IP of your server hosting the hub. |
| 47 | +- [Configure the service to use https](service.md) |
| 48 | +- Setup individual user accounts under Settings > Security > Users, and assign the roles required for each user (e.g. Administrator). |
| 49 | + |
| 50 | +## Certify Management Agent |
| 51 | + |
| 52 | +The following commands: |
| 53 | +- Download the latest version, ensuring any old download and old install files are removed if present |
| 54 | +- Extract the downloaded archive to the temporary ./certify-agent-install path |
| 55 | +- Runs the install script to install under /opt/certify-agent, and sets up the agent as a systemd service running as user `certify`. |
| 56 | + |
| 57 | +``` |
| 58 | +rm ./certify-agent-linux-x64-latest.tar.gz -f |
| 59 | +wget https://certifytheweb.s3.amazonaws.com/downloads/archive/beta/agent/certify-agent-linux-x64-latest.tar.gz |
| 60 | +rm -rf ./certify-agent-install && mkdir -p ./certify-agent-install |
| 61 | +tar -xvf certify-agent-linux-x64-latest.tar.gz -C ./certify-agent-install |
| 62 | +sudo ./certify-agent-install/scripts/install-agent.sh |
| 63 | +``` |
| 64 | + |
| 65 | +To then clean up the temporary install files: |
| 66 | +``` |
| 67 | +rm -rf ./certify-agent* |
| 68 | +``` |
0 commit comments