Skip to content

Commit

Permalink
[CLEANUP] Connect to test.mosquito.org got "SSLHandshake failed -9828…
Browse files Browse the repository at this point in the history
…" by using TLS #191
  • Loading branch information
Christoph Krey committed Aug 22, 2016
1 parent f7b1310 commit e5ee6e3
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 39 deletions.
8 changes: 0 additions & 8 deletions MQTTClient/MQTTClient.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
840487631C51212700569C79 /* MQTTFramework.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = DE9EF5C51C0628B1009EF667 /* MQTTFramework.framework */; };
840507C5193DCF2E002EBBD2 /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 840507C4193DCF2E002EBBD2 /* UIKit.framework */; };
840715FA1BBE999700FBB3CB /* mosquitto.org.cer in Resources */ = {isa = PBXBuildFile; fileRef = 8482D3C91B49332700D81CC8 /* mosquitto.org.cer */; };
840715FC1BBE999700FBB3CB /* KreyChristoph.p12 in Resources */ = {isa = PBXBuildFile; fileRef = 8482D3C31B49110200D81CC8 /* KreyChristoph.p12 */; };
840715FD1BBE999700FBB3CB /* server.der in Resources */ = {isa = PBXBuildFile; fileRef = C21D3CA71B1ED2F40012DD2F /* server.der */; };
840715FE1BBE999700FBB3CB /* ADNNetServerTrustChain in Resources */ = {isa = PBXBuildFile; fileRef = C21D3C9D1B1EC4400012DD2F /* ADNNetServerTrustChain */; };
840715FF1BBE999700FBB3CB /* HTTPBinOrgServerTrustChain in Resources */ = {isa = PBXBuildFile; fileRef = C21D3C9F1B1EC44A0012DD2F /* HTTPBinOrgServerTrustChain */; };
Expand All @@ -45,7 +44,6 @@
8407163E1BBEF16E00FBB3CB /* CFNetwork.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 8407163D1BBEF16E00FBB3CB /* CFNetwork.framework */; };
840716401BBEF17600FBB3CB /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 8407163F1BBEF17600FBB3CB /* Foundation.framework */; };
840716411BBEF18B00FBB3CB /* mosquitto.org.cer in Resources */ = {isa = PBXBuildFile; fileRef = 8482D3C91B49332700D81CC8 /* mosquitto.org.cer */; };
840716431BBEF18B00FBB3CB /* KreyChristoph.p12 in Resources */ = {isa = PBXBuildFile; fileRef = 8482D3C31B49110200D81CC8 /* KreyChristoph.p12 */; };
840716441BBEF18B00FBB3CB /* server.der in Resources */ = {isa = PBXBuildFile; fileRef = C21D3CA71B1ED2F40012DD2F /* server.der */; };
840716451BBEF18B00FBB3CB /* adn_0.cer in Resources */ = {isa = PBXBuildFile; fileRef = C21D3CA11B1EC63E0012DD2F /* adn_0.cer */; };
840716461BBEF18B00FBB3CB /* adn_1.cer in Resources */ = {isa = PBXBuildFile; fileRef = C21D3CA31B1EC6420012DD2F /* adn_1.cer */; };
Expand Down Expand Up @@ -164,7 +162,6 @@
846191481883E56800101409 /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = 846191461883E56800101409 /* InfoPlist.strings */; };
8461914A1883E56800101409 /* MQTTClientTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 846191491883E56800101409 /* MQTTClientTests.m */; };
8462436D1ABEAB2900B72519 /* CoreData.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 8462436B1ABEAAF900B72519 /* CoreData.framework */; };
8482D3C41B49110200D81CC8 /* KreyChristoph.p12 in Resources */ = {isa = PBXBuildFile; fileRef = 8482D3C31B49110200D81CC8 /* KreyChristoph.p12 */; };
8482D3CA1B49332700D81CC8 /* mosquitto.org.cer in Resources */ = {isa = PBXBuildFile; fileRef = 8482D3C91B49332700D81CC8 /* mosquitto.org.cer */; };
848BB8F3195FF7A2004FCAE2 /* MQTTClientOnlyTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 848BB8F2195FF7A2004FCAE2 /* MQTTClientOnlyTests.m */; };
84998C841C0ED7EF00119061 /* MQTTSessionLegacy.h in Headers */ = {isa = PBXBuildFile; fileRef = 84998C801C0ED09700119061 /* MQTTSessionLegacy.h */; settings = {ATTRIBUTES = (Public, ); }; };
Expand Down Expand Up @@ -300,7 +297,6 @@
846191FF1883E8FD00101409 /* MQTTSession.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = MQTTSession.h; sourceTree = "<group>"; };
846243671ABE9E5900B72519 /* MQTTPersistence.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = MQTTPersistence.h; sourceTree = "<group>"; };
8462436B1ABEAAF900B72519 /* CoreData.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreData.framework; path = System/Library/Frameworks/CoreData.framework; sourceTree = SDKROOT; };
8482D3C31B49110200D81CC8 /* KreyChristoph.p12 */ = {isa = PBXFileReference; lastKnownFileType = file; path = KreyChristoph.p12; sourceTree = "<group>"; };
8482D3C91B49332700D81CC8 /* mosquitto.org.cer */ = {isa = PBXFileReference; lastKnownFileType = file; path = mosquitto.org.cer; sourceTree = "<group>"; };
848BB8F2195FF7A2004FCAE2 /* MQTTClientOnlyTests.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = MQTTClientOnlyTests.m; sourceTree = "<group>"; };
84998C801C0ED09700119061 /* MQTTSessionLegacy.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = MQTTSessionLegacy.h; sourceTree = "<group>"; };
Expand Down Expand Up @@ -403,7 +399,6 @@
isa = PBXGroup;
children = (
8482D3C91B49332700D81CC8 /* mosquitto.org.cer */,
8482D3C31B49110200D81CC8 /* KreyChristoph.p12 */,
C21D3CA71B1ED2F40012DD2F /* server.der */,
C21D3CA11B1EC63E0012DD2F /* adn_0.cer */,
C21D3CA31B1EC6420012DD2F /* adn_1.cer */,
Expand Down Expand Up @@ -1012,7 +1007,6 @@
buildActionMask = 2147483647;
files = (
840716411BBEF18B00FBB3CB /* mosquitto.org.cer in Resources */,
840716431BBEF18B00FBB3CB /* KreyChristoph.p12 in Resources */,
840716441BBEF18B00FBB3CB /* server.der in Resources */,
840716451BBEF18B00FBB3CB /* adn_0.cer in Resources */,
840716461BBEF18B00FBB3CB /* adn_1.cer in Resources */,
Expand All @@ -1038,7 +1032,6 @@
840716081BBE99B000FBB3CB /* adn_1.cer in Resources */,
840716091BBE99B000FBB3CB /* adn_2.cer in Resources */,
840715FA1BBE999700FBB3CB /* mosquitto.org.cer in Resources */,
840715FC1BBE999700FBB3CB /* KreyChristoph.p12 in Resources */,
840715FD1BBE999700FBB3CB /* server.der in Resources */,
840715FE1BBE999700FBB3CB /* ADNNetServerTrustChain in Resources */,
840715FF1BBE999700FBB3CB /* HTTPBinOrgServerTrustChain in Resources */,
Expand Down Expand Up @@ -1066,7 +1059,6 @@
C21D3C9B1B1EC40A0012DD2F /* COMODO_RSA_Certification_Authority.cer in Resources */,
C21D3C9C1B1EC40C0012DD2F /* COMODO_RSA_Domain_Validation_Secure_Server_CA.cer in Resources */,
84BE34901C348BFD007EF8F3 /* MQTTTestHelpers.plist in Resources */,
8482D3C41B49110200D81CC8 /* KreyChristoph.p12 in Resources */,
C21D3C961B1EC4000012DD2F /* AltName.cer in Resources */,
C21D3C971B1EC4010012DD2F /* NoDomains.cer in Resources */,
C21D3C981B1EC4030012DD2F /* foobar.com.cer in Resources */,
Expand Down
34 changes: 3 additions & 31 deletions MQTTClient/MQTTClientTests/MQTTTestHelpers.plist
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,12 @@
<dict>
<key>brokerList</key>
<array>
<string>local</string>
<string>#local</string>
<string>#localWS</string>
<string>#aWsBroker</string>
<string>#mosquitto</string>
<string>mosquitto</string>
<string>#mosquittoWS</string>
<string>#mosquittoTLS</string>
<string>#mosquittoTLSClientCert</string>
<string>mosquittoTLS</string>
<string>#mosquittoWSS</string>
</array>
<key>brokers</key>
Expand Down Expand Up @@ -121,33 +120,6 @@
<key>protocollevel</key>
<integer>4</integer>
</dict>
<key>mosquittoTLSClientCert</key>
<dict>
<key>host</key>
<string>test.mosquitto.org</string>
<key>timeout</key>
<integer>10</integer>
<key>port</key>
<integer>8884</integer>
<key>tls</key>
<true/>
<key>secpol</key>
<true/>
<key>allowUntrustedCertificates</key>
<true/>
<key>validatesCertificateChain</key>
<false/>
<key>validatesDomainName</key>
<false/>
<key>serverCER</key>
<string>mosquitto.org</string>
<key>protocollevel</key>
<integer>4</integer>
<key>clientp12</key>
<string>KreyChristoph</string>
<key>clientp12pass</key>
<string>abcde</string>
</dict>
<key>mosquittoWSS</key>
<dict>
<key>host</key>
Expand Down
Binary file not shown.

0 comments on commit e5ee6e3

Please sign in to comment.