Bug 936709

Summary: update-ca-certificates does not work in 13.2
Product: [openSUSE] openSUSE Distribution Reporter: Uwe Geuder <novell-ugeuder>
Component: BasesystemAssignee: E-mail List <bnc-team-screening>
Status: RESOLVED INVALID QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None CC: novell-ugeuder
Version: 13.2   
Target Milestone: ---   
Hardware: x86-64   
OS: openSUSE 13.2   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: example certificate, which reproduces the failure

Description Uwe Geuder 2015-07-01 07:49:12 UTC
Created attachment 639776 [details]
example certificate, which reproduces the failure

I am aware that this report is a duplicate of https://bugzilla.opensuse.org/show_bug.cgi?id=918944 . Howewever, that report was closed as "works for me" and I can only state it does not work for me. Also https://bugzilla.opensuse.org/show_bug.cgi?id=911202 has a (misplaced) comment where a user mentions that it does not work from him.

Steps to reproduce:

1. Copy CA certificate into /etc/pki/trust/anchors

(tested certificate attached, I have tried various filenames, but it does not make a difference. I have also tested the undocumented location 
/etc/pki/trust, that makes no difference either)

2. run update-ca-certificates (as root)


Expected result:

the certificate is included into /var/lib/ /var/lib/ca-certificates/ca-bundle.pem

(you can test using grep 94Uc= /var/lib/ca-certificates/ca-bundle.pem
or md5sum /.snapshots/*/snapshot/var/lib/ca-certificates/ca-bundle.pem /var/lib/ca-certificates/ca-bundle.pem if you run snapper)

Also the contents of /var/lib/ca-certificates/pem/* should be updated
so that grep 94Uc= /var/lib/ca-certificates/pem/*
produces a match.

Observed result:

/var/lib/ca-certificates/ca-bundle.pem is unchanged in 13.2

grep 94Uc= /var/lib/ca-certificates/pem/* produces no match in 13.2

(both tests are successful 13.1)


Further debugging: strace -ff -o ucc.strace update-ca-certificates shows that the new certificate gets memory mapped several time without error. Both in the documented location /etc/pki/trust/anchors and in the undocumented location /etc/pki/trust. Could not see from strace what goes wrong that the certificate is not included.
Comment 1 Ludwig Nussel 2015-07-01 08:30:56 UTC
please attach the certificate
Comment 2 Ludwig Nussel 2015-07-01 08:31:06 UTC
ups, it's there :)
Comment 3 Ludwig Nussel 2015-07-01 08:34:50 UTC
the last line lacks a dash at the end, after adding that it works
Comment 4 Uwe Geuder 2015-07-01 08:46:59 UTC
Thanks for the quick reply! Yes it works, stupid user error aka copy paste error..