Hello everyone,
I would like to update my Suse Linux Enterprise Server for SAP 15 SP1 to a newer SP (in this case SP5).
It is a Pay-As-You-Go license so I do not have a registration code.
Whenever I try to use zypper and do operations on the repos, I get one of the following errors:
Problem retrieving files from 'SLE-Module-Basesystem15-SP1-Pool'.
Download (curl) error for 'https://smt-gce.susecloud.net/repo/SUSE/Products/SLE-Module-Basesystem/15-SP1/x86_64/product/repodata/repomd.xml?credentials=Basesystem_Module_x86_64':
Error code: Curl error 60
Error message: SSL certificate problem: unable to get local issuer certificate
A quick research guided me to do
sudo update-ca-certificates -v
which did not raise any errors. But the aforementioned error persists. So I tried many other things, like trying to re-register without a registration code, but nothing works.
So my question is, is it actually possible to upgrade a PAYG VM instance? If so, is there any exhaustive guide? Do I manually need to add new repos pointing to SP5?
Solved! Go to Solution.
To whomever it may concern, I found the solution:
# get current certificate from server
openssl s_client -showcerts -servername smt-gce.susecloud.net -connect smt-gce.susecloud.net:443 </dev/null 2>/dev/null | openssl x509 -outform PEM >~/SUSE.pem
# make backup of old certificate
cp /var/lib/ca-certificates/pem/SUSE.pem /var/lib/ca-certificates/pem/SUSE.pem.bak
# overwrite old certificate with new
cp ~/SUSE.pem /var/lib/ca-certificates/pem/SUSE.pem
# Create symbolic links to files named by the hash values
c_rehash
After entering the commands, I could use zypper again.