Vom Host wird folgendes Gesendet
CONNECTED(00000003)
depth=2 O = Digital Signature Trust Co., CN = DST Root CA X3
verify return:1
depth=1 C = US, O = Let's Encrypt, CN = Let's Encrypt Authority X3
verify return:1
depth=0 CN = smarthome.yourownsolution.de
verify return:1
---
Certificate chain
0 s:/CN=smarthome.yourownsolution.de
i:/C=US/O=Let's Encrypt/CN=Let's Encrypt Authority X3
1 s:/C=US/O=Let's Encrypt/CN=Let's Encrypt Authority X3
i:/O=Digital Signature Trust Co./CN=DST Root CA X3
---
Server certificate
-----BEGIN CERTIFICATE-----
MIIFGzCCBAOgAwIBAgISA9ZxwL5jGt2xJjuvFrLflnJoMA0GCSqGSIb3DQEBCwUA
MEoxCzAJBgNVBAYTAlVTMRYwFAYDVQQKEw1MZXQncyBFbmNyeXB0MSMwIQYDVQQD
ExpMZXQncyBFbmNyeXB0IEF1dGhvcml0eSBYMzAeFw0xNzA5MDYxODMyMDBaFw0x
NzEyMDUxODMyMDBaMCcxJTAjBgNVBAMTHHNtYXJ0aG9tZS55b3Vyb3duc29sdXRp
b24uZGUwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQC6f4TspNKAfnsi
1WixEXeIJvqEXO1OR/E+jGgiwjtYAhEcb0XB547HchaK24QNzsIuKIIvoHLnw8cy
DxL+nFiD4LCOcaFXhHm/Rs6qzmLVMGN2Q1WK5LBzqNNZxuOvCQGaNoaJKm+nPZkr
Ks+d1q8/btAwR/GQFPDGowtpQYXR+7mCTKkMbHbUOyJc/Sl7KGwwAfN25RBDwnQa
DJcX0wREFOW1tmxUI6HX4P3xlLQiUWCjfGBd6ukUsGg2U9TYYE+xqG47m6jTbfql
FCGqYW9+K1dZMhuwu2mdB9V+qeN02u1r3yJIqkrl2Oxxk7JP8duCOh/fwemDxroV
PKHglmPxAgMBAAGjggIcMIICGDAOBgNVHQ8BAf8EBAMCBaAwHQYDVR0lBBYwFAYI
KwYBBQUHAwEGCCsGAQUFBwMCMAwGA1UdEwEB/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C=US/O=Let's Encrypt/CN=Let's Encrypt Authority X3
---
No client certificate CA names sent
Peer signing digest: SHA512
Server Temp Key: ECDH, P-256, 256 bits
---
SSL handshake has read 3163 bytes and written 434 bytes
---
New, TLSv1/SSLv3, Cipher is ECDHE-RSA-AES256-GCM-SHA384
Server public key is 2048 bit
Secure Renegotiation IS supported
Compression: NONE
Expansion: NONE
No ALPN negotiated
SSL-Session:
Protocol : TLSv1.2
Cipher : ECDHE-RSA-AES256-GCM-SHA384
Session-ID: 10A6F3D704B20085819BD77B57B5F46439E4CA8555779E6DEC84175964106499
Session-ID-ctx:
Master-Key: DA84582121992DD119125432E371F55D1C08D032DD830B41D1A8FDB0B1B3201E3E0F9C8BCD3E8DB6F70E1C167EDF4CAB
Key-Arg : None
PSK identity: None
PSK identity hint: None
SRP username: None
TLS session ticket lifetime hint: 300 (seconds)
TLS session ticket:
0000 - 03 da 6c fc 96 83 c3 d7-55 41 56 c8 c3 c7 d4 c6 ..l.....UAV.....
0010 - 3d c6 0a d8 a5 fd c2 ab-e4 b6 ad 55 14 fe b8 9c =..........U....
0020 - fa 69 18 c8 2d 90 7e 11-10 08 7d f7 51 c9 3c a2 .i..-.~...}.Q.<.
0030 - ec d6 87 eb d2 51 89 35-6d 6c 7b b1 12 e6 a3 f0 .....Q.5ml{.....
0040 - 93 79 37 70 49 99 70 fa-1d 77 a7 22 00 c7 d8 20 .y7pI.p..w."...
0050 - 68 c6 44 61 1b 62 6f c3-04 81 37 c1 b8 c5 4d b5 h.Da.bo...7...M.
0060 - 13 f1 0c 90 aa a2 0e 08-16 e0 dd a6 50 ba a8 08 ............P...
0070 - 86 44 40 dc d1 cc 9a 90-d9 8e a0 34 c5 42 26 57 .D@........4.B&W
0080 - d8 9c 55 7f 53 18 0a b7-0d 2e ab a0 18 9c 79 1f ..U.S.........y.
0090 - b3 cc 74 74 57 c8 ee 18-17 81 21 6a 6f 06 28 d5 ..ttW.....!jo.(.
00a0 - 72 2a e7 ae bd c3 e8 5f-7c 7c b3 0c 43 f3 4c a5 r*....._||..C.L.
Start Time: 1504863989
Timeout : 300 (sec)
Verify return code: 0 (ok)
---
closed
Passt ja irgendwie nicht ganz mein Server heißt ja IWILR3-3 und mein Client IWILR2-4
Habe dann mal mein selbst erstelltes Zertifikat wieder eingebunden und auch ein Client Zertifikat erstellt.
Das habe ich dann folgend eingebunden.
Homegear Conf
### TLS options ###
# Set to "true" to enable SSL encryption for MQTT.
enableSSL = true
# The path to the certificate authority's certificate
caFile = /etc/homegear/m2mqtt_ca.crt
# verifyCertificate checks if the server certificate received by the
# MQTT broker is signed by one of the root CAs in /etc/ssl/certs. If you use
# a self signed certificate, please put your root certificate in that
# directory. Only disable the verification for testing purposes. Without
# verification any attacker can pose as your MQTT broker.
# Default: verifyCertificate = true
verifyCertificate = true
# The path to the PEM encoded client certificate.
certPath = /etc/homegear/client.crt
# The path to the PEM encoded client keyfile.
keyPath = /etc/homegear/client.key
Nun bekomme ich folgende Meldung im Log angezeigt.
Log
09/08/17 13:06:41.579 MQTT Client: Error in file MQTT/Mqtt.cpp line 108 in function void Mqtt::start(): Could not load client certificate and key from "/etc/homegear/client.crt" and "/etc/homegear/client.key": Decryption has failed.
Danke @pmayer für den Tipp mit der Formatierung!