I am doing a project at an institution in san angelo, I need some help to build a PKI. Can you all give me some help please? Firstly, I want to use bouncycastle libraries since they would prove useful. I would need to generate a keystore,public/private key and generate certificates programatically for each peer. Next I would need to listen on a port or send out a request for a connection, does it need to be SSL? Next comes the verification and authentication process, I am assuming that both parties trust each other already so we do not need a CA to be directly invovled which sorts of not complicate things. After client verification and authentication, I would need to encrypt and decrypt any data between the two parties.I would like very much to build a CRL. Any ideas on how to begin? If anyone has advice or any code to help me, please do.
X509V3CertificateGenerator v3CertGen = new X509V3CertificateGenerator(); //v3CertGen.setSerialNumber(BigInteger.valueOf(1)); MessageDigest digester; String keyPairStore = "keyKS"; String trustedStore = "trustKS"; KeyStore keyKS= KeyStore.getInstance("jks"); } when i compile this code, i get an error saying
unreported exception java.security.KeyStoreException; must be caught or declared to be thrown KeyStore keyKS= KeyStore.getInstance("jks");
Also the line in comments give me an error that package v3certGen not found...i am a bit confused..can you help me?
Oh the stink of it! Smell my tiny ad!
Two software engineers solve most of the world's problems in one K&R sized book