• Post Reply Bookmark Topic Watch Topic
  • New Topic

DER input, Integer tag error - with a pkcs12 keystore  RSS feed

 
francesco rossi
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 3275
5
Eclipse IDE Java Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!