alexa / alexa-smart-screen-sdk

⛔️ DEPRECATED Active at https://github.com/alexa/avs-device-sdk
Apache License 2.0
76 stars 26 forks source link

Secure Web socket connection to smart screen index page is failing. #109

Closed sudharsantel closed 3 years ago

sudharsantel commented 3 years ago

Briefly summarize your issue:

After starting the sampleApp from smart screen sdk with secure ssl certificates configured, the web socket connection to alexa smart screen gui page fails.

What is the expected behavior?

Web socket connection should succeed from smartscreen index page when configured with secure certificates.

What behavior are you observing?

Websocket connection fails when connecting from smart screen gui page with secure ssl certificates.

Provide the steps to reproduce the issue, if applicable:

Start the sample app from smart screen and connect to smart screen sdk gui page.

Tell us about your environment:

What version of the AVS Device SDK are you using?

  1.23.0

Tell us what hardware you're using:

Tell us about your OS (Type & version):

Have you tried the same use case with AVS Device SDK SampleApp?

sudharsantel commented 3 years ago

Adding ssl certificates used for testing. certs.zip

vkarpuram commented 3 years ago

Hello @sudharsantel,

Thank you for reaching out. I suggest using absolute paths to the certificates in the config files. Could you please share the config files used here?

sudharsantel commented 3 years ago

I have hard coded the following values in sampleApp.

sslCaFile = "/usr/share/WPEFramework/AVS/ca.cert"; sslCertificateFile = "/usr/share/WPEFramework/AVS/server.chain"; sslPrivateKeyFile = "/usr/share/WPEFramework/AVS/server.key";

Attached config files used. config.zip

nguymi91 commented 3 years ago

@sudharsantel

I took a look at your config, and I can see that there are a few missing properties which are related to the certificate. Please refer to the documentation here for the missing properties https://github.com/alexa/alexa-smart-screen-sdk/blob/master/modules/GUI/config/SmartScreenSDKConfig.md#config-parameters.

Can you please try assign the missing properties proper values?

rpalkar-amzn commented 3 years ago

Closing due to inactivity