GithubHelp home page GithubHelp logo

Comments (7)

unicornss avatar unicornss commented on June 26, 2024

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.

JulianKling avatar JulianKling commented on June 26, 2024

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.

unicornss avatar unicornss commented on June 26, 2024

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 install

After 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.

bdhandap avatar bdhandap commented on June 26, 2024

@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.

JulianKling avatar JulianKling commented on June 26, 2024

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.

bdhandap avatar bdhandap commented on June 26, 2024

@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.

HelloEgg avatar HelloEgg commented on June 26, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.