<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /></head><body style='font-size: 10pt; font-family: Verdana,Geneva,sans-serif'>
<p>Good afternoon,</p>
<p><br /></p>
<p>I'm running a CA, for generating the certificates for the backup clients of my network and for the backup servers too. The certificates are used for encrypting the backups stored in the servers and too, for comunicating over TLS between severs and clients.</p>
<p><br /></p>
<p>This CA has some years now and the certificates I generate for new clients, are not working (directly) in new machines. The reason for that is that new operating systems, are requiring stronger signing algorithms. When you try to start the service using that certificates (bacula file daemon) in a fresh new Debian for instance, systemd throws the following error : </p>
<p><br /></p>
<p><strong><em>openssl.c:68 Error loading certificate file: ERR=error:140AB18E:SSL routines:SSL_CTX_use_certificate:ca md too weak</em></strong></p>
<p><br /></p>
<p>I know you can fix that with the following change in openssl.conf : </p>
<p><br /></p>
<p><em><strong>####CipherString = <a href="mailto:DEFAULT@SECLEVEL=2">DEFAULT@SECLEVEL=2</a></strong></em></p>
<p><em><strong>CipherString = <a href="mailto:DEFAULT@SECLEVEL=1">DEFAULT@SECLEVEL=1</a></strong></em></p>
<p><br /></p>
<p>But this last way, does not convince me... so I have started debugging what exactly was causing the the problem. I saw, that sha1 is not allowed as a signing valid algorithm for SECLEVEL 2. So, I tried moving the CA to a more recent testing machine (with a newer OpenSSL 1.1.1l-freebsd), and I modified too in the openssl.conf of the CA (The openssl.conf existing in the CA dir for generating certs and so...) :</p>
<p>I have attached the old version. The new using version in the testing machine, is the old one plus the below changes :</p>
<p>- Added the line : "signer_digest  = sha256"</p>
<p>- Modified the line : "digests        = md5, sha1" by "digests         = sha1, sha256, sha384, sha512"</p>
<p>- Added the line : "ess_cert_id_alg        = sha1"</p>
<p><br /></p>
<p>Now... I have generated a new certificate by following the normal procedure... generate the key and csr... later sing new cert... etc etc.....</p>
<p><br /></p>
<p>This new generated certificate (signed with sha256WithRSAEncryption algorithm), has worked with a newer version of the Bacula client and in a almost new Debian system. So it seems, just by generating new certificates, using them in that new machines, with a newer os and keeping the old ca certificate, at least the service has started. We have too, another master public key for encrypting content (which is an oldly generated certificate signed with sha1WithRSAEncryption) that we keep in case a customer looses it's keys for avoiding a possible disaster.</p>
<p><br /></p>
<p>I was wondering if some sort of problem could exist, by using those old two certificates (the master public key and the old ca certifcate) with the new generated certificate.</p>
<p><br /></p>
<p>Now, that I have that CA, for whose purpose seems to be working, I have started thinking... some more... I have noticed that the CA certificate will expire in 2024. I assume that what I would have to do before that CA cert expires could be :</p>
<p><br /></p>
<p>- Generate a second ca cert for the CA.</p>
<p>- Change the ca certificate to be used (for signing and issuing new certs) in openssl.conf :</p>
<p><strong><em>certificate    = $dir/cacert-new.pem     # The CA certificate</em></strong></p>
<p>- Sign again all the certificates in the CA...</p>
<p>- Change, all certificates in the CA (except the own ca cert which is already changed).</p>
<p>- Finally replace in each servers and clients certs.</p>
<p><br /></p>
<p>Is this a correct procedure for upgrading a CA?. I assume it can be correct. Isn't it?. I think this procedure shouldn't break nothing related to serials of certificates and so in the own ca. Am I wrong?.</p>
<p><br /></p>
<p>Best regards,</p>
<p><br /></p>
<p><br /></p>
<p><br /></p>
<p><br /></p>
<p><br /></p>
<p><br /></p>
<p><br /></p>
<p><br /></p>
<p><br /></p>
<p>+are causing to set a special config in /etc/ssl/openssl.conf saying : "</p>

</body></html>