Generated from protobuf enum KEY_FORMAT_UNSPECIFIED = 0;
PEM
Value: 1
The key is PEM-encoded as defined in RFC
7468. It can be any of the
following: a PEM-encoded PKCS#1/RFC 3447 RSAPublicKey
structure, an RFC 5280
SubjectPublicKeyInfo
or a PEM-encoded X.509 certificate signing request (CSR). If a
SubjectPublicKeyInfo
is specified, it can contain a A PEM-encoded PKCS#1/RFC 3447 RSAPublicKey
or a NIST P-256/secp256r1/prime256v1 or P-384 key. If a CSR is specified,
it will used solely for the purpose of extracting the public key. When
generated by the service, it will always be an RFC 5280
SubjectPublicKeyInfo
structure containing an algorithm identifier and a key.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Google Certificate Authority Service V1 Client - Class KeyFormat (2.1.1)\n\nVersion latestkeyboard_arrow_down\n\n- [2.1.1 (latest)](/php/docs/reference/cloud-security-private-ca/latest/V1.PublicKey.KeyFormat)\n- [2.1.0](/php/docs/reference/cloud-security-private-ca/2.1.0/V1.PublicKey.KeyFormat)\n- [2.0.3](/php/docs/reference/cloud-security-private-ca/2.0.3/V1.PublicKey.KeyFormat)\n- [1.7.3](/php/docs/reference/cloud-security-private-ca/1.7.3/V1.PublicKey.KeyFormat)\n- [1.5.0](/php/docs/reference/cloud-security-private-ca/1.5.0/V1.PublicKey.KeyFormat)\n- [1.4.2](/php/docs/reference/cloud-security-private-ca/1.4.2/V1.PublicKey.KeyFormat)\n- [1.3.1](/php/docs/reference/cloud-security-private-ca/1.3.1/V1.PublicKey.KeyFormat)\n- [1.2.2](/php/docs/reference/cloud-security-private-ca/1.2.2/V1.PublicKey.KeyFormat)\n- [1.1.0](/php/docs/reference/cloud-security-private-ca/1.1.0/V1.PublicKey.KeyFormat)\n- [1.0.3](/php/docs/reference/cloud-security-private-ca/1.0.3/V1.PublicKey.KeyFormat) \nReference documentation and code samples for the Google Certificate Authority Service V1 Client class KeyFormat.\n\nTypes of public keys formats that are supported. Currently, only `PEM`\nformat is supported.\n\nProtobuf type `google.cloud.security.privateca.v1.PublicKey.KeyFormat`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ Security \\\\ PrivateCA \\\\ V1 \\\\ PublicKey\n\nMethods\n-------\n\n### static::name\n\n### static::value\n\nConstants\n---------\n\n### KEY_FORMAT_UNSPECIFIED\n\n Value: 0\n\nDefault unspecified value.\n\nGenerated from protobuf enum `KEY_FORMAT_UNSPECIFIED = 0;`\n\n### PEM\n\n Value: 1\n\nThe key is PEM-encoded as defined in [RFC\n7468](https://tools.ietf.org/html/rfc7468). It can be any of the\nfollowing: a PEM-encoded PKCS#1/RFC 3447 RSAPublicKey\nstructure, an RFC 5280\n[SubjectPublicKeyInfo](https://tools.ietf.org/html/rfc5280#section-4.1)\nor a PEM-encoded X.509 certificate signing request (CSR). If a\n[SubjectPublicKeyInfo](https://tools.ietf.org/html/rfc5280#section-4.1)\nis specified, it can contain a A PEM-encoded PKCS#1/RFC 3447 RSAPublicKey\nor a NIST P-256/secp256r1/prime256v1 or P-384 key. If a CSR is specified,\nit will used solely for the purpose of extracting the public key. When\ngenerated by the service, it will always be an RFC 5280\n[SubjectPublicKeyInfo](https://tools.ietf.org/html/rfc5280#section-4.1)\nstructure containing an algorithm identifier and a key.\n\nGenerated from protobuf enum `PEM = 1;`"]]