• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Problem while importing a cert

 
Ranch Hand
Posts: 70
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi - I am trying to access a thried party application through my web-portal. To this effect, I have created a new key-pair and also generated a brand new cert which is residing in a keystore. However, while accessing the application, the cert is nor loaded completely and the following exceptions are thrown (starting with the null pointer):

Algorithm: [SHA1withRSA]
Signature:
0000: 0e 52 0e c8 75 c9 90 2a d2 20 b4 6d 06 1f df 29 .R..u......m....
0010: db a7 09 08 bd 81 23 e4 7b 77 a5 a8 c1 5d 59 45 .........w....YE
0020: 66 57 03 e2 e8 d4 ff 72 2c c6 77 b3 ad a4 e0 39 fW.....r..w....9
0030: c4 7a e1 24 4c ff 38 c7 c0 08 84 ef 37 a5 c8 bf .z..L.8.....7...
0040: 2b f8 67 03 f6 46 f8 31 fb d7 4b c5 8e 24 66 4d ..g..F.1..K...fM
0050: 05 37 a2 c2 d9 70 c3 53 dd 3d 1d 5d 50 b3 f9 f3 .7...p.S....P...
0060: 45 77 89 9a fd 27 99 d1 c6 96 7c c2 99 d1 b2 1d Ew..............
0070: d0 a5 15 34 03 36 c4 ad 3b 80 47 ca f0 2b e4 6d ...4.6....G....m

]
java.lang.NullPointerException
[3/3/08 17:41:20:859 EST] 43ac3934 SystemErr R at org.apache.xml.security.algorithms.implementations.SignatureBaseRSA.engineInitSign(Unknown Source)
[3/3/08 17:41:20:859 EST] 43ac3934 SystemErr R at org.apache.xml.security.algorithms.SignatureAlgorithm.initSign(Unknown Source)
[3/3/08 17:41:20:859 EST] 43ac3934 SystemErr R at org.apache.xml.security.signature.XMLSignature.sign(Unknown Source)
[3/3/08 17:41:20:859 EST] 43ac3934 SystemErr R at org.sourceid.sso.util.SAMLUtils.sign(SAMLUtils.java:105)
.
.

Can you please tell me where excatly the problem lies with the cert loading?

Thanks -
[ March 03, 2008: Message edited by: Nitin Pathak ]
 
Nitin Pathak
Ranch Hand
Posts: 70
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Nevermind! Private key was null as alias name I was picking up was incorrect!

Originally posted by Nitin Pathak:
Hi - I am trying to access a thried party application through my web-portal. To this effect, I have created a new key-pair and also generated a brand new cert which is residing in a keystore. However, while accessing the application, the cert is nor loaded completely and the following exceptions are thrown (starting with the null pointer):

Algorithm: [SHA1withRSA]
Signature:
0000: 0e 52 0e c8 75 c9 90 2a d2 20 b4 6d 06 1f df 29 .R..u......m....
0010: db a7 09 08 bd 81 23 e4 7b 77 a5 a8 c1 5d 59 45 .........w....YE
0020: 66 57 03 e2 e8 d4 ff 72 2c c6 77 b3 ad a4 e0 39 fW.....r..w....9
0030: c4 7a e1 24 4c ff 38 c7 c0 08 84 ef 37 a5 c8 bf .z..L.8.....7...
0040: 2b f8 67 03 f6 46 f8 31 fb d7 4b c5 8e 24 66 4d ..g..F.1..K...fM
0050: 05 37 a2 c2 d9 70 c3 53 dd 3d 1d 5d 50 b3 f9 f3 .7...p.S....P...
0060: 45 77 89 9a fd 27 99 d1 c6 96 7c c2 99 d1 b2 1d Ew..............
0070: d0 a5 15 34 03 36 c4 ad 3b 80 47 ca f0 2b e4 6d ...4.6....G....m

]
java.lang.NullPointerException
[3/3/08 17:41:20:859 EST] 43ac3934 SystemErr R at org.apache.xml.security.algorithms.implementations.SignatureBaseRSA.engineInitSign(Unknown Source)
[3/3/08 17:41:20:859 EST] 43ac3934 SystemErr R at org.apache.xml.security.algorithms.SignatureAlgorithm.initSign(Unknown Source)
[3/3/08 17:41:20:859 EST] 43ac3934 SystemErr R at org.apache.xml.security.signature.XMLSignature.sign(Unknown Source)
[3/3/08 17:41:20:859 EST] 43ac3934 SystemErr R at org.sourceid.sso.util.SAMLUtils.sign(SAMLUtils.java:105)
.
.

Can you please tell me where excatly the problem lies with the cert loading?

Thanks -

[ March 03, 2008: Message edited by: Nitin Pathak ]

 
reply
    Bookmark Topic Watch Topic
  • New Topic