Skip to content

Commit f4a5cdd

Browse files
authored
Merge pull request #288227 from MicrosoftDocs/main
Merge main to live, 4 AM
2 parents 5e707b0 + 0f8a468 commit f4a5cdd

File tree

1 file changed

+22
-5
lines changed

1 file changed

+22
-5
lines changed

articles/iot-operations/discover-manage-assets/howto-configure-opcua-certificates-infrastructure.md

Lines changed: 22 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ A deployed instance of Azure IoT Operations Preview. To deploy Azure IoT Operati
2727

2828
## Configure a self-signed application instance certificate
2929

30-
The default deployment of the connector for OPC UA installs all the resources needed by [cert-manager](https://cert-manager.io/) to create an OPC UA compliant self-signed certificate. This certificate is stored in the `aio-opc-opcuabroker-default-application-cert` secret. This secret is mapped into all the connector for OPC UA pods and acts as the OPC UA client application instance certificate. `cert-manager` handles the automatic renewal of this application instance certificate.
30+
The default deployment of the connector for OPC UA installs all the resources needed by [cert-manager](https://cert-manager.io/) to create an OPC UA compliant certificate. A self-signed CA is used to sign this certificate. The application instance certificate is stored in the `aio-opc-opcuabroker-default-application-cert` secret while the CA certificate is stored in `aio-opc-opcuabroker-default-root-ca-cert` secret. The `aio-opc-opcuabroker-default-application-cert` secret is mapped into all the connector for OPC UA pods and acts as the OPC UA client application instance certificate. `cert-manager` handles the automatic renewal of both the application instance certificate and the self signed CA.
3131

3232
This configuration is typically sufficient for compliant and secure communication between your OPC UA servers and the connector for OPC UA in a demonstration or exploration environment. For a production environment, use enterprise grade application instance certificates in your deployment.
3333

@@ -208,9 +208,9 @@ If your OPC UA server uses a certificate issued by a CA, but you don't want to t
208208
209209
## Configure your OPC UA server
210210
211-
To complete the configuration of the application authentication mutual trust, you need to configure your OPC UA server to trust the connector for OPC UA application instance certificate:
211+
To complete the configuration of the application authentication mutual trust, you need to configure your OPC UA server to trust the connector for OPC UA application instance certificate together with its issuer trust chain:
212212
213-
1. To extract the connector for OPC UA certificate into a `opcuabroker.crt` file, run the following command:
213+
1. To extract the public key certificate for the OPC UA connector into a `opcuabroker.crt` file, run the following command:
214214
215215
# [Bash](#tab/bash)
216216
@@ -226,13 +226,30 @@ To complete the configuration of the application authentication mutual trust, yo
226226
227227
---
228228
229-
1. Many OPC UA servers only support certificates in the DER format. If necessary, use the following command to convert the _opcuabroker.crt_ certificate to _opcuabroker.der_:
229+
1. To extract the CA public key certificate for the OPC UA connector into a `opcuabroker-ca.crt` file, run the following command:
230+
231+
# [Bash](#tab/bash)
232+
233+
```bash
234+
kubectl -n azure-iot-operations get secret aio-opc-opcuabroker-default-application-cert -o jsonpath='{.data.ca\.crt}' | base64 -d > opcuabroker-ca.crt
235+
```
236+
237+
# [PowerShell](#tab/powershell)
238+
239+
```powershell
240+
kubectl -n azure-iot-operations get secret aio-opc-opcuabroker-default-application-cert -o jsonpath='{.data.ca\.crt}' | %{ [Text.Encoding]::UTF8.GetString([Convert]::FromBase64String($_)) } > opcuabroker-ca.crt
241+
```
242+
243+
---
244+
245+
1. Many OPC UA servers only support certificates in the DER format. If necessary, use the following command to convert the _opcuabroker.crt_ and _opcuabroker-ca.crt_ certificates to _opcuabroker.der_ and _opcuabroker-ca.der_:
230246
231247
```bash
232248
openssl x509 -outform der -in opcuabroker.crt -out opcuabroker.der
249+
openssl x509 -outform der -in opcuabroker-ca.crt -out opcuabroker-ca.der
233250
```
234251
235-
1. Consult the documentation of your OPC UA server to learn how to add the `opcuabroker.crt` or `opcuabroker.der` certificate file to the server's trusted certificates list.
252+
1. Consult the documentation of your OPC UA server to learn how to add the `opcuabroker.crt` or `opcuabroker.der` certificate file to the server's trusted certificates list, and the `opcuabroker-ca.crt` or `opcuabroker-ca.der` CA certificate file into the server's trusted issuers list.
236253
237254
## Configure an enterprise grade application instance certificate
238255

0 commit comments

Comments
 (0)