Ask Your Question
0

The signature is OK, but the certificate could not be validated.

asked 2020-05-11 14:18:38 +0200

jringoot gravatar image

updated 2020-05-11 14:28:22 +0200

I am able to sign documents with bEID identity card certificate: and software https://eid.belgium.be/en/linux-eid-s...

But when viewing the signed document it displays:

"The signature is OK, but the certificate could not be validated."

I tried to resolve this by downloading the belgium rootcertificates from here https://eid.belgium.be/en/faq/validit...

http://certs.eid.belgium.be/belgiumrca.crt
http://certs.eid.belgium.be/belgiumrca2.crt
http://certs.eid.belgium.be/belgiumrca3.crt
http://certs.eid.belgium.be/belgiumrca4.crt

and installing them like this

sudo cp Downloads/belgiumrca*.crt /usr/share/ca-certificates/extra
sudo dpkg-reconfigure ca-certificates

And the ca-certificates package shows the new certificates, but even after reboot libreoffice seems unable to use them.

I tried to import them via seahorse, I can see the contents with seahorse but was not able to import the certificates.

edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted
0

answered 2021-03-23 16:28:48 +0200

jringoot gravatar image

updated 2021-03-23 20:46:34 +0200

Apparantly This has to do with how certificates are used by libreoffice: libreoffice uses the firefox CA store:

  1. First import a certificate in the firefox CA store Open Firefox preferences: "about:preferences" -> Privacy & Security -> Security -> Certificates -> View Certificates -> Import->

    Enable both for "websites" and "mail users" Edit CA certificate trust settings

  2. Then select the correct mozilla CA store in libre-office Tools -> options -> Security -Certificate Path -> certificate

image description

Here is more info on that

Here is an alternative method to use chromium or chrome instead of firefox

Another guide that also explains howto export the root CA from the eID card

edit flag offensive delete link more
Login/Signup to Answer

Question Tools

1 follower

Stats

Asked: 2020-05-11 14:18:38 +0200

Seen: 612 times

Last updated: Mar 23