Mit Sammlungen den Überblick behalten
Sie können Inhalte basierend auf Ihren Einstellungen speichern und kategorisieren.
In diesem Thema erfahren Sie, warum eine importierte Schlüsselversion den Status IMPORT_FAILED hat.
Mit Cloud Key Management Service können Sie vom Nutzer bereitgestellte kryptografische Schlüssel als neue Schlüsselversionen importieren. Der Anfangsstatus für eine importierte Schlüsselversion ist PENDING_IMPORT.
Wenn das Schlüsselmaterial erfolgreich importiert wurde, wird der Status der importierten Schlüsselversion zu ENABLED aktualisiert. Wurde es nicht erfolgreich importiert, wird der Status der Schlüsselversion zu IMPORT_FAILED aktualisiert.
Probleme mit der Formatierung des Schlüssels
Formatierungsprobleme sind häufig die Ursache für Importfehler. Die folgenden Fehlermeldungen werden in der Regel durch falsch formatierte Schlüssel verursacht:
An argument to the import operation was malformed
The key material in the import request couldn't be unwrapped or wasn't
formatted correctly
Längenfehler sind bestimmte Formatierungsfehler, die Cloud KMS erkennen kann, bevor das Schlüsselmaterial ausgepackt wird. Die folgenden Fehlermeldungen werden in der Regel durch falsch formatierte Schlüssel verursacht:
Die folgenden Fehler weisen auf ein Problem beim manuellen Verpacken von Schlüsseln für den Import hin.
An argument to the import operation was malformed
The key material in the import request couldn't be unwrapped or wasn't
formatted correctly
Es wird empfohlen, die automatische Schlüsselverpackung zu verwenden. Wenn Sie automatisches Key-Wrapping nicht verwenden können, überprüfen Sie, ob Sie den Verpackungsschlüssel aus dem richtigen Importjob verwenden, und versuchen Sie noch einmal, den Schlüssel zu verpacken.
[[["Leicht verständlich","easyToUnderstand","thumb-up"],["Mein Problem wurde gelöst","solvedMyProblem","thumb-up"],["Sonstiges","otherUp","thumb-up"]],[["Schwer verständlich","hardToUnderstand","thumb-down"],["Informationen oder Beispielcode falsch","incorrectInformationOrSampleCode","thumb-down"],["Benötigte Informationen/Beispiele nicht gefunden","missingTheInformationSamplesINeed","thumb-down"],["Problem mit der Übersetzung","translationIssue","thumb-down"],["Sonstiges","otherDown","thumb-down"]],["Zuletzt aktualisiert: 2025-09-02 (UTC)."],[],[],null,["# Troubleshooting failed imports\n\nThis topic provides information to help you determine why the state of an\nimported key version is `IMPORT_FAILED`.\n\nCloud Key Management Service allows you to import user-provided cryptographic keys as new\nkey versions. The initial state for an imported key version is `PENDING_IMPORT`.\nIf the key material is imported successfully, the state of the imported key\nversion is updated to `ENABLED`. If key material isn't imported successfully,\nthe state of the key version is updated to `IMPORT_FAILED`.\n\nProblems with the key's format\n------------------------------\n\nFormatting issues are a common cause of import failures. The following error\nmessages are typically caused by incorrectly formatted keys:\n\n- `An argument to the import operation was malformed`\n\n- `The key material in the import request couldn't be unwrapped or wasn't\n formatted correctly`\n\nLength errors are a specific variety of formatting error that\nCloud KMS can detect before it attempts to unwrap your key\nmaterial. The following length error messages are typically caused by\nincorrectly formatted keys:\n\n- `Wrapped ECDSA key has invalid length of (length)`\n\n- `Wrapped key is too short`\n\n- `Wrapped key does not consist of 64-bit blocks`\n\n- `Wrapped key has invalid length`\n\nYou can learn more about [formatting keys for import](/kms/docs/formatting-keys-for-import).\n\nProblems wrapping a key\n-----------------------\n\nThe following errors indicate a problem when manually wrapping keys for import.\n\n- `An argument to the import operation was malformed`\n\n- `The key material in the import request couldn't be unwrapped or wasn't\n formatted correctly`\n\nUsing automatic key wrapping is recommended. If you cannot use automatic key\nwrapping, verify that you are using the wrapping key from the correct import job\nand try to [wrap the key](/kms/docs/wrapping-a-key) again."]]