Can't add NVIDIA repository

I just switched to Opensuse Leap 42.3 GNOME two days ago and I loved it. But there is a serious problem which prevents me to think Opensuse as my permanent main distro. For two days I’m trying to add NVIDIA repository from Community Repositories. But I got this error which prevents me to add the repository.

Adding Repository nVidia Graphics Drivers failed.
Unknown error reading from 'https://download.nvidia.com/opensuse/leap/42.3/'
Date:
- ABORT request:Aborting requested by user
- for 'https://download.nvidia.com/opensuse/leap/42.3/repodata/repomd.xml' download(curl) error
Error report: SSL certificate problem: self signed certificate in certificate chain

I’m guessing you’re the same guy who was asking about this in IRC earlier and we suggested it might be a firewall/router that’s injecting its own SSL certificate into the chain and doing packet inspection (this is how antivirus scanners work on HTTPS connections).

Assuming you have a modern GPU (nVidia 400 or better), you can do this via the command line too, as root or with sudo run;

zypper rm drm-kmp-default
zypper ar -f http://download.nvidia.com/opensuse/leap/42.3/ nVidia_Drivers
zypper ref
zypper in x11-video-nvidiaG04 nvidia-glG04 nvidia-gfxG04-kmp-default

Reboot.

Note: using http here is not a problem - all packages are signed to prevent tampering.

( For those who read this and wonder, removing the drm-kmp-default package prevents a certain issue with nVidia drivers not working due to weak-updates fail. BugID 1053934 )

My NVIDIA card is old and I just changed the words ‘‘G04, gl04, gfx04’’ to ‘‘G03, gl03, gfx03’’. And it works like a charm. Thank you very much, I can use Opensuse as my main distro now!