V
V
Vladislav2016-11-27 16:47:28
Java
Vladislav, 2016-11-27 16:47:28

Error creating certificate, what's wrong?

I did everything as described in the article on Habré https://habrahabr.ru/post/307774/
At the step where it says:

Now we generate a BKS store that will contain our certificate:

team:
keytool -import -v -trustcacerts -alias mybks -file c:/path/to/burp.crt -keystore ssl_pinning_certs_bk146.bks -storetype BKS -provider org.bouncycastle.jce.provider.BouncyCastleProvider -providerpath c:/path/to/bcprov-jdk15on-154.jar -storepass spassword

I run the same command with my parameters (paths to files), the following error occurs.
keytool error: java.io.IOException: KeyStore integrity check failed.
java.io.IOException: KeyStore integrity check failed.
        at org.bouncycastle.jcajce.provider.keystore.bc.BcKeyStoreSpi.engineLoad
(Unknown Source)
        at java.security.KeyStore.load(KeyStore.java:1445)
        at sun.security.tools.keytool.Main.doCommands(Main.java:792)
        at sun.security.tools.keytool.Main.run(Main.java:340)
        at sun.security.tools.keytool.Main.main(Main.java:333)

It seems to me that the problem is in the -storepass parameter , if so, how to get this password?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry, 2016-12-01
@dbubb

usually the default password is changeit

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question