Advertisement

01.25.2008 at 05:18AM PST, ID: 23110895
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

Java, JDK 1.4.2_16, Certificate chaining error (keystore, truststore)

Tags: Java, JDK 1.4.2_16
Hi experts

I have generated a web serive stub client using eclipse (just downloaded the newest version)

My problem is that I have to use a https connection, hence I need to install a GlobalSign Certificate into my java Keytool.
I tried to follow the guideline from http://www.globalsign.com/support/code-signing/codesign_sunjava.html
however I cannot se how I can fulfill it since the "CN" parameter including my email is not excepted?

Here is what I done so far:

%java_home%\bin\keytool -genkey -alias codesigncert -keypass changeit -keyalg RSA -keysize 1024 -dname "CN=localhost,O=telmore" -keystore codesignstore -storepass changeit
%java_home%\bin\keytool -certreq -v -alias codesigncert -file codesigncsr.pem -keystore codesignstore
Enter keystore password:  changeit
Enter key password for <codesigncert>changeit

C:\>more codesigncsr.pem
-----BEGIN NEW CERTIFICATE REQUEST-----
MIIBZTCBzwIBADAmMRAwDgYDVQQKEwd0ZWxtb3JlMRIwEAYDVQQDEwlsb2NhbGhvc3QwgZ8wDQYJ
KoZIhvcNAQEBBQADgY0AMIGJAoGBAMkYzu0vrhzNrROwfYFroAPZpBDxBeDVSfr09HZD2dVBe/kD
Hp7CkocGBREH0y3QCDu6stcRMdtGBfGthu9kTrtsgy8vof5S3lKYEOa5weMjQxHFAbL9ss8Ia2Zj
EF0KCUJDzk27AdW01PNmIDs4fXfz76kDWSe3z4hFQvkASRyXAgMBAAGgADANBgkqhkiG9w0BAQQF
AAOBgQCEwuZoaFEliDJdcO83My0tFlqIpBbo9OJCn0kJbQ6yxVb+WJotI4MhnjVdY4S1hIPRbbsf
mWJczmgxFcQzbS7Vn8FddF2euhchIySnSSWVkO8I371iYl601dJ4Vqf9Zb9IQhSeF/iwrJ1P4GEt
gpBBJFXAb8F30M4Ba85k/WKNGw
-----END NEW CERTIFICATE REQUEST-----

C:\>%java_home%\bin\keytool -printcert -v -file codesigncsr.pem

sun.security.pkcs.ParsingException: X509.ObjectIdentifier() -- data isn't an object ID (tag = 48)
        at sun.security.pkcs.PKCS7.parse(PKCS7.java:118)
        at sun.security.pkcs.PKCS7.<init>(PKCS7.java:68)
        at sun.security.provider.X509Factory.parseX509orPKCS7Cert(X509Factory.java:530)
        at sun.security.provider.X509Factory.engineGenerateCertificates(X509Factory.java:407)
        at java.security.cert.CertificateFactory.generateCertificates(CertificateFactory.java:511)
        at sun.security.tools.KeyTool.doPrintCert(KeyTool.java:1021)
        at sun.security.tools.KeyTool.doCommands(KeyTool.java:539)
        at sun.security.tools.KeyTool.run(KeyTool.java:124)
        at sun.security.tools.KeyTool.main(KeyTool.java:118)
Caused by: java.io.IOException: X509.ObjectIdentifier() -- data isn't an object ID (tag = 48)
        at sun.security.util.ObjectIdentifier.<init>(ObjectIdentifier.java:134)
        at sun.security.util.DerInputStream.getOID(DerInputStream.java:250)
        at sun.security.pkcs.ContentInfo.<init>(ContentInfo.java:117)
        at sun.security.pkcs.PKCS7.parse(PKCS7.java:136)
        at sun.security.pkcs.PKCS7.parse(PKCS7.java:115)
        ... 8 more
keytool error: java.lang.Exception: Failed to parse input

When I execute the java program I get the following exception:

nested exception is:
      javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: Certificate chaining error


Please help me with getting the VM to accept the certification (so that I can execute the program ).
Start your free trial to view this solution
Question Stats
Zone: Networking
Question Asked By: mhci_nne
Solution Provided By: mhci_nne
Participating Experts: 1
Solution Grade: A
Views: 185
Translate:
Loading Advertisement...
01.25.2008 at 01:58PM PST, ID: 20746720

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
01.30.2008 at 01:51AM PST, ID: 20775815

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
01.30.2008 at 05:58AM PST, ID: 20776992

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
01.30.2008 at 06:18AM PST, ID: 20777127

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
02.15.2008 at 08:36AM PST, ID: 20903325

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
 
Loading Advertisement...
20080236-EE-VQP-29 / EE_QW_2_20070628