Hallo zusammen,
ich habe den Nitrokey Pro 2 vor ein paar Tagen bekommen und habe es bisher geschafft OTP in Betrieb zu nehmen, aber an S/MIME mit Outlook scheitere ich.
Mit dem ersten USB-C auf USB-A Adapter schien es noch mehr Probleme zu machen. Nun am Monitor scheint er weniger Fehler zu machen. Aber Outlook weigert sich noch immer.
pkcs15-init --delete-objects privkey,pubkey --id 2 --store-private-key test1.pfx --format pkcs12 --auth-id 3 --verify-pin
Using reader with a card: Nitrokey Nitrokey Pro
User PIN required.
Please enter User PIN [Admin PIN]:
Deleted 2 objects
error:23076071:PKCS12 routines:PKCS12_parse:mac verify failure
Please enter passphrase to unlock secret key:
Importing 4 certificates:
0: /emailAddress=<removed>
1: /C=GB/ST=Greater Manchester/L=Salford/O=Sectigo Limited/CN=Sectigo RSA Client Authentication and Secure Email CA
2: /C=US/ST=New Jersey/L=Jersey City/O=The USERTRUST Network/CN=USERTrust RSA Certification Authority
3: /C=GB/ST=Greater Manchester/L=Salford/O=Comodo CA Limited/CN=AAA Certificate Services
Failed to store private key: Not supported
pkcs15-init --delete-objects privkey,pubkey --id 3 --store-private-key test1.pfx --format pkcs12 --auth-id 3 --verify-pin
Using reader with a card: Nitrokey Nitrokey Pro
User PIN required.
Please enter User PIN [Admin PIN]:
Deleted 2 objects
error:23076071:PKCS12 routines:PKCS12_parse:mac verify failure
Please enter passphrase to unlock secret key:
Importing 4 certificates:
0: /emailAddress=<removed>
1: /C=GB/ST=Greater Manchester/L=Salford/O=Sectigo Limited/CN=Sectigo RSA Client Authentication and Secure Email CA
2: /C=US/ST=New Jersey/L=Jersey City/O=The USERTRUST Network/CN=USERTrust RSA Certification Authority
3: /C=GB/ST=Greater Manchester/L=Salford/O=Comodo CA Limited/CN=AAA Certificate Services
Failed to store private key: Non unique object ID
pkcs15-init(1989,0x105150580) malloc: *** error for object 0x6000036e0300: pointer being freed was not allocated
pkcs15-init(1989,0x105150580) malloc: *** set a breakpoint in malloc_error_break to debug
zsh: abort pkcs15-init --delete-objects privkey,pubkey --id 3 --store-private-key 3
Wenn man sich versucht die Zertifikate anzeigen zu lassen mit
pkcs15-tool --list-certificates
Using reader with a card: Nitrokey Nitrokey Pro
scheint es auch leer zu sein.
Mir ist etwas unklar woran es liegen könnte. Hat jemand einen Tipp?
Update etwas später. Bei mehreren versuchen scheint es auch ab und zu mal zu gehen:
pkcs15-init --delete-objects privkey,pubkey --id 3 --store-private-key test1.pfx --format pkcs12 --auth-id 3 --verify-pin
Using reader with a card: Nitrokey Nitrokey Pro
User PIN required.
Please enter User PIN [Admin PIN]:
NOTE: couldn't find privkey 03 to delete
NOTE: couldn't find pubkey 03 to delete
Deleted 0 objects
error:23076071:PKCS12 routines:PKCS12_parse:mac verify failure
Please enter passphrase to unlock secret key:
Importing 4 certificates:
0: /emailAddress=<removed>
1: /C=GB/ST=Greater Manchester/L=Salford/O=Sectigo Limited/CN=Sectigo RSA Client Authentication and Secure Email CA
2: /C=US/ST=New Jersey/L=Jersey City/O=The USERTRUST Network/CN=USERTrust RSA Certification Authority
3: /C=GB/ST=Greater Manchester/L=Salford/O=Comodo CA Limited/CN=AAA Certificate Services
Failed to store private key: Not supported
pkcs15-tool --list-certificates
Using reader with a card: Nitrokey Nitrokey Pro
X.509 Certificate [Cardholder certificate]
Object Flags : [0x00]
Authority : no
Path : 3f007f21
ID : 03
Encoded serial : 02 10 61526C8AB1822A8C2947C1447C83551C
Das Zertifikat mit der ID 02 ist aber nie in der Auflistung und Outlook meldet “Stellen Sie sicher, dass Sie über gültige Zertifikate zum Senden von Nachrichten mit S/MIME verfügen.”
Beste Grüße
Marco