There are three main types of digital certificates: extended validated, organization validated, and domain validated certificates. Certificates can be encoded in .der, .pem, .key, .cert, .cer, and .crt formats. The .pem format encodes the .der certificate in base64 and can contain additional data like private keys. Openssl commands can be used to view the contents and properties of a certificate.