You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
However, if you load a repository that's created with a key from import_ecdsakey_from_public_pem, you run a TUF error that the keytype is unsupported because of:
I think the correct fix for this is to add the 'new' ecdsa key type to the list of supported key types. Would you be willing to submit a PR with a change to _SUPPORTED_KEY_TYPES = ['rsa', 'ed25519', 'ecdsa', 'ecdsa-sha2-nistp256']?
ECDSA keys are generated with a keytype of
ecdsa
using the securesystemslib https://github.com/secure-systems-lab/securesystemslib/blob/2d33d91bef92f53b5e9489d57033bb9d046a6d23/securesystemslib/keys.py#L1678.However, if you load a repository that's created with a key from
import_ecdsakey_from_public_pem
, you run a TUF error that the keytype is unsupported because of:https://github.com/theupdateframework/tuf/blob/30ba6e9f9ab25e0370e29ce574dada2d8809afa0/tuf/keydb.py#L48
Should the keytype instead be
ecdsa
, rather thanecdsa-sha2-nistp256
, which is the scheme type?The text was updated successfully, but these errors were encountered: