Fix incorrect error type

I think that it should be `errCaUnknown` instead of `errBadCertificate`.