# How to Replace NetBeez BeezKeeper Server Certificates - Detailed Instructions

**URL:** <https://community.netbeez.net/t/how-to-replace-netbeez-beezkeeper-server-certificates-detailed-instructions/81>\
**Category:** Deploy & Configure\
**Tags:** server, certificates\
**Created:** [June 15, 2023, 1:03pm UTC](https://community.netbeez.net/t/how-to-replace-netbeez-beezkeeper-server-certificates-detailed-instructions/81 "2023-06-15T13:03:16Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![panickos](https://yyz1.discourse-cdn.com/flex031/user_avatar/community.netbeez.net/panickos/32/8_2.png) [@panickos](https://community.netbeez.net/u/panickos)\
**Post date:** [June 15, 2023, 1:03pm UTC](https://community.netbeez.net/t/how-to-replace-netbeez-beezkeeper-server-certificates-detailed-instructions/81/1 "2023-06-15T13:03:16Z")

</div>

This post is to guide you through the process of replacing your server certificates. Please follow the instructions below ( **as root** ):

1. Prior to making any changes to the existing files, it’s crucial that you keep backups of the existing certificate and key. Use the following commands:

2. Then place the `.key` and `.crt` files in the following locations:

3. If the certificate you’re working with requires the inclusion of the certificate chain, the `netbeez.crt` file must be ordered as follows:

4. Once the files are copied, restart the dashboard service:

### Othe notes:

If your key has a passphrase, the dashboard won’t be able to start. To remove the passphrase from the key file, use this command (it will prompt for the passphrase to run this command, so you must know it to remove it):

```auto
openssl rsa -in netbeez-key-with-passphrase.key -out netbeez.key

```

Finally, to verify if the certificate and the key match, execute the following commands. The outputs of these commands should match:

```auto
openssl pkey -in netbeez.key -pubout -outform pem | sha256sum
openssl x509 -in netbeez.crt -pubkey -noout -outform pem | sha256sum

```

Please reply to this post if you have any questions or need further clarification on any of the steps.
