AWS iOT login issue using IAM user credentials iOSHow to login to AWS Console with an IAM user account?AWS IOT - Credential should be scoped to correct serviceValidate IAM User CredentialsAWS IoT login from android MQTT client using IAM is not workingAWS IoT Button Won't Connect to AWS IoTCertificate and Private Key from server not in bundle for AWS IOT connection in swiftConnecting Issue AWS IoT Websocket with Cognito Auth UsersAWS IoT+Android Reconnecting IssueAWS IoT certificate fileHow can I connect to Spring WebSocket server from IOS client?
Hostile work environment after whistle-blowing on coworker and our boss. What do I do?
How do I keep an essay about "feeling flat" from feeling flat?
Can criminal fraud exist without damages?
What is the intuitive meaning of having a linear relationship between the logs of two variables?
How to be diplomatic in refusing to write code that breaches the privacy of our users
Can a monster with multiattack use this ability if they are missing a limb?
Are there any comparative studies done between Ashtavakra Gita and Buddhim?
What is the opposite of 'gravitas'?
Should my PhD thesis be submitted under my legal name?
How could Frankenstein get the parts for his _second_ creature?
Is it okay / does it make sense for another player to join a running game of Munchkin?
How do I rename a LINUX host without needing to reboot for the rename to take effect?
What would be the benefits of having both a state and local currencies?
How can I use the arrow sign in my bash prompt?
What would happen if the UK refused to take part in EU Parliamentary elections?
Is it correct to write "is not focus on"?
Print name if parameter passed to function
If you attempt to grapple an opponent that you are hidden from, do they roll at disadvantage?
Mapping a list into a phase plot
What defines a dissertation?
Ways to speed up user implemented RK4
when is out of tune ok?
Bash method for viewing beginning and end of file
Can somebody explain Brexit in a few child-proof sentences?
AWS iOT login issue using IAM user credentials iOS
How to login to AWS Console with an IAM user account?AWS IOT - Credential should be scoped to correct serviceValidate IAM User CredentialsAWS IoT login from android MQTT client using IAM is not workingAWS IoT Button Won't Connect to AWS IoTCertificate and Private Key from server not in bundle for AWS IOT connection in swiftConnecting Issue AWS IoT Websocket with Cognito Auth UsersAWS IoT+Android Reconnecting IssueAWS IoT certificate fileHow can I connect to Spring WebSocket server from IOS client?
I am trying to login into the AWS iOT using the IAM user credentials.
But I am getting the error continuously "connection error", in the console it is showing as "CP Conn 0x2819e8a80 SSLHandshake failed (-9807)". I checked with different wifi connections but still, I am getting the same errors.
Here I am sharing my code to get the more clarity,
let credentialsProvider = AWSStaticCredentialsProvider(accessKey: myAccessKey, secretKey: mySecretKey)
let configuration = AWSServiceConfiguration(region: AWSRegionType.USEast1, credentialsProvider: credentialsProvider)
AWSIoTDataManager.register(with: configuration!, forKey: "iOTManager")
iotDataManager = AWSIoTDataManager(forKey: "iOTManager")
#if DEMONSTRATE_LAST_WILL_AND_TESTAMENT
let lwtTopic: NSString = Constants.lwtTopic
let lwtMessage: NSString = Constants.lwtMessage
self.iotDataManager.mqttConfiguration.lastWillAndTestament.topic = lwtTopic as String
self.iotDataManager.mqttConfiguration.lastWillAndTestament.message = lwtMessage as String
self.iotDataManager.mqttConfiguration.lastWillAndTestament.qos = .AtMostOnce
#endif
self.iotDataManager.connectUsingWebSocket( withClientId: UUID().uuidString, cleanSession:true, statusCallback: mqttEventCallback)
}
func mqttEventCallback( _ status: AWSIoTMQTTStatus )
DispatchQueue.main.async
print(status.rawValue)
switch(status)
case .connecting:
print("Connecting..!")
case .connected:
print("Connected..!")
case .disconnected:
print("Disconnected..!")
case .connectionRefused:
print("connectionRefused..!")
case .connectionError:
print("connectionError..!")
case .protocolError:
print("protocolError..!")
default:
print("unknowState" + String(status.rawValue))
When I am running the same code in iPad mini, I am able to login into AWS iOT successfully but it is not in iPhone(7, 7Plus, 8Plus). I was wondering, why it is happening. I am not getting what wrong in the code. Please help me to fix this issue.
ios swift xcode amazon-web-services aws-iot
ios swift xcode amazon-web-services aws-iot
I am trying to login into the AWS iOT using the IAM user credentials.
But I am getting the error continuously "connection error", in the console it is showing as "CP Conn 0x2819e8a80 SSLHandshake failed (-9807)". I checked with different wifi connections but still, I am getting the same errors.
Here I am sharing my code to get the more clarity,
let credentialsProvider = AWSStaticCredentialsProvider(accessKey: myAccessKey, secretKey: mySecretKey)
let configuration = AWSServiceConfiguration(region: AWSRegionType.USEast1, credentialsProvider: credentialsProvider)
AWSIoTDataManager.register(with: configuration!, forKey: "iOTManager")
iotDataManager = AWSIoTDataManager(forKey: "iOTManager")
#if DEMONSTRATE_LAST_WILL_AND_TESTAMENT
let lwtTopic: NSString = Constants.lwtTopic
let lwtMessage: NSString = Constants.lwtMessage
self.iotDataManager.mqttConfiguration.lastWillAndTestament.topic = lwtTopic as String
self.iotDataManager.mqttConfiguration.lastWillAndTestament.message = lwtMessage as String
self.iotDataManager.mqttConfiguration.lastWillAndTestament.qos = .AtMostOnce
#endif
self.iotDataManager.connectUsingWebSocket( withClientId: UUID().uuidString, cleanSession:true, statusCallback: mqttEventCallback)
func mqttEventCallback( _ status: AWSIoTMQTTStatus ) {
DispatchQueue.main.async
print(status.rawValue)
switch(status)
case .connecting:
print("Connecting..!")
case .connected:
print("Connected..!")
case .disconnected:
print("Disconnected..!")
case .connectionRefused:
print("connectionRefused..!")
case .connectionError:
print("connectionError..!")
case .protocolError:
print("protocolError..!")
default:
print("unknowState" + String(status.rawValue))
When I am running the same code in iPad mini, I am able to login into AWS iOT successfully but it is not in iPhone(7, 7Plus, 8Plus). I was wondering, why it is happening. I am not getting what wrong in the code. Please help me to fix this issue.
ios swift xcode amazon-web-services aws-iot
ios swift xcode amazon-web-services aws-iot
edited Mar 7 at 12:47
yuvaraju
asked Mar 7 at 11:42
yuvarajuyuvaraju
298
298
add a comment |
Did you get solution of it ?
– NavinBagul
yesterday
Not Yet, Please help me
– yuvaraju
21 hours ago
1
This is an issue since iOS 12.1.1 because of the deprecation of trust of Symantec CAs
– NavinBagul
17 hours ago
Did you get solution of it ?
– NavinBagul
yesterday
Did you get solution of it ?
– NavinBagul
yesterday
Not Yet, Please help me
– yuvaraju
21 hours ago
Not Yet, Please help me
– yuvaraju
21 hours ago
1
1
This is an issue since iOS 12.1.1 because of the deprecation of trust of Symantec CAs
– NavinBagul
17 hours ago
This is an issue since iOS 12.1.1 because of the deprecation of trust of Symantec CAs
– NavinBagul
17 hours ago
add a comment |
1 Answer
1
active
oldest
votes
After some research I found this 2 things
1) SSL handshake fail when using new endpoint with '-ats' or '.ats' here
2) Its gives issue in higher version (IOS 12.1.1) so check your device version.
Please refer this Doc also
Thank you NavinBagul, My issue has resolved now.
– yuvaraju
14 hours ago
Thats great, is it same issue or you tried something else ... ?
– NavinBagul
14 hours ago
add a comment |
Your Answer
StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55042958%2faws-iot-login-issue-using-iam-user-credentials-ios%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
After some research I found this 2 things
1) SSL handshake fail when using new endpoint with '-ats' or '.ats' here
2) Its gives issue in higher version (IOS 12.1.1) so check your device version.
Please refer this Doc also
Thank you NavinBagul, My issue has resolved now.
– yuvaraju
14 hours ago
Thats great, is it same issue or you tried something else ... ?
– NavinBagul
14 hours ago
add a comment |
After some research I found this 2 things
1) SSL handshake fail when using new endpoint with '-ats' or '.ats' here
2) Its gives issue in higher version (IOS 12.1.1) so check your device version.
Please refer this Doc also
Thank you NavinBagul, My issue has resolved now.
– yuvaraju
14 hours ago
Thats great, is it same issue or you tried something else ... ?
– NavinBagul
14 hours ago
add a comment |
After some research I found this 2 things
1) SSL handshake fail when using new endpoint with '-ats' or '.ats' here
2) Its gives issue in higher version (IOS 12.1.1) so check your device version.
Please refer this Doc also
After some research I found this 2 things
1) SSL handshake fail when using new endpoint with '-ats' or '.ats' here
2) Its gives issue in higher version (IOS 12.1.1) so check your device version.
Please refer this Doc also
answered 17 hours ago
NavinBagulNavinBagul
1629
1629
Thank you NavinBagul, My issue has resolved now.
– yuvaraju
14 hours ago
Thats great, is it same issue or you tried something else ... ?
– NavinBagul
14 hours ago
add a comment |
Thank you NavinBagul, My issue has resolved now.
– yuvaraju
14 hours ago
Thats great, is it same issue or you tried something else ... ?
– NavinBagul
14 hours ago
Thank you NavinBagul, My issue has resolved now.
– yuvaraju
14 hours ago
Thank you NavinBagul, My issue has resolved now.
– yuvaraju
14 hours ago
Thats great, is it same issue or you tried something else ... ?
– NavinBagul
14 hours ago
Thats great, is it same issue or you tried something else ... ?
– NavinBagul
14 hours ago
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55042958%2faws-iot-login-issue-using-iam-user-credentials-ios%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Did you get solution of it ?
– NavinBagul
yesterday
Not Yet, Please help me
– yuvaraju
21 hours ago
1
This is an issue since iOS 12.1.1 because of the deprecation of trust of Symantec CAs
– NavinBagul
17 hours ago