A public key is typically shared in the form of a certificate, which is a digital document that contains the public key and some information about its owner. The .cer file format is commonly used for X.509 certificates, which are a widely accepted standard for digital certificates.