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?













0















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.










share

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.










share

func mqttEventCallback( _ status: AWSIoTMQTTStatus )
improve this question
















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






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Mar 7 at 12:47







yuvaraju

















asked Mar 7 at 11:42









yuvarajuyuvaraju

298




298












  • 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











  • 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












1 Answer
1






active

oldest

votes


















2














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






share|improve this answer























  • 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










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
);



);













draft saved

draft discarded


















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









2














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






share|improve this answer























  • 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















2














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






share|improve this answer























  • 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













2












2








2







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






share|improve this answer













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







share|improve this answer












share|improve this answer



share|improve this answer










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

















  • 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



















draft saved

draft discarded
















































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.




draft saved


draft discarded














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





















































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







Popular posts from this blog

Save data to MySQL database using ExtJS and PHP [closed]2019 Community Moderator ElectionHow can I prevent SQL injection in PHP?Which MySQL data type to use for storing boolean valuesPHP: Delete an element from an arrayHow do I connect to a MySQL Database in Python?Should I use the datetime or timestamp data type in MySQL?How to get a list of MySQL user accountsHow Do You Parse and Process HTML/XML in PHP?Reference — What does this symbol mean in PHP?How does PHP 'foreach' actually work?Why shouldn't I use mysql_* functions in PHP?

Compiling GNU Global with universal-ctags support Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30pm US/Eastern) Data science time! April 2019 and salary with experience The Ask Question Wizard is Live!Tags for Emacs: Relationship between etags, ebrowse, cscope, GNU Global and exuberant ctagsVim and Ctags tips and trickscscope or ctags why choose one over the other?scons and ctagsctags cannot open option file “.ctags”Adding tag scopes in universal-ctagsShould I use Universal-ctags?Universal ctags on WindowsHow do I install GNU Global with universal ctags support using Homebrew?Universal ctags with emacsHow to highlight ctags generated by Universal Ctags in Vim?

Add ONERROR event to image from jsp tldHow to add an image to a JPanel?Saving image from PHP URLHTML img scalingCheck if an image is loaded (no errors) with jQueryHow to force an <img> to take up width, even if the image is not loadedHow do I populate hidden form field with a value set in Spring ControllerStyling Raw elements Generated from JSP tagds with Jquery MobileLimit resizing of images with explicitly set width and height attributeserror TLD use in a jsp fileJsp tld files cannot be resolved