pub(crate) fn validate_certificate_type( self_signed: bool, certificate_type: Option<u8>, ) -> Result<()>
Validate the certificate type.