File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
articles/iot-operations/end-to-end-tutorials Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -89,7 +89,7 @@ kubectl patch secret opc-plc-trust-list -n azure-iot-operations -p "{\"data\": $
89
89
```
90
90
91
91
``` powershell
92
- $cert = kubectl -n azure-iot-operations get secret aio-opc-opcuabroker-default-application-cert -o jsonpath='{.data.tls\.crt}' | base64 -d
92
+ $cert = kubectl -n azure-iot-operations get secret aio-opc-opcuabroker-default-application-cert -o jsonpath='{.data.tls\.crt}' | %{ [Text.Encoding]::UTF8.GetString([Convert]::FromBase64String($_)) }
93
93
$data = kubectl create secret generic temp --from-literal=opcuabroker.crt="$cert" --dry-run=client -o jsonpath='{.data}'
94
94
kubectl patch secret opc-plc-trust-list -n azure-iot-operations -p "{""data"": $data}"
95
95
```
@@ -98,10 +98,14 @@ kubectl patch secret opc-plc-trust-list -n azure-iot-operations -p "{""data"": $
98
98
99
99
Every OPC UA server type has its own mechanism for managing its application instance certificate. To download the simulator's certificate to a file called ` opcplc-000000.crt ` , run the following command:
100
100
101
- ``` console
101
+ ``` bash
102
102
kubectl -n azure-iot-operations get secret opc-plc-default-application-cert -o jsonpath=' {.data.tls\.crt}' | base64 -d > opcplc-000000.crt
103
103
```
104
104
105
+ ``` powershell
106
+ kubectl -n azure-iot-operations get secret opc-plc-default-application-cert -o jsonpath='{.data.tls\.crt}' | %{ [Text.Encoding]::UTF8.GetString([Convert]::FromBase64String($_)) } > opcplc-000000.crt
107
+ ```
108
+
105
109
To add the simulator's certificate to the connector's trust list:
106
110
107
111
1 . Go to the [ operations experience] ( https://iotoperations.azure.com ) web UI and sign in with your Microsoft Entra ID credentials.
You can’t perform that action at this time.
0 commit comments