MQTTAsync_sslProperties defines the settings to establish an SSL/TLS connection using the OpenSSL library. More...
#include <MQTTAsync.h>
Data Fields | |
char | struct_id [4] |
The eyecatcher for this structure. | |
int | struct_version |
The version number of this structure. | |
const char * | trustStore |
The file in PEM format containing the public digital certificates trusted by the client. | |
const char * | keyStore |
The file in PEM format containing the public certificate chain of the client. | |
const char * | privateKey |
If not included in the sslKeyStore, this setting points to the file in PEM format containing the client's private key. | |
const char * | privateKeyPassword |
The password to load the client's privateKey if encrypted. | |
const char * | enabledCipherSuites |
The list of cipher suites that the client will present to the server during the SSL handshake. | |
int | enableServerCertAuth |
True/False option to enable verification of the server certificate. |
MQTTAsync_sslProperties defines the settings to establish an SSL/TLS connection using the OpenSSL library.
It covers the following scenarios:
const char* MQTTAsync_SSLOptions::enabledCipherSuites |
The list of cipher suites that the client will present to the server during the SSL handshake.
For a full explanation of the cipher list format, please see the OpenSSL on-line documentation: http://www.openssl.org/docs/apps/ciphers.html#CIPHER_LIST_FORMAT If this setting is ommitted, its default value will be "ALL", that is, all the cipher suites -excluding those offering no encryption- will be considered. This setting can be used to set an SSL anonymous connection ("aNULL" string value, for instance).
const char* MQTTAsync_SSLOptions::keyStore |
The file in PEM format containing the public certificate chain of the client.
It may also include the client's private key.
const char* MQTTAsync_SSLOptions::privateKeyPassword |
The password to load the client's privateKey if encrypted.
char MQTTAsync_SSLOptions::struct_id[4] |
The eyecatcher for this structure.
Must be MQTS
The version number of this structure.
Must be 0
const char* MQTTAsync_SSLOptions::trustStore |
The file in PEM format containing the public digital certificates trusted by the client.