int keysize = info.getKeySize();
   public void init(CA ca) throws Exception{   	 m_log.debug("OCSPCAService : init ");	 // lookup keystore passwords      	 InitialContext ictx = new InitialContext();	 String keystorepass = (String) ictx.lookup("java:comp/env/OCSPKeyStorePass");      	 if (keystorepass == null)	   throw new IllegalArgumentException("Missing OCSPKeyPass property.");        	 String privatekeypass = (String) ictx.lookup("java:comp/env/privateOCSPKeyPass");	 char[] pkpass = null;	 if ((privatekeypass).equals("null"))	   pkpass = null;	 else	   pkpass = privatekeypass.toCharArray();              	  // Currently only RSA keys are supported	 OCSPCAServiceInfo info = (OCSPCAServiceInfo) getExtendedCAServiceInfo();                         	 // Create OSCP KeyStore	         int keysize = info.getKeySize();  	 KeyStore keystore = KeyStore.getInstance("PKCS12", "BC");	 keystore.load(null, null);                                    	 KeyPair ocspkeys = KeyTools.genKeys(info.getKeySize());	   	  	 Certificate ocspcertificate =	  ca.generateCertificate(new UserAuthData("NOUSERNAME", 	                                          											info.getSubjectDN(),											0, 											info.getSubjectAltName(),											"NOEMAIL",											0,0)						   , ocspkeys.getPublic(),						   -1, // KeyUsage						   ca.getValidity(), 						   new OCSPSignerCertificateProfile());	  	 ocspcertificatechain = new ArrayList();	 ocspcertificatechain.add(ocspcertificate);	 ocspcertificatechain.addAll(ca.getCertificateChain());	 this.ocspsigningkey = ocspkeys.getPrivate(); 	  	 	  	  	  	       keystore.setKeyEntry(PRIVATESIGNKEYALIAS,ocspkeys.getPrivate(),pkpass,(Certificate[]) ocspcertificatechain.toArray(new Certificate[ocspcertificatechain.size()]));                   java.io.ByteArrayOutputStream baos = new java.io.ByteArrayOutputStream();     keystore.store(baos, keystorepass.toCharArray());     data.put(OCSPKEYSTORE, new String(Base64.encode(baos.toByteArray())));           // Store OCSP KeyStore      	 setStatus(info.getStatus());	 this.info = new OCSPCAServiceInfo(info.getStatus(),									  (String) data.get(SUBJECTDN),									  (String) data.get(SUBJECTALTNAME), 									  ((Integer) data.get(KEYSIZE)).intValue(), 									  (String) data.get(KEYALGORITHM),	                                   ocspcertificatechain);         }   