I want to use .pem format certificate and .pkey key in order to create a socket SSL in android. Unfortunately, I found at this post that android prefers a different format, the BKS format. As described at this post, we can convert PEM to BKS via the Portecle.
However i cannot install Portege in Ubuntu. When i run:
java -jar /usr/share/java/portecle.jar
I get the following error:
Exception in thread "main" java.lang.NoClassDefFoundError: org/bouncycastle/openssl/PasswordFinder
at java.lang.ClassLoader.defineClass1(Native Method)
...
...
UPDATE
I forgot to transfer the bcprov.jar to the
/usr/share/java
folder.
I transferred it. But now, when i running
java -jar /usr/share/java/portecle.jar
,i get:
no main manifest attribute, in /usr/share/java/portecle.jar