SAP Knowledge Base Article - Public

3744013 - Error “Invalid key format. Supported key types are DSA and RSA” when importing PGP Public Key

Symptom

When attempting to import a public key in the PGP Key Management tool, the following error message is displayed:

"Invalid key format. Supported key types are DSA and RSA."

In some cases, no error message is displayed, but the key is not imported.

It has been confirmed that the key being imported is of a supported type (DSA or RSA).

Environment

SAP SuccessFactors HCM Suite

Cause

Although the key type is valid (RSA or DSA), the key format may not be supported.

If the key contains headers such as:

---- BEGIN SSH2 PUBLIC KEY ----

or any format other than a PGP public key block, the system will not accept the key.

Resolution

Ensure that the public key is in a valid PGP Public Key Block format, with the following headers:

-----BEGIN PGP PUBLIC KEY BLOCK-----

-----END PGP PUBLIC KEY BLOCK-----

If the key does not contain the required headers, contact the provider of the key and request a valid PGP Public Key in the correct format and supported key type (RSA or DSA).


Note:
SAP SuccessFactors Technical Support does not generate or modify keys provided by third-party tools. For assistance with key generation or format conversion, contact the corresponding third-party vendor.

See Also

Keywords

PGP Public Key, invalid key format, supported, key types, DSA, RSA, PGP Key Management, key import fails, rsa key, dsa key, ssh2 public key, openpgp, integration center, provisioning, security center, public key block, pgp header , KBA , LOD-SF-PLT-PGP , PGP Key Generation , Problem

Product

SAP SuccessFactors HCM Suite all versions