Public key install - curl: (60) SSL certificate problem: self signed certificate

Installing graylog on SLES 12 SP5

kye-mgmt02:~ # cat /etc/os-release
NAME=“SLES”
VERSION=“12-SP5”
VERSION_ID=“12.5”
PRETTY_NAME=“SUSE Linux Enterprise Server 12 SP5”
ID=“sles”
ANSI_COLOR=“0;32”
CPE_NAME=“cpe:/o:suse:sles:12:sp5”

Follow instructions explicitly

  • Import the MongoDB public key

kye-mgmt02:~ # rpm --import https://www.mongodb.org/static/pgp/server-4.2.asc
curl: (60) SSL certificate problem: self signed certificate

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.
error: https://www.mongodb.org/static/pgp/server-4.2.asc: import read failed(2).

In fact all of the other version keys fail with the same error
How to install the Mongodb public key?
The system should ask to trust, but it does not. Any suggestions?>


I got mongodb installed

The cli would not let me to trust the self-signed cert
BUT yast did and then I could continue to install mongodb

interesting, funny (not very) frustrating and finally great joy.

have a good day.