• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Tim Cooke
  • Jeanne Boyarsky
  • Liutauras Vilda
Sheriffs:
  • Frank Carver
  • Henry Wong
  • Ron McLeod
Saloon Keepers:
  • Tim Moores
  • Frits Walraven
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Piet Souris
  • Himai Minh

Import .cer(public key) into .pfx

 
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Friends,
I generated a keystore file(.jks) which contains both public key and private key, i converted it .pfx file, but this contains only private, now i have to import the public key into .pfx , i am getting the following error. Friends kindly help me. please find the below errordetails:

c:/>keytool -import -v -trustcacerts -alias kiwiservice -file kiwiclient.cer -keyst
ore kiwiservice.pfx -storetype pkcs12
Enter keystore password:********
Owner: CN=CLIENT, OU=YALAMANCHILI_CLIENT, O=YSE, L=VSP, ST=AP, C=IN
Issuer: CN=CLIENT, OU=YALAMANCHILI_CLIENT, O=YSE, L=VSP, ST=AP, C=IN
Serial number: 4b31954e
Valid from: Wed Dec 23 09:28:06 IST 2009 until: Tue Dec 22 09:28:06 IST 2015
Certificate fingerprints:
MD5: C8:C9:89:E2:CA:F9:30:AF:7A:D0:9A:DD:5F:F5:18:78
SHA1: BA:F9:F8:82:DA:54:26:1B:2B:22:18:88:AA:79:D2:E3:D0:13:F1:B9
Signature algorithm name: SHA1withRSA
Version: 3
Trust this certificate? [no]: y
keytool error: java.security.KeyStoreException: TrustedCertEntry not supported
java.security.KeyStoreException: TrustedCertEntry not supported
at com.sun.net.ssl.internal.pkcs12.PKCS12KeyStore.engineSetCertificateEn
try(PKCS12KeyStore.java:620)
at java.security.KeyStore.setCertificateEntry(KeyStore.java:941)
at sun.security.tools.KeyTool.addTrustedCert(KeyTool.java:1954)
at sun.security.tools.KeyTool.doCommands(KeyTool.java:814)
at sun.security.tools.KeyTool.run(KeyTool.java:171)
at sun.security.tools.KeyTool.main(KeyTool.java:165)


kindly help me to import .cer into .pfx file

Thanks in Advance
---------------
Siva
 
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
See here how to do the conversion in one shot:

http://travisspencer.com/blog/2009/10/exporting-keys-from-a-jks-and.html
 
Ranch Hand
Posts: 147
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Yaron Naveh wrote:See here how to do the conversion in one shot:

http://travisspencer.com/blog/2009/10/exporting-keys-from-a-jks-and.html



I have also created .keystore using java keytool now i want to convert it into .pfx format....what should i do for this?
 
moose poop looks like football shaped elk poop. About the size of this tiny ad:
the value of filler advertising in 2021
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic