question

sinricpro avatar image
sinricpro asked ·

CameraStreamController + ESP32 WROVER RTSP issue

Hello,

I am trying to use a "TTGO T-Camera ESP32 WROVER" module to stream the camera to my Eco Show on my local WiFI. I have the RTSP stream working now and my problem is "TCP socket encryption on port 443 using TLS 1.2. " requirement

https://developer.amazon.com/en-US/docs/alexa/device-apis/alexa-camerastreamcontroller.html#local-and-remote-execution-recommendations

Can I use a self-signed SSL certificate when using a local URI? If now how to sign a local URL ?

URLs like: "rtsp://192.168.1.115/mjpeg/1" does not seem to work.


{
    "event":{
        "header":{
            "namespace":"Alexa.CameraStreamController",
            "name":"Response",
            "messageId":"xxx",
            "correlationToken":"xx",
            "payloadVersion":"3"
        },
        "endpoint":{
            "endpointId":"xxx"
        },
        "payload":{
            "cameraStreams":[
                {
                    "uri":"rtsp://192.168.1.115/mjpeg/1",
                    "expirationTime":"2020-05-27T10:16:52+07:00",
                    "idleTimeoutSeconds":30,
                    "protocol":"RTSP",
                    "resolution":{
                        "width":1920,
                        "height":1080
                    },
                    "authorizationType":"NONE",
                    "videoCodec":"MJPEG",
                    "audioCodec":"NONE"
                }
            ],
            "imageUri":"https://sinric.pro/img/logo.png"
        }
    },
    "context":{
        "properties":[
            {
                "namespace":"Alexa.EndpointHealth",
                "name":"connectivity",
                "value":{
                    "value":"OK"
                },
                "timeOfSample":"2020-05-26T15:16:52.549Z",
                "uncertaintyInMilliseconds":0
            }
        ]
    }
}


smart homesmart home groups
10 |2000 characters needed characters left characters exceeded

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

1 Answer

Jason@Amazon avatar image
Jason@Amazon answered ·

It isn't possible to use a self-signed certification as it wouldn't be in the trust store of the device. An option could be to use AWS IoT to leverage a certificate they generate and push to the device: https://docs.aws.amazon.com/iot/latest/developerguide/create-device-certificate.html

If you can do that, then you can offer that certificate to the client connecting, and it should except that as it would be from an approved CA.

Fore more info I'd recommend reaching out to the AWS support team for details as this is the Alexa Developer forum - the floor is also open to the community as well!

10 |2000 characters needed characters left characters exceeded

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