{"templateId":"markdown","versions":[{"version":"v1.44","label":"v1.44 STS","link":"/pt-br/products/custody/identity-and-access/authentication/generate-api-keys-and-register","default":true,"active":false,"folderId":"714bb270"},{"version":"v1.43","label":"v1.43 LTS","link":"/pt-br/products/custody/v1.43/identity-and-access/authentication/generate-api-keys-and-register","default":false,"active":true,"folderId":"714bb270"},{"version":"v1.42","label":"v1.42 STS","link":"/pt-br/products/custody/v1.42/identity-and-access/authentication/generate-api-keys-and-register","default":false,"active":false,"folderId":"714bb270"},{"version":"v1.34","label":"v1.34 LTS","link":"/pt-br/products/custody/v1.34/identity-and-access/authentication/generate-api-keys-and-register","default":false,"active":false,"folderId":"714bb270"},{"version":"v1.26","label":"v1.26 LTS","link":"/pt-br/products/custody/v1.26/identity-and-access/authentication/generate-api-keys-and-register","default":false,"active":false,"folderId":"714bb270"},{"version":"v1.19","label":"v1.19 LTS","link":"/pt-br/products/custody/v1.19/identity-and-access/authentication/generate-api-keys-and-register","default":false,"active":false,"folderId":"714bb270"},{"version":"v1.15","label":"v1.15 LTS","link":"/pt-br/products/custody/v1.15/identity-and-access/authentication/generate-api-keys-and-register","default":false,"active":false,"folderId":"714bb270"}],"sharedDataIds":{"sidebar":"sidebar-@l10n/pt-BR/products/custody/@v1.15/sidebars.yaml"},"props":{"metadata":{"markdoc":{"tagList":["admonition","tabs","tab"]},"type":"markdown"},"seo":{"title":"Generate a key pair and register a public key","description":"User guides, API reference, and support resources.","siteUrl":"https://docs.ripple.com","lang":"en-US"},"dynamicMarkdocComponents":[],"compilationErrors":[],"ast":{"$$mdtype":"Tag","name":"article","attributes":{},"children":[{"$$mdtype":"Tag","name":"Heading","attributes":{"level":1,"id":"generate-a-key-pair-and-register-a-public-key","__idx":0},"children":["Generate a key pair and register a public key"]},{"$$mdtype":"Tag","name":"Admonition","attributes":{"type":"info","name":"Executive summary"},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["API users and custom clients need a cryptographic key pair. This one-time setup generates a key pair and registers the public key with the platform."]}]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Generate a signing key pair using a cryptographically secure method (P-256, secp256k1, or Ed25519)."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Keep your private key secret. Share only the public key with your administrator."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Your public key is registered via governance intent (or genesis block for initial users)."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Production keys should be generated and stored in a secure KMS, not manually."]}]}]},{"$$mdtype":"Tag","name":"Admonition","attributes":{"type":"success","name":"Why this matters"},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Your key pair is your API identity on the platform. The private key proves you authorized every action you take — losing it means losing access, and exposing it means someone else can act as you. There is no \"forgot password\" recovery — key management is the user's responsibility."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["For architects and operators"]},": Establish key generation procedures and secure storage guidance for your users. Consider mandating hardware security keys (YubiKey) or the mobile app's secure enclave for production users rather than software-based key storage."]}]},{"$$mdtype":"Tag","name":"Admonition","attributes":{"type":"info"},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["This guide is for API users and custom clients that need to register after the platform is running. UI users normally create a profile and store key material with the ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Ripple Custody: Auth & Sign"]}," app. Genesis users are pre-configured during platform initialization — see ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/pt-br/products/custody/v1.43/governance/genesis"},"children":["Genesis"]},"."]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"prerequisites","__idx":1},"children":["Prerequisites"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Before you begin, ensure you have:"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Access to a cryptographically secure environment for key generation"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Contact information for your user administrator"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Knowledge of which key type your environment requires (ask your administrator if unsure)"]}]},{"$$mdtype":"Tag","name":"hr","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"supported-key-types","__idx":2},"children":["Supported key types"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Ripple Custody (Vault)"," supports three types of cryptographic keys:"]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Key type"},"children":["Key type"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Curve"},"children":["Curve"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Common use"},"children":["Common use"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"When to choose"},"children":["When to choose"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["P-256 (secp256r1)"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["NIST P-256"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["General purpose, widely supported"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Default choice for most deployments"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["secp256k1"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Koblitz curve"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Bitcoin, Ethereum ecosystems"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["When integrating with Bitcoin/Ethereum infrastructure"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Ed25519"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Edwards curve"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["High performance, modern systems"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["When performance is critical"]}]}]}]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["All keys must be in ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["DER format with Base64 encoding"]}," (without PEM headers/footers)."]},{"$$mdtype":"Tag","name":"Admonition","attributes":{"type":"warning"},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Ask your administrator which key type is required for your environment before generating keys. Using the wrong key type will cause authentication failures."]}]},{"$$mdtype":"Tag","name":"hr","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"step-1-generate-a-key-pair","__idx":3},"children":["Step 1: Generate a key pair"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Generate a key pair using a cryptographically secure method. The private key must be kept secret; the public key will be shared with your administrator."]},{"$$mdtype":"Tag","name":"Admonition","attributes":{"type":"warning"},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Production environments"]},": Always generate and store production keys using a cryptographically secure key management system (KMS). The OpenSSL examples below are for testing and development only."]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"openssl-examples-non-production","__idx":4},"children":["OpenSSL examples (non-production)"]},{"$$mdtype":"Tag","name":"Tabs","attributes":{"size":"medium"},"children":[{"$$mdtype":"Tag","name":"TabItemFragment","attributes":{"label":"P-256 (secp256r1)","disable":false},"children":[{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"sh","header":{"controls":{"copy":{}}},"source":"# Generate private key\nopenssl ecparam -genkey -name secp256r1 -noout -out privateKey.pem\n\n# Export public key in DER format with Base64 encoding\nopenssl ec -in privateKey.pem -pubout -outform DER | openssl base64 -A -out publicKey.pem\n","lang":"sh"},"children":[]}]},{"$$mdtype":"Tag","name":"TabItemFragment","attributes":{"label":"secp256k1","disable":false},"children":[{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"sh","header":{"controls":{"copy":{}}},"source":"# Generate private key\nopenssl ecparam -genkey -name secp256k1 -noout -out privateKey.pem\n\n# Export public key in DER format with Base64 encoding\nopenssl ec -in privateKey.pem -pubout -outform DER | openssl base64 -A -out publicKey.pem\n","lang":"sh"},"children":[]}]},{"$$mdtype":"Tag","name":"TabItemFragment","attributes":{"label":"Ed25519","disable":false},"children":[{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"sh","header":{"controls":{"copy":{}}},"source":"# Generate private key\nopenssl genpkey -algorithm Ed25519 -out privateKey.pem\n\n# Export public key in DER format with Base64 encoding\nopenssl pkey -in privateKey.pem -pubout -outform DER | openssl base64 -A -out publicKey.pem\n","lang":"sh"},"children":[]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"sdk-examples-non-production","__idx":5},"children":["SDK examples (non-production)"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["If you use a ","Ripple Custody (Vault)"," SDK, you can generate the key pair with it instead of OpenSSL. The SDKs support the same three key types. They return the private key in PKCS#8 PEM format (",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["-----BEGIN PRIVATE KEY-----"]},"). They return the public key as Base64-encoded DER, which is the format your administrator registers. For SDK installation, see ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/pt-br/products/custody/v1.43/get-started/integrate-via-sdk"},"children":["Integrate via SDK"]},"."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["The TypeScript and Python SDKs include a ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["ripple-custody keygen"]}," command that writes the private key to a file with ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["0600"]}," permissions and prints the public key. The Java SDK has no command-line tool, so use its ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Keys"]}," class instead. The following examples generate a key pair with each SDK:"]},{"$$mdtype":"Tag","name":"Tabs","attributes":{"size":"medium"},"children":[{"$$mdtype":"Tag","name":"TabItemFragment","attributes":{"label":"TypeScript","disable":false},"children":[{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"sh","header":{"controls":{"copy":{}}},"source":"# --curve: P-256 (default), secp256k1, or Ed25519\nnpx ripple-custody keygen --curve P-256 --out privateKey.pem\n","lang":"sh"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Or generate the key pair in code:"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"typescript","header":{"controls":{"copy":{}}},"source":"import { generateSigningKeypair } from '@ripple/ripple-custody-client-lib-typescript';\n\n// 'P-256' (default), 'secp256k1', or 'Ed25519'\nconst { privateKeyPem, publicKeyBase64Der } = generateSigningKeypair('P-256');\n// Store privateKeyPem securely. Send publicKeyBase64Der to your administrator.\n","lang":"typescript"},"children":[]}]},{"$$mdtype":"Tag","name":"TabItemFragment","attributes":{"label":"Java","disable":false},"children":[{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"java","header":{"controls":{"copy":{}}},"source":"import com.ripple.custody.Keys;\n\n// SECP256R1 (P-256, the default), SECP256K1, or ED25519\nKeys.SigningKeypair keypair = Keys.generateSigningKeypair(Keys.KeyType.SECP256R1);\nString privateKeyPem = keypair.getPrivateKeyPem();           // Store securely\nString publicKeyBase64Der = keypair.getPublicKeyBase64Der(); // Send to your administrator\n","lang":"java"},"children":[]}]},{"$$mdtype":"Tag","name":"TabItemFragment","attributes":{"label":"Python","disable":false},"children":[{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"sh","header":{"controls":{"copy":{}}},"source":"# --key-type: Secp256r1 (P-256, default), Secp256k1, or Ed25519\nripple-custody keygen --key-type Secp256r1 --out privateKey.pem\n","lang":"sh"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["The command refuses to overwrite an existing key file unless you pass ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["--force"]},"."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Or generate the key pair in code:"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"python","header":{"controls":{"copy":{}}},"source":"from ripple_custody_client_lib_python import generate_signing_keypair\n\n# \"Secp256r1\" (P-256, default), \"Secp256k1\", or \"Ed25519\"\nprivate_key_pem, public_key_b64der = generate_signing_keypair(\"Secp256r1\")\n# Store private_key_pem securely. Send public_key_b64der to your administrator.\n","lang":"python"},"children":[]}]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["The SDKs never store the private key for you. To use the key with an SDK, set ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["RC_PRIVATE_KEY_FILE"]}," to the private key file path."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Recent OpenSSL versions print ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["using curve name prime256v1 instead of secp256r1"]}," for the P-256 command. ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["prime256v1"]}," is the same curve, so you can ignore the message."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"view-your-keys","__idx":6},"children":["View your keys"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["To view the private key (keep this secret):"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"sh","header":{"controls":{"copy":{}}},"source":"cat privateKey.pem\n","lang":"sh"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Example output:"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"header":{"controls":{"copy":{}}},"source":"-----BEGIN EC PRIVATE KEY-----\nMHcCAQEEIEfoycax3w8+JvkNv+L0CHmNUAHUcgCxlnOIpw/CoXzxoAoGCCqGSM49\nAwEHoUQDQgAEg36xU2KQ6xLPCvZ3JXZYf5pFCagAb7WGMlYCN92zzgi737EOkDOC\nMlZB0TY8CbzRHhG4RUdKuLkdRtD+OVIu2w==\n-----END EC PRIVATE KEY-----\n"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["To view the public key (this is what you share):"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"sh","header":{"controls":{"copy":{}}},"source":"cat publicKey.pem\n","lang":"sh"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Example output:"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"header":{"controls":{"copy":{}}},"source":"MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEg36xU2KQ6xLPCvZ3JXZYf5pFCagAb7WGMlYCN92zzgi737EOkDOCMlZB0TY8CbzRHhG4RUdKuLkdRtD+OVIu2w==\n"},"children":[]},{"$$mdtype":"Tag","name":"hr","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"step-2-register-with-your-administrator","__idx":7},"children":["Step 2: Register with your administrator"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Send your ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["public key"]}," to your user administrator through a secure channel. Never share your private key."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Your administrator will:"]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Create a ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["v0_CreateUser"]}," intent with your public key and a login ID. In the UI, ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Create user"]}," requires a ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Single sign-on provider (SSO)"]}," entry. For an API user that authenticates with a signed challenge, set the provider to ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["harmonize"]}," and the login ID to the user name, such as ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["api-user@example.com"]},". In the API, set ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["loginIds"]}," to ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["[{\"id\": \"api-user@example.com\", \"providerId\": \"harmonize\"}]"]},"."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Submit the intent for governance approval (based on configured policies)"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Notify you once your account is active"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["The following example shows a ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["v0_CreateUser"]}," payload for an API user. Alongside the public key, it gives the user a login ID for the internal ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["harmonize"]}," identity provider. When you request a JWT, the authentication server looks you up by your public key, and then uses this login ID to sign you in. A user without a ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["harmonize"]}," login ID can't get a token with the signed challenge."]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"json","header":{"controls":{"copy":{}}},"source":"\"payload\": {\n   \"id\": \"61aaa805-f9b8-11eb-b158-dcfb48cfb3cb\",\n   \"alias\": \"api-user@example.com\",\n   \"publicKey\": \"MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAE7ItVC+y2KerttcRjPLDs8QmDVz7yI7ElQA70Sz+cLcBI6041aObPvcNqps8eTYe2jhc2Kb5qgNgoACB3SqpYIA==\",\n   \"roles\": [\"transaction-operator\"],\n   \"loginIds\": [\n      {\n         \"id\": \"api-user@example.com\",\n         \"providerId\": \"harmonize\"\n      }\n   ],\n   \"lock\": \"Unlocked\",\n   \"description\": \"API user\",\n   \"customProperties\": {},\n   \"type\": \"v0_CreateUser\"\n}\n","lang":"json"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["For the internal provider, the login ID is usually the same as the user's alias. In the console, your administrator enters the same details as the user's identity provider and login ID. For more information, see ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/pt-br/products/custody/v1.43/governance/users/manage-users-and-roles"},"children":["Manage users and roles"]},"."]},{"$$mdtype":"Tag","name":"hr","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"step-3-verify-your-registration","__idx":8},"children":["Step 3: Verify your registration"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["After your administrator confirms your account is active, verify your registration by calling the ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/pt-br/products/custody/v1.43/reference/api/openapi/users/getme"},"children":["Get current user"]}," API operation."]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Obtain a JWT token. See ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/pt-br/products/custody/v1.43/identity-and-access/authentication/authenticate-api-requests"},"children":["Authenticate API requests"]}," for the complete JWT flow."]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Call the Get current user endpoint with your JWT:"]}]}]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"http","header":{"controls":{"copy":{}}},"source":"GET /v1/me\nAuthorization: Bearer <your_jwt_token>\n","lang":"http"},"children":[]},{"$$mdtype":"Tag","name":"ol","attributes":{"start":3},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Verify the response contains your public key, login identity, and domain memberships:"]}]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"json","header":{"controls":{"copy":{}}},"source":"{\n  \"publicKey\": \"MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAE...\",\n  \"domains\": [\n    {\n      \"id\": \"00000000-0000-0000-0000-000000000000\",\n      \"alias\": \"Sample root domain\",\n      \"userReference\": {\n        \"id\": \"00000000-0000-0000-0000-000000000001\",\n        \"alias\": \"user@example.com\",\n        \"roles\": [\"admin\"]\n      }\n    }\n  ],\n  \"loginId\": {\n    \"id\": \"user@example.com\",\n    \"providerId\": \"harmonize\"\n  }\n}\n","lang":"json"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["If you receive a successful response, your registration is complete."]},{"$$mdtype":"Tag","name":"hr","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"troubleshooting","__idx":9},"children":["Troubleshooting"]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Problem"},"children":["Problem"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Cause"},"children":["Cause"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Resolution"},"children":["Resolution"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Key generation fails"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["OpenSSL not installed or outdated"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Install or update OpenSSL"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Public key rejected by administrator"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Wrong key type or format"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Verify key type matches environment requirements; ensure DER format with Base64 encoding"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Registration not completing"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Intent awaiting approval"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Contact your administrator to check approval status"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Cannot authenticate after registration"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Account not yet active"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Wait for administrator confirmation; check intent status"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Token request returns ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["invalid_grant"]}," with ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Invalid user credentials"]},", although the account is active"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["The user has no login ID for the ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["harmonize"]}," identity provider"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Ask your administrator to update the user with a ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["harmonize"]}," login ID, as shown in ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"#step-2-register-with-your-administrator"},"children":["Step 2"]}]}]}]}]}]},{"$$mdtype":"Tag","name":"hr","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"next-steps","__idx":10},"children":["Next steps"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Once registered, proceed to ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/pt-br/products/custody/v1.43/identity-and-access/authentication/authenticate-api-requests"},"children":["Authenticate API requests"]}," to learn how to obtain JWT tokens and sign intents for ongoing API usage."]}]},"headings":[{"value":"Generate a key pair and register a public key","id":"generate-a-key-pair-and-register-a-public-key","depth":1},{"value":"Prerequisites","id":"prerequisites","depth":2},{"value":"Supported key types","id":"supported-key-types","depth":2},{"value":"Step 1: Generate a key pair","id":"step-1-generate-a-key-pair","depth":2},{"value":"OpenSSL examples (non-production)","id":"openssl-examples-non-production","depth":3},{"value":"SDK examples (non-production)","id":"sdk-examples-non-production","depth":3},{"value":"View your keys","id":"view-your-keys","depth":3},{"value":"Step 2: Register with your administrator","id":"step-2-register-with-your-administrator","depth":2},{"value":"Step 3: Verify your registration","id":"step-3-verify-your-registration","depth":2},{"value":"Troubleshooting","id":"troubleshooting","depth":2},{"value":"Next steps","id":"next-steps","depth":2}],"frontmatter":{"seo":{"title":"Generate a key pair and register a public key"}},"lastModified":"2026-11-26T14:29:29.000Z","isTranslationFallback":true,"pagePropGetterError":{"message":"","name":""}},"slug":"/pt-br/products/custody/v1.43/identity-and-access/authentication/generate-api-keys-and-register","userData":{"isAuthenticated":false,"teams":["anonymous"]},"isPublic":true}