Tetap teratur dengan koleksi
Simpan dan kategorikan konten berdasarkan preferensi Anda.
Mutual TLS (mTLS) adalah protokol standar industri untuk autentikasi timbal balik
antara klien dan server. Protokol mTLS memastikan bahwa klien
dan server, di setiap ujung koneksi jaringan, adalah siapa yang mereka klaim dengan
memverifikasi bahwa keduanya memiliki kunci pribadi yang terkait dengan sertifikat
klien.
Apa yang dimaksud dengan sertifikat klien?
Sertifikat klien, yang juga disebut sertifikat Transport Layer Security (TLS),
adalah file yang berisi informasi penting untuk memverifikasi identitas perangkat.
Informasi sertifikat mencakup kunci publik, pernyataan tentang siapa yang menerbitkan
sertifikat (sertifikat dapat diterbitkan oleh certificate authority atau ditandatangani
sendiri), dan tanggal habis masa berlaku sertifikat.
Cara Google API memvalidasi identitas perangkat
Protokol TLS menggunakan teknik yang disebut infrastruktur kunci publik (PKI), yang
bergantung pada sepasang kunci asimetris: kunci publik dan kunci pribadi. Apa pun
yang dienkripsi dengan kunci pribadi hanya dapat didekripsi dengan kunci publik.Google Cloud API
menggunakan protokol TLS untuk memverifikasi identitas perangkat dengan
mendekode pesan yang dienkripsi oleh kunci pribadi menggunakan kunci publik
sertifikat selama TLS handshake. Dekripsi yang berhasil membuktikan
kepemilikan kunci pribadi yang hanya tersedia dari perangkat tepercaya.
Untuk mengaktifkan proses validasi dan handshake mTLS, klien harus melakukan hal berikut:
Buat koneksi mTLS dengan Google API menggunakan endpoint API khusus mTLS. Endpoint khusus mTLS memiliki format berikut: [service].mtls.googleapis.com
Menemukan dan menggunakan sertifikat perangkat selama handshake mTLS. Jika Anda
menggunakan Verifikasi Endpoint untuk deployment sertifikat, jenis sertifikat ini
akan otomatis ditemukan dan digunakan oleh klien yang didukung.
Diagram berikut mengilustrasikan handshake mTLS antara klien dan
server Google API:
[[["Mudah dipahami","easyToUnderstand","thumb-up"],["Memecahkan masalah saya","solvedMyProblem","thumb-up"],["Lainnya","otherUp","thumb-up"]],[["Sulit dipahami","hardToUnderstand","thumb-down"],["Informasi atau kode contoh salah","incorrectInformationOrSampleCode","thumb-down"],["Informasi/contoh yang saya butuhkan tidak ada","missingTheInformationSamplesINeed","thumb-down"],["Masalah terjemahan","translationIssue","thumb-down"],["Lainnya","otherDown","thumb-down"]],["Terakhir diperbarui pada 2025-09-01 UTC."],[],[],null,["# Understand mutual TLS at Google Cloud\n\nMutual TLS (mTLS) is an industry standard protocol for mutual authentication\nbetween a client and a server. The mTLS protocol ensures that both the client\nand server, at each end of a network connection, are who they claim they are by\nverifying that both possess the private key associated with the client\ncertificate.\n\n### What is a client certificate?\n\nA client certificate, also called a Transport Layer Security (TLS) certificate,\nis a file that contains important information for verifying a device's identity.\nThe certificate information includes the public key, a statement of who issued\nthe certificate (certificates can be issued by certificate authorities or self-\nsigned), and the certificate's expiration date.\n\n### How the Google APIs validate device identity\n\nThe TLS protocol uses a technique called public key infrastructure (PKI), which\nrelies on a pair of asymmetric keys: a public key and a private key. Anything\nencrypted with the private key can be decrypted only with the public key. The\nGoogle Cloud APIs use the TLS protocol to verify the identity of a device by\ndecrypting the message encrypted by the private key using the public key of the\ncertificate during the mTLS handshake. The successful decryption proves the\npossession of the private key which is only available from trusted devices.\n\nTo enable the mTLS handshake and validation process, a client must do the following:\n\n- Establish an mTLS connection with the Google APIs by using mTLS-specific API\n endpoints. The mTLS-specific endpoints have the following format: `[service].mtls.googleapis.com`\n\n- Discover and use the device certificate during the mTLS handshake. If you are\n using Endpoint Verification for certificate deployment, this type of certificate\n is automatically discovered and used by the supported clients.\n\nThe following diagram illustrates the mTLS handshake between a client and a\nGoogle API server:\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\nWhat's next\n-----------\n\n- [Set up certificate-based access](/chrome-enterprise-premium/docs/set-up-cba)"]]