question

matthew bell avatar image
matthew bell asked

Can I test using a public ip instead of domain?

Is it possible test using a public ip address instead of a domain? I am trying to get through a basic Hello World exercise and I am stumbling around the SSL portion. I get this error back from http://alexa.amazon.com/#cards: The SSL handshake to endpoint Resource [https://123.12.32.123/api/test], Type [HTTP] failed. Please check that your java keystore is correctly configured The IP address (redacted in this post) I am using is accessible to the internet. I can make a request via my phone running on the carrier network and get a response fine. Though the browser doesn't point out that the cert isn't verifiable. I generated a self signed cert and have pasted the contents of my certificate.pem file to amazon. The cnf file looks like this: [req] distinguished_name = req_distinguished_name x509_extensions = v3_req prompt = no [req_distinguished_name] C = US ST = MO L = Testsville O = Testing CN = My Test Skill [v3_req] keyUsage = keyEncipherment, dataEncipherment extendedKeyUsage = serverAuth subjectAltName = @subject_alternate_names [subject_alternate_names] DNS.1 = https://123.12.32.123
alexa skills kitdebugging
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

Galactoise avatar image
Galactoise answered
I would be really surprised if you could do that - the SSL requirements are incredibly strict. Many people here use AWS Lambda as a proxy, in which case you could definitely get things working. Here's the thread describing how to do that: https://forums.developer.amazon.com/forums/thread.jspa?threadID=5857
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.