I am trying to create a keystore using Keytool with my algorithms.
I created a custom java.security.provider with the extended classes SignatureSPI, MessagedigestSPI and KeyPairGeneratorSPI and statically set it.
The problem I am facing is when I try to create a repository using:
keytool -alias something -genkeypair -keyalg GOST2001KeyPairGenerator -sigalg GOST2001Signature -providerclass ru.test.security.test_provider -storetype pkcs12 -keystore test_keystore
I get error messages and errors:
GOST2001KeyPairGenerator initialize GOST2001KeyPairGenerator generateKeyPair GOST2001Signature engineInitSign keytool error: java.lang.RuntimeException: internal error! unrecognized algorithm name: GOST2001Signature
The strange thing is that the algorithm actually begins to execute, but is subsequently called unrecognized. I canβt understand what is going wrong.
Artem gulyamshaev
source share