Skip to content

Commit

Permalink
Change to aliases separated by realm
Browse files Browse the repository at this point in the history
  • Loading branch information
pankalog committed Jul 18, 2024
1 parent 0e44fa8 commit 77875da
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/user-guide/agents-protocols/mqtt.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ openssl pkcs12 -export -in OpenRemoteAWSCertificate.pem.crt -inkey OpenRemoteAWS
```
- Import the keypair into the existing keystore. Take note of the input for the `alias` parameter, we'll need it later:
```shell
keytool -importkeystore -destkeystore <storage dir>/<realm>.client_keystore -srckeystore OpenRemoteAWSKeyPair.p12 -srcstoretype PKCS12 -alias <realm name of your choice>.OpenRemoteAwsIoTClientCertificate
keytool -importkeystore -destkeystore <storage dir>/client_keystore.p12 -srckeystore OpenRemoteAWSKeyPair.p12 -srcstoretype PKCS12 -alias <realm name of your choice>.OpenRemoteAwsIoTClientCertificate
```
- Import the Amazon Root CA certificate into the truststore;
```shell
Expand All @@ -46,7 +46,7 @@ keytool -importcert -file AmazonRootCA1.pem -keystore <storage dir>/<realm>.clie

Now, we are ready to start OpenRemote again, and create a new MQTT Agent.

**Make sure** that the Agent is situated in the realm that is specified in the Alias, or else OpenRemote will not be able to retrieve the correct certificate.
**Make sure** that the Agent is situated in the realm that is specified in the Alias from the command above, or else OpenRemote will not be able to retrieve the correct certificate.

In that agent, ensure that you have set:
- The correct host and port (AWS IoT Core MQTT broker is set to `8883`)
Expand Down

0 comments on commit 77875da

Please sign in to comment.