I am trying to use the yubico-piv-tool-0.1.0-win64.zip distribution of yubico-piv-tool to import an existing private key / certificate pair in PKCS12 format using the following command
Code:
./yubico-piv-tool -v -s 9c -i certificate.p12 -K PKCS12 -p password -a set-chuid -a import-key -a import-cert
but I keep getting the following:
Code:
Successfully set new CHUID.
using reader 'Yubico Yubikey NEO OTP+CCID 0' matching 'Yubikey'.
Successful applet authentication.
Now processing for action 7.
Setting the GUID to: 30 19 d4 e7 39 da 73 9c ed 39 ce 73 9d 83 68 58 21 08 42 10 84 21 38 42 10 c3 f5 34 8c aa e0 79 67 a6 08 2f dd aa c2 db 94 4e 9e 3f 00 35 08 32 30 33 30 30 31 30 31 3e 00 fe 00
Now processing for action 5.
Failed import command with code 6f00.
Can anyone tell me what this code implies or what I might be doing wrong? If I remove the
Code:
-a import-key
it imports the certificate without error, but I need both. Thanks.