[[["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,["# Cloud KMS V1 Client - Class Certificate (2.3.1)\n\nVersion latestkeyboard_arrow_down\n\n- [2.3.1 (latest)](/php/docs/reference/cloud-kms/latest/V1.Certificate)\n- [2.3.0](/php/docs/reference/cloud-kms/2.3.0/V1.Certificate)\n- [2.2.0](/php/docs/reference/cloud-kms/2.2.0/V1.Certificate)\n- [2.1.6](/php/docs/reference/cloud-kms/2.1.6/V1.Certificate)\n- [2.0.0](/php/docs/reference/cloud-kms/2.0.0/V1.Certificate)\n- [1.23.0](/php/docs/reference/cloud-kms/1.23.0/V1.Certificate)\n- [1.22.1](/php/docs/reference/cloud-kms/1.22.1/V1.Certificate)\n- [1.21.4](/php/docs/reference/cloud-kms/1.21.4/V1.Certificate)\n- [1.20.3](/php/docs/reference/cloud-kms/1.20.3/V1.Certificate)\n- [1.19.0](/php/docs/reference/cloud-kms/1.19.0/V1.Certificate)\n- [1.18.1](/php/docs/reference/cloud-kms/1.18.1/V1.Certificate)\n- [1.17.0](/php/docs/reference/cloud-kms/1.17.0/V1.Certificate)\n- [1.16.4](/php/docs/reference/cloud-kms/1.16.4/V1.Certificate)\n- [1.15.3](/php/docs/reference/cloud-kms/1.15.3/V1.Certificate) \nReference documentation and code samples for the Cloud KMS V1 Client class Certificate.\n\nA [Certificate](/php/docs/reference/cloud-kms/latest/V1.Certificate) represents an X.509\ncertificate used to authenticate HTTPS connections to EKM replicas.\n\nGenerated from protobuf message `google.cloud.kms.v1.Certificate`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ Kms \\\\ V1\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getRawDer\n\nRequired. The raw certificate bytes in DER format.\n\n### setRawDer\n\nRequired. The raw certificate bytes in DER format.\n\n### getParsed\n\nOutput only. True if the certificate was parsed successfully.\n\n### setParsed\n\nOutput only. True if the certificate was parsed successfully.\n\n### getIssuer\n\nOutput only. The issuer distinguished name in RFC 2253 format. Only present\nif [parsed](/php/docs/reference/cloud-kms/latest/V1.Certificate#_Google_Cloud_Kms_V1_Certificate__getParsed__) is true.\n\n### setIssuer\n\nOutput only. The issuer distinguished name in RFC 2253 format. Only present\nif [parsed](/php/docs/reference/cloud-kms/latest/V1.Certificate#_Google_Cloud_Kms_V1_Certificate__getParsed__) is true.\n\n### getSubject\n\nOutput only. The subject distinguished name in RFC 2253 format. Only\npresent if [parsed](/php/docs/reference/cloud-kms/latest/V1.Certificate#_Google_Cloud_Kms_V1_Certificate__getParsed__) is true.\n\n### setSubject\n\nOutput only. The subject distinguished name in RFC 2253 format. Only\npresent if [parsed](/php/docs/reference/cloud-kms/latest/V1.Certificate#_Google_Cloud_Kms_V1_Certificate__getParsed__) is true.\n\n### getSubjectAlternativeDnsNames\n\nOutput only. The subject Alternative DNS names. Only present if\n[parsed](/php/docs/reference/cloud-kms/latest/V1.Certificate#_Google_Cloud_Kms_V1_Certificate__getParsed__) is true.\n\n### setSubjectAlternativeDnsNames\n\nOutput only. The subject Alternative DNS names. Only present if\n[parsed](/php/docs/reference/cloud-kms/latest/V1.Certificate#_Google_Cloud_Kms_V1_Certificate__getParsed__) is true.\n\n### getNotBeforeTime\n\nOutput only. The certificate is not valid before this time. Only present if\n[parsed](/php/docs/reference/cloud-kms/latest/V1.Certificate#_Google_Cloud_Kms_V1_Certificate__getParsed__) is true.\n\n### hasNotBeforeTime\n\n### clearNotBeforeTime\n\n### setNotBeforeTime\n\nOutput only. The certificate is not valid before this time. Only present if\n[parsed](/php/docs/reference/cloud-kms/latest/V1.Certificate#_Google_Cloud_Kms_V1_Certificate__getParsed__) is true.\n\n### getNotAfterTime\n\nOutput only. The certificate is not valid after this time. Only present if\n[parsed](/php/docs/reference/cloud-kms/latest/V1.Certificate#_Google_Cloud_Kms_V1_Certificate__getParsed__) is true.\n\n### hasNotAfterTime\n\n### clearNotAfterTime\n\n### setNotAfterTime\n\nOutput only. The certificate is not valid after this time. Only present if\n[parsed](/php/docs/reference/cloud-kms/latest/V1.Certificate#_Google_Cloud_Kms_V1_Certificate__getParsed__) is true.\n\n### getSerialNumber\n\nOutput only. The certificate serial number as a hex string. Only present if\n[parsed](/php/docs/reference/cloud-kms/latest/V1.Certificate#_Google_Cloud_Kms_V1_Certificate__getParsed__) is true.\n\n### setSerialNumber\n\nOutput only. The certificate serial number as a hex string. Only present if\n[parsed](/php/docs/reference/cloud-kms/latest/V1.Certificate#_Google_Cloud_Kms_V1_Certificate__getParsed__) is true.\n\n### getSha256Fingerprint\n\nOutput only. The SHA-256 certificate fingerprint as a hex string. Only\npresent if [parsed](/php/docs/reference/cloud-kms/latest/V1.Certificate#_Google_Cloud_Kms_V1_Certificate__getParsed__) is true.\n\n### setSha256Fingerprint\n\nOutput only. The SHA-256 certificate fingerprint as a hex string. Only\npresent if [parsed](/php/docs/reference/cloud-kms/latest/V1.Certificate#_Google_Cloud_Kms_V1_Certificate__getParsed__) is true."]]