gpo: Decode base64 root cert before importing
commit90cf23e1ccab6cef426f4027ffd93496ab7666be
authorGabriel Nagy <gabriel.nagy@canonical.com>
Thu, 18 Jan 2024 18:23:24 +0000 (18 20:23 +0200)
committerJule Anger <janger@samba.org>
Mon, 5 Feb 2024 11:32:09 +0000 (5 11:32 +0000)
treef52fc80c1fc847999fdd407db86037046a1101e9
parenta50016bc7aec83b21cb9ac15af29a35575c8c365
gpo: Decode base64 root cert before importing

The reasoning behind this is described in the previous commit message,
but essentially this should either be wrapped in certificate blocks and
imported as PEM, or converted back to binary and imported as DER.

I've opted for the latter since it's how it used to work before it
regressed in 157335ee93e.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=15557

Signed-off-by: Gabriel Nagy <gabriel.nagy@canonical.com>
Reviewed-by: David Mulder <dmulder@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
(cherry picked from commit 3f3ddfa699a33c2c8a59f7fb9ee044bb2a6e0e06)
python/samba/gp/gp_cert_auto_enroll_ext.py
selftest/knownfail.d/gpo [deleted file]