Alexa works with ngrok but not with Let'sEncrypt SSL

My alexa skill code runs absolutely fine on ngrok but not working on live server.

I am having following error:
The SSL handshake to endpoint Resource [https://alexa.testflight.biz/api/chat], Type [HTTP], Region [DEFAULT] failed. Please check that your java keystore is correctly configured

My domain is:
https://alexa.testflight.biz/api/chat

My hosting provider is:
digital ocean

I am using RunCloud to manage my server and sites.

Please feel free to have a look at source code, there is only one js file as per example of alexa itself:
Source code of my project:

Looking forward to have your help, I appreciate your time and suggestions!

Thanks!

1 Like

I found this previous complaint about Let's Encrypt and Alexa Skills: https://forums.developer.amazon.com/questions/224095/error-please-check-that-your-java-keystore-is-corr.html

According to one of the responses, the problem is that there is no cipher overlap between your webserver and the Alexa Skills server, and that you can fix this by adding the ECDHE-RSA-AES128-SHA256 cipher to your nginx configuration (ssl_ciphers directive)

You can test this with the following (it currently fails):

openssl s_client -connect  67.205.142.126:443 -tls1_2 -cipher ECDHE-RSA-AES128-SHA256
4 Likes

Your openssl command helped the most! I appreciate your efforts.
Thanks!

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.