Skip to content

Commit edcd7e1

Browse files
Merge pull request #272446 from dominicbetts/aio-encoding
AIO: Fix encoding for SPC commands
2 parents 5ff8204 + ad41ac8 commit edcd7e1

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

articles/iot-operations/manage-devices-assets/howto-configure-opc-plc-simulator.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,12 +54,12 @@ The application instance certificate of the OPC PLC is a self-signed certificate
5454

5555
```bash
5656
kubectl -n azure-iot-operations get secret aio-opc-ua-opcplc-default-application-cert-000000 -o jsonpath='{.data.tls\.crt}' | \
57-
xargs -I {} \
57+
base64 -d | \
58+
xargs -0 -I {} \
5859
az keyvault secret set \
5960
--name "opcplc-crt" \
6061
--vault-name <azure-key-vault-name> \
6162
--value {} \
62-
--encoding base64 \
6363
--content-type application/x-pem-file
6464
```
6565

@@ -83,7 +83,6 @@ The application instance certificate of the OPC PLC is a self-signed certificate
8383
objectName: opcplc-crt
8484
objectType: secret
8585
objectAlias: opcplc.crt
86-
objectEncoding: hex
8786
```
8887

8988
The projection of the Azure Key Vault secrets and certificates into the cluster takes some time depending on the configured polling interval.

0 commit comments

Comments
 (0)