Fix undefined behaviour when printing the X509 and CRL version