Comments (7)
Please refer the following readme for the certificates for downloading the open source dependencies from https.
https://github.com/awslabs/amazon-kinesis-video-streams-producer-sdk-cpp
Certificate store integration
Kinesis Video Streams Produicer SDK for C++ needs to establish trust with the backend service through TLS. This is done through validating the CAs in the public certificate store. On Linux-based models, this store is located in /etc/ssl/ directory by default.
Please download the PEM file from https://www.amazontrust.com/repository/SFSRootCAG2.pem
to /etc/ssl/cert.pem. Append to the end of the file if it exists.
from amazon-kinesis-video-streams-producer-sdk-cpp.
Still no success:
flex not found. Installing
...
curl: (60) SSL certificate problem: unable to get local issuer certificate
More details here: https://curl.haxx.se/docs/sslcerts.html
curl failed to verify the legitimacy of the server and therefore could not
establish a secure connection to it. To learn more about this situation and
how to fix it, please visit the web page mentioned above.
Since I want to eliminate the chance I made a mistake following the provided tutorial (First google link: https://aws.amazon.com/de/kinesis/video-streams/raspberry-pi-tutorial/), did anyone get it to run following exactly these steps? Seems to me like this guide is outdated.
from amazon-kinesis-video-streams-producer-sdk-cpp.
As @bdhandap has posted in #40 , it could be that the curl was not built with the cacert.
Can you please reinstall curl by following below steps? This should fix the issue.
rm <producer_sdk_path>/kinesis-video-native-build/downloads/local/lib/libcurl*
rm <producer_sdk_path>/kinesis-video-native-build/downloads/local/bin/curl*
cd <producer_sdk_path>/kinesis-video-native-build/downloads/curl-7.57.0
export DOWNLOADS=<producer_sdk_path>/kinesis-video-native-build/downloads
make clean
./configure --prefix=$DOWNLOADS/local/ --enable-dynamic --disable-rtsp --disable-ldap --without-zlib --with-ssl=$DOWNLOADS/local/ --with-ca-bundle=/etc/ssl/cert.pem
make
make installAfter reinstalling you can verify it by running
./curl-config --ca
. By default the curl library should pick up the default path /etc/ssl/cert.pem but looks like its not doing that it in all cases. I'll add this configure option in install-script so that it doesn't happen again.
from amazon-kinesis-video-streams-producer-sdk-cpp.
@JulianKling Curl installation tries to configure the path to /etc/ssl/cert.pem
and curl: (77) error setting certificate verify locations: CAfile: /etc/ssl/cert.pem
error means that the certificate location passed during the installation does not exist. If you did copy the certificate to the mentioned path and tried again, the chances are that configure step did not pick the path as expected. You can verify this by running ./curl-config --ca
inside the <producer_sdk_path>/kinesis-video-native-build/downloads/local/bin/
folder. Can you please reinstall like mentioned in the Troubleshooting section ?
from amazon-kinesis-video-streams-producer-sdk-cpp.
Thank you @unicornss and @bdhandap, I think the combination solved it (currently still running). While most likely not recommended, another way would be to add the -k flag to the curl calls inside the installation script (finished successfully).
I think further (potential) customers would appreciate it if you edited to linked guide to include the given help, since these steps seem to be mandatory. (Also, just for the sake of completeness on how i got it to run, i had to enable the v4l2 drivers on the raspberry pi with sudo rpi-update # to make sure the v4L2 drive is available and sudo modprobe bcm2835-v4l2 # to load it and create /dev/video0)
from amazon-kinesis-video-streams-producer-sdk-cpp.
@JulianKling I'm glad it worked. And thanks for your feedback. We are working on updating the raspberry pi tutorial guide and will be releasing it soon.
from amazon-kinesis-video-streams-producer-sdk-cpp.
@JulianKling
How did you add -k flag to curl calls in installation script?
Please help..
from amazon-kinesis-video-streams-producer-sdk-cpp.
Related Issues (20)
- [BUG] Error received from element udpsrc0: Internal data stream error HOT 5
- [QUESTION] what inexpensive Kinesis Video Stream approved IP Camera can I use to prototype HOT 1
- [QUESTION] calculate_skew: delta - skew: 0:00:01.010868203 too big, reset skew Error HOT 1
- [QUESTION] All my frames are getting dropped I think and data upload rate is very low (rtsp H265 at 1020*1080) HOT 3
- [QUESTION] Gstreamer event/message for streaming/connection releated issues in KVS SDK HOT 2
- [QUESTION] kvs_gstreamer_sample hanging after "pad link successful" HOT 1
- compilation error on Ubuntu HOT 1
- [QUESTION] Struggling with KVS streams on iOS HOT 6
- Not able to access media on Media Playback on Kinesis Video Streamer
- [QUESTION] Raspberry Pi からの映像送信でエラーが発生
- I am getting this error while running: cmake -DBUILD_GSTREAMER_PLUGIN=TRUE .. HOT 4
- [BUG] Streaming h.265 video from RTSP HOT 5
- [BUG] HOT 1
- [BUG] Gst plugin kvssink is built as static library
- [FEATURE] Make log level in kvssink configurable. HOT 1
- [BUG] `kvssink` occasionally generates non-monotonic PTS HOT 1
- How to resolve a "MAX_FRAGMENT_DURATION_REACHED" error when trying to stream RTSP camera feed into KVS HOT 3
- Failed to allocate memory HOT 3
- [BUG] HOT 1
- Stream video to your Kinesis video stream and view the live stream HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from amazon-kinesis-video-streams-producer-sdk-cpp.