"Not supported" error when importing from PKCS12 file

Hi!
I’m trying to import a private key and certificate contained in a PKCS12 file where the certificate chain contains 3 certificates (the leaf certificate and 2 sub CAs). I get the “Not supported” error (using the pkcs15-init tool).
Is there any limitation on the number of certificates in the certificate chain? Otherwise aby idea where the “unsupported” error can come from?
Thanks!
Vivien

If you are using a Nitrokey HSM, then you need to use the Smart Card Shell to import existing keys and certificates.

Plain key import via the pkcs15-init tool is not supported. The Nitrokey HSM supports only encrypted key import for security reasons.

Sorry, i forgot to mention i’m using a Nitokey Pro from a Linux OS. Thanks anyways!