CertificateAuthority Property
General info
Label |
Certificate Authority |
Description |
A file containing the PEM encoded trusted CA certificate files. Either .CertificateAuthorityPath or .CertificateAuthority should be specified to enable certificate based SSL/TLS support. Note: .CertificateAuthorityFile property will be prioritized over .CertificateAuthority if both specified. |
Data type |
ByteString |
Type |
Regular |
Code |
6718 |
Symbolic name |
MODEL_PROP_CERTIFICATEAUTHORITY |
Lua access code |
syslib.model.properties.CertificateAuthority |
Available since |
1.54 |
- Parent properties
Attributes
| Name | Tooltip |
|---|---|
| PROP_CONFIGURABLE | The property is configurable and can be changed with DataStudio and the various inmation APIs. |
| PROP_VISIBLE | The property is visible in DataStudio and can be read by the inmation APIs. |
Examples
Read from or write to the CertificateAuthority property.
-- Read from the CertificateAuthority
syslib.getvalue("<OBJECT FULL PATH>.SaFGenericBufferInterfaceExtension.MqttParameters.SslTlsSupport.CertificateAuthority")
-- Write to the CertificateAuthority
syslib.setvalue("<OBJECT FULL PATH>.SaFGenericBufferInterfaceExtension.MqttParameters.SslTlsSupport.CertificateAuthority", VALUE)
TcpConfig tcpcfg = new TcpConfig() { HostNameOrIp = "localhost", Port = 6512 };
SecurityCredentials sc = new SecurityCredentials() { ProfileName = "<username>", Password = "<password>" };
StatelessInterface sli = new StatelessInterface(tcpcfg);
// Read from the CertificateAuthority
Result result = sli.ReadValue(sc, new ReadItem("<OBJECT FULL PATH>.SaFGenericBufferInterfaceExtension.MqttParameters.SslTlsSupport.CertificateAuthority"));
// Write to the CertificateAuthority
Result result = sli.WriteValue(sc, new WriteItem(VALUE, "<OBJECT FULL PATH>.SaFGenericBufferInterfaceExtension.MqttParameters.SslTlsSupport.CertificateAuthority"));