Enum ublox_cellular::command::device_data_security::types::SecurityProfileOperation [−][src]
pub enum SecurityProfileOperation {
Show 14 variants
CertificateValidationLevel(CertificateValidationLevel),
SslTslVersion,
CipherSuite(u8),
TrustedRootCertificateInternalName(String<200>),
ExpectedServerHostname(String<256>),
ClientCertificateInternalName(String<200>),
ClientPrivateKeyInternalName(String<200>),
ClientPrivateKeyPassword(String<128>),
PresharedKey,
PresharedKeyIdentity,
ServerNameIndication(String<128>),
PskKey(bool),
ServerCertificatePinning(String<200>, PinningLevel),
TlsSessionResumption,
}
Variants
CertificateValidationLevel(CertificateValidationLevel)
- 0: certificate validation level;
Tuple Fields of CertificateValidationLevel
- 1: SSL/TLS version to use; allowed values for <param_val1>:
- 0 (factory-programmed value): any; server can use any version for the connection.
- 1: TLSv1.0; connection allowed only to TLS/SSL servers which support TLSv1.0
- 2: TLSv1.1; connection allowed only to TLS/SSL servers which support TLSv1.1
- 3: TLSv1.2; connection allowed only to TLS/SSL servers which support TLSv1.2
CipherSuite(u8)
- 2: cipher suite; allowed values for <param_val1> define which cipher
suite will be used:
- 0 (factory-programmed value): (0x0000) Automatic the cipher suite will be negotiated in the handshake process
- 1: (0x002f) TLS_RSA_WITH_AES_128_CBC_SHA
- 2: (0x003C) TLS_RSA_WITH_AES_128_CBC_SHA256
- 3: (0x0035) TLS_RSA_WITH_AES_256_CBC_SHA
- 4: (0x003D) TLS_RSA_WITH_AES_256_CBC_SHA256
- 5: (0x000a) TLS_RSA_WITH_3DES_EDE_CBC_SHA
- 6: (0x008c) TLS_PSK_WITH_AES_128_CBC_SHA
- 7: (0x008d) TLS_PSK_WITH_AES_256_CBC_SHA
- 8: (0x008b) TLS_PSK_WITH_3DES_EDE_CBC_SHA
- 9: (0x0094) TLS_RSA_PSK_WITH_AES_128_CBC_SHA
- 10: (0x0095) TLS_RSA_PSK_WITH_AES_256_CBC_SHA
- 11: (0x0093) TLS_RSA_PSK_WITH_3DES_EDE_CBC_SHA
- 12: (0x00ae) TLS_PSK_WITH_AES_128_CBC_SHA256
- 13: (0x00af) TLS_PSK_WITH_AES_256_CBC_SHA384
- 14: (0x00b6) TLS_RSA_PSK_WITH_AES_128_CBC_SHA256
- 15: (0x00b7) TLS_RSA_PSK_WITH_AES_256_CBC_SHA384
- 99: cipher suite selection using IANA enumeration, <byte_1> and <byte_2> are strings containing the 2 bytes that compose the IANA enumeration, see Table 85.
Tuple Fields of CipherSuite
0: u8
TrustedRootCertificateInternalName(String<200>)
- 3: trusted root certificate internal name;
(string) is the internal name identifying a trusted root certificate; the maximum length is 200 characters. The factory-programmed value is an empty string.
Tuple Fields of TrustedRootCertificateInternalName
0: String<200>
ExpectedServerHostname(String<256>)
- 4: expected server hostname;
(string) is the hostname of the server, used when certificate validation level is set to Level 2; the maximum length is 256 characters. The factory-programmed value is an empty string.
Tuple Fields of ExpectedServerHostname
0: String<256>
ClientCertificateInternalName(String<200>)
- 5: client certificate internal name;
(string) is the internal name identifying a client certificate to be sent to the server; the maximum length is 200 characters. The factory-programmed value is an empty string.
Tuple Fields of ClientCertificateInternalName
0: String<200>
ClientPrivateKeyInternalName(String<200>)
- 6: client private key internal name;
(string) is the internal name identifying a private key to be used; the maximum length is 200 characters. The factory-programmed value is an empty string.
Tuple Fields of ClientPrivateKeyInternalName
0: String<200>
ClientPrivateKeyPassword(String<128>)
- 7: client private key password;
(string) is the password for the client private key if it is password protected; the maximum length is 128 characters. The factory-programmed value is an empty string.
Tuple Fields of ClientPrivateKeyPassword
0: String<128>
- 8: pre-shared key;
- <preshared_key> (string) is the pre-shared key used for connection; the factoryprogrammed value is an empty string. The accepted string type and length depends on the <string_type> value.
- <string_type> (number) defines the type and the maximum length of
the <preshared_key> string. Allowed values for <string_type>:
- 0 (default value): <preshared_key> is an ASCII string and its maximum length is 64 characters
- 1: <preshared_key> is an hexadecimal string and its maximum length is 128 characters
- 9: pre-shared key identity;
- <preshared_key_id> (string) is the pre-shared key identity used for connection; the factoryprogrammed value is an empty string. The accepted string type and length depends on the <string_type> value.
- <string_type> (number) defines the type of the <preshared_key_id>
string. Allowed values for <string_type>:
- 0 (default value): <preshared_key_id> is an ASCII string and its maximum length is 128 characters
- 1: <preshared_key_id> is an hexadecimal string and its maximum length is 256 characters
ServerNameIndication(String<128>)
- 10: SNI (Server Name Indication);
(string) value for the additional negotiation header SNI (Server Name Indication) used in SSL/TLS connection negotiation; the maximum length is 128 characters. The factory-programmed value is an empty string.
Tuple Fields of ServerNameIndication
0: String<128>
PskKey(bool)
- 11: PSK key and PSK key identity generated by RoT (Root of trust);
allowed values for <param_ val1>:
- 0 (factory-programmed value): OFF - The PSK and PSK key ID are NOT generated by RoT
- 1: ON - The PSK and PSK key ID are generated by RoT in the process of SSL/TLS connection negotiation
Tuple Fields of PskKey
0: bool
ServerCertificatePinning(String<200>, PinningLevel)
- 12: server certificate pinning;
- <server_certificate> (string) internal name identifying a certificate configured to be used for server certificate pinning; the maximum length is 200 characters. The factoryprogrammed value is an empty string.
- <pinning_level> defines the certificate pinning information level.
Allowed values for <pinning_level>
- 0: pinning based on information comparison of received and configured certificate public key
- 1: pinning based on binary comparison of received and configured certificate public key
- 2: pinning based on binary comparison of received and configured certificate
Tuple Fields of ServerCertificatePinning
0: String<200>
1: PinningLevel
- 13: TLS session resumption;
(number) configures the TLS session resumption. Allowed values: - 0: session resumption status
(number) configures the session resumption status. Allowed values: o 0 (factory-programmed value): disabled o 1: enabled
- 1: session resumption type
(number) configures the session resumption type. Allowed values: o 0: session ID
- 2: session resumption data for <param_val1>=0 (session
resumption type is session ID)
(string): base64 encoded session ID value. The maximum length is 48 characters (string): base64 encoded session master key. The maximum length is 64 characters
- 0: session resumption status
Trait Implementations
Deserialize this value from the given Serde deserializer. Read more
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.