Using the yubico-piv-tool I generate a public key in slot 9A.
I then try to create a self-signed certificate based off this public key.
But I get the error:
Code:
Failed sign command with code 6982
What does code 6982 mean?
The same error occurs for slots 9C and 9D. But Slot 9E works, which is the Card Authentication slot, where the PIN is never used/needed.
Is it impossible or not allowed to have self-signed certificates in slots 9A, 9C, or 9D (PIV Authentication, Digital Signature, Key Management) slots?
The yubico-piv-tool generates self-signed certificates with a life-time of 1 year. To get different life-times requires changing the hardcoded value and recompiling. Could you add a command line argument?
Is it possible to add extended attributes to self-signed certificates, such as basicConstraints: CA=True?