Но когда я пытаюсь преобразовать его в хранилище ключей с помощью следующей команды (используя BouncyCastle):
Код: Выделить всё
keytool -importcert -v -trustcacerts -file "test.crt" -alias ca -keystore "test.bks" -provider org.bouncycastle.jce.provider.BouncyCastleProvider -providerpath "bcprov-ext-jdk15on-1.46.jar" -storetype BKS -storepass testtest
Код: Выделить всё
keytool error: java.lang.Exception: Input not an X.509 certificate
java.lang.Exception: Input not an X.509 certificate
at sun.security.tools.KeyTool.addTrustedCert(Unknown Source)
at sun.security.tools.KeyTool.doCommands(Unknown Source)
at sun.security.tools.KeyTool.run(Unknown Source)
at sun.security.tools.KeyTool.main(Unknown Source)
Есть ли какой-либо веб-инструмент (или другой способ), с помощью которого я могу проверить сертификат?
Подробнее здесь: https://stackoverflow.com/questions/158 ... ate-format
Мобильная версия