aspose file tools*
The moose likes Other Open Source Projects and the fly likes DER input, Integer tag error  - with a pkcs12 keystore Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Products » Other Open Source Projects
Bookmark "DER input, Integer tag error  - with a pkcs12 keystore" Watch "DER input, Integer tag error  - with a pkcs12 keystore" New topic
Author

DER input, Integer tag error - with a pkcs12 keystore

francesco rossi
Greenhorn

Joined: Apr 18, 2009
Posts: 1
Hi everyone,
I'm trying to write a Jradius client for a Radius authentication.

When my code runs, it returns the exception "java.io.IOException: DER input, Integer tag error".

I think the problem is with the certificate .p12 I created with keytool with this command line:
keytool -genkey -v -alias aprivatekey -keyalg RSA -keystore mykeystore.p12 -storepass changeit -storetype pkcs12 -provider org.bouncycastle.jce.provider.BouncyCastleProvider

I have no idea on how to solve it...help!

thank you
Martijn Verburg
author
Bartender

Joined: Jun 24, 2003
Posts: 3274
    
    5

Hi there and welcome to Javaranch!

Can you show us the snippet of code that is throwing the exception and the full exception trace as well?


Cheers, Martijn - Blog,
Twitter, PCGen, Ikasan, My The Well-Grounded Java Developer book!,
My start-up.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: DER input, Integer tag error - with a pkcs12 keystore