Tiryoh/ros2_setup_scripts_ubuntu

Certificate verification error

Closed this issue · 2 comments

when doing:

sudo curl -sSL https://raw.githubusercontent.com/ros/rosdistro/master/ros.key -o /usr/share/keyrings/ros-archive-keyring.gpg

we get an error:
curl: (60) SSL: no alternative certificate subject name matches target host name 'raw.githubusercontent.com'
More details here: https://curl.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.

using

sudo curl --insecure -sSL https://raw.githubusercontent.com/ros/rosdistro/master/ros.key -o /usr/share/keyrings/ros-archive-keyring.gpg

is a workaround but insecure.

I will subit a PR with this workaround for your review

Tiryoh commented

I'm closing this issue because the underlying problem has been resolved.