Fixing usage of CA certs