Win a flower (🌹) or copy of Real-World Software Development: A Project-Driven Guide to Fundamentals in Java (📚) this week in the Agile and Other Processes forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Liutauras Vilda
  • Knute Snortum
  • Bear Bibeault
master stewards:
  • Devaka Cooray
  • Jeanne Boyarsky
  • Junilu Lacar
garden masters:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
  • salvin francis
gardeners:
  • Tim Holloway
  • Piet Souris
  • Frits Walraven

Re:Keystore Exception

 
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
import java.security.*;
import java.security.cert.Certificate;
import java.security.cert.*;
import java.security.spec.*;
import javax.net.ssl.*;
import java.io.*;
import java.util.*;
import java.math.*;
import org.bouncycastle.jce.X509V3CertificateGenerator;
import org.bouncycastle.jce.X509Principal;
import org.bouncycastle.jce.provider.BouncyCastleProvider;

public class Certify{
X509V3CertificateGenerator v3CertGen = new X509V3CertificateGenerator();
MessageDigest digester;
String keyPairStore = "keyPairKS";
String trustedStore = "trustedKS";
KeyStore keyPairKS = KeyStore.getInstance("JKS"); ....-> This line gives
me an exception....

I do not understand why. I get the following:
java.security.KeyStoreException; not declared or thrown

what does this mean??
 
master steward
Posts: 4313
Android IntelliJ IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm moving this to the Security forum. Please reply there.
Thanks!
 
Every plan is a little cooler if you have a blimp. And a tiny ad.
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!