Код: Выделить всё
keytool -list -keystore NONE -storetype PKCS11 -providerclass sun.security.pkcs11.SunPKCS11 -providerArg C:\\token\\eToken.cfg
Enter keystore password: xxx
Keystore type: PKCS11
Keystore provider: SunPKCS11-eToken
Your keystore contains 1 entry
Sectigo_20250605103110, PrivateKeyEntry,
Certificate fingerprint (SHA-256):
xxx
Код: Выделить всё
jarsigner -verbose -keystore NONE -storetype PKCS11 -storepass xxx -certchain C:\\chain\\chain.pem -addprovider SunPKCS11 -providerArg C:\\token\\eToken.cfg 'c:\\test-signing\\signed\\helloworld.jar' 'Sectigo_20250605103110'
Код: Выделить всё
jarsigner -verbose -keystore NONE -storetype PKCS11 -storepass xxx -certchain C:\\chain\\chain.pem -providerclass sun.security.pkcs11.SunPKCS11 -providerArg C:\\token\\eToken.cfg 'c:\\sign\\helloworld.jar' 'Sectigo_20250605103110'
jarsigner: ключ, связанный с «Sectigo_20250605103110», не является закрытым ключом
Есть идеи? Спасибо!!
Подробнее здесь: https://stackoverflow.com/questions/797 ... -a-safenet
Мобильная версия