Solutions
...
LE Sparkplug Edge Node
Environment Variables
TLS Certs
3min
- Open the certificate file that you want to encode in a text editor.
- Select all the contents of the certificate file, including the BEGIN and END certificate lines. For example, if you're encoding a certificate file named mycert.pem, the contents might look something like this:
- Copy the selected contents to your clipboard.
- Open a new browser tab and navigate to an online base64 encoder such as https://www.base64encode.org/.
- Paste the contents of the certificate file into the text area on the encoder page.
- Click the "Encode" button to convert the contents to a base64-encoded string.
- Copy the encoded string to your clipboard.
- Repeat the above steps for any additional certificate files that you need to encode.
To encode certificates from the command line, please check out Base64 Encode or Decode on the command line without installing extra tools on Linux, Windows or macOS.
Once you have encoded your certificate files to base64-encoded strings, you can use them to configure the application as shown below: