PublicKey
Stay organized with collections
Save and categorize content based on your preferences.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License
, and code samples are licensed under the Apache 2.0 License
. For details, see the Google Developers Site Policies
. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-05-30 UTC.
[[["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-05-30 UTC."],[[["\u003cp\u003eA PublicKey resource describes a public key, represented in JSON format with \u003ccode\u003ekey\u003c/code\u003e and \u003ccode\u003eformat\u003c/code\u003e fields.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003ekey\u003c/code\u003e field is a required base64-encoded string representing the public key, where its padding and encoding must match the specified \u003ccode\u003eKeyFormat\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eformat\u003c/code\u003e field is also required, indicating the type of public key, and currently, only \u003ccode\u003ePEM\u003c/code\u003e format is supported.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003ePEM\u003c/code\u003e format, defined by RFC 7468, can be a PEM-encoded PKCS#1, RFC 5280 SubjectPublicKeyInfo, or an X.509 certificate signing request (CSR).\u003c/p\u003e\n"],["\u003cp\u003eThe service will always generate keys as an RFC 5280 SubjectPublicKeyInfo structure, containing an algorithm identifier and a key.\u003c/p\u003e\n"]]],[],null,["# PublicKey\n\n- [JSON representation](#SCHEMA_REPRESENTATION)\n- [KeyFormat](#KeyFormat)\n\nA [PublicKey](/certificate-authority-service/docs/reference/rest/v1/PublicKey) describes a public key.\n\nKeyFormat\n---------\n\nTypes of public keys formats that are supported. Currently, only `PEM` format is supported."]]