Does anybody knows how can I import a pfx certificate into a jks keystore? I've been looking at the IKeyman tool and the importkey command but not sure about it:
gsk7cmd -cert -import -file cert.pfx -pw cerpfxpassword -label ssl-server -type pkcs12 -new_label ssl-server-new-label -target my.keystore -target_pw mypasswd -target_type JKS -pfx
thanks in advance!
gllambi 270001B9HV2 Posts
Re: Import pfx into my keystore2011-04-15T15:36:26ZThis is the accepted answer. This is the accepted answer.
- SystemAdmin 110000D4XK
I tried using jetty library but I had the following error:
Exception in thread "main" java.io.IOException: Error in loading the keystore: Private key decryption error: (java.security.InvalidKeyException: Illegal key size)
at com.ibm.crypto.provider.PKCS12KeyStore.engineLoad(Unknown Source)
I found that this is because of the restricted security policies:
So, I downloaded the policy files, but the error persists. This is my java version:
java version "1.5.0"
Java(TM) 2 Runtime Environment, Standard Edition (build pxa64dev-20061002a (SR3) )
IBM J9 VM (build 2.3, J2RE 1.5.0 IBM J9 2.3 Linux amd64-64 j9vmxa6423-20061001 (JIT enabled)
J9VM - 20060915_08260_LHdSMr
JIT - 20060908_1811_r8
GC - 20060906_AA)
JCL - 20061002
I found that the files are for jdk 1.4+ is this ok or there other special for jdk 5?
Thanks in advance!
zabalex 270004P7ES1 Post
Re: Import pfx into my keystore2011-10-19T23:35:04ZThis is the accepted answer. This is the accepted answer.
- gllambi 270001B9HV
Have you tried upgrading your java version to 6.0 and/or jdk to 1.6?
I don't know if that would have any difference, but as far as I know, one of the big components associated with security was updated between versions of 5 & 6.
If you tried and it works or doesn't work, please let me know.
Best of luck,
SEO San Francisco | Psychiatrist San Jose