docs: def get_public_key_pem(cert_obj):
      """Extract public key from certificate as PEM encoded PKCS#1.
  
      Args:
        cert_obj: cryptography.Certificate
  
      Returns:
        bytes: PEM encoded PKCS#1 public key.
  
      """
      return cert_obj.public_key().public_bytes(
          encoding=cryptography.hazmat.primitives.serialization.Encoding.PEM,
          format=cryptography.hazmat.primitives.serialization.PublicFormat.PKCS1,
      )