I still get the same error. here is the servlet code that I have included for your
reference. I am still getting the error
error: java.io.FileNotFoundException: c:\ycertificate.cer (The system cannot find the
path specified)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.<init>(Unknown Source)
at java.io.FileInputStream.<init>(Unknown Source)
at crysec.X509.<init>(X509.java:64)
socket.java
-------------------
include ....
include ....
public void doGet(HttpServletRequest request,
HttpServletResponse response)
throws IOException, ServletException
{
response.setContentType("text/html");
PrintWriter out = response.getWriter();
out.println("<html>");
out.println("<body>");
out.println("<head>");
String title = "FirstTech";
out.println("<title>" + title + "</title>");
out.println("</head>");
out.println("<body bgcolor=\"white\">");
out.println("<h3>" + title + "</h3>");
String server = "64.75.43.179";
String port ="443";
String cobrand_login = "12";
String cobrand_pass = "12";
String user_login = "1234";
String user_pass = "xxxxxx";
int porti = Integer.parseInt(port);
out.println("<b>Parameters</b></br>");
out.println("server: " + server + "<br>");
out.println("port: " + porti + "<br>");
out.println("cobrand_login: " + cobrand_login + "<br>");
out.println("cobrand_pass: " + cobrand_pass + "<br>");
out.println("user_login: " + user_login + "<br>");
out.println("user_pass: " + user_pass + "<br>");
YSSLavaConnection connection = new YSSLavaConnection();
SSLParams params = new SSLParams();
short[] cs = { 0x3 , 0x4 };
params.setClientCipherSuites(cs);
params.setDebug(true);
out.println("params" + ":" + params.toString() + "<br>");
SSLKeyStoreVerifier v = new SSLKeyStoreVerifier();
out.println("SSLKeyStoreVerifier" + ":" + v.toString() + "<br>");
connection.setSSLParams(params);
out.println("<br><b>SDK Output</b></br>");
IYodlee yodlee = Yodlee.getYodleeInstance(server, porti, connection);
out.println("Created yodlee" + yodlee.toString() + "<br>");
try {
out.println("inside try block <br>");
v.addTrustedCACert(new X509(new File("C:\\ycertificate.cer")));
params.setCertVerifier(v);
out.println("params:" + params.toString() + "<br>"); } catch
(IOException e) {
out.println("inside catch block <br>");
e.printStackTrace();
}
IPartner partner = yodlee.getPartnerInstance(cobrand_login);
out.println("Created partner :" + partner.toString() + "<br>");
try {
Session sess = partner.login(cobrand_pass);
out.println("Partner session " + sess.toString() + "<br>");
if (sess == null)
{
IUser user = partner.getUserInstance(user_login);
String ticket = null;
try {
ticket = user.getISOTicket(user_pass);
out.println("Got getISOTicket()" + ticket + "\n ");
out.println("User Logined<br>");
}
catch (Exception e)
{
out.println("User login failed<br>");
//throw e;
}
out.println("ISO Ticket " + ticket + "<br>");
out.println("<a
href=\"https://"+server+":"+port+"/m/iso_suw?yec="+ticket+"\" target=\"_blank\">Login
Using ISO Ticket</a><br>");
}
}
catch (com.yodlee.datafeed.util.YException e)
{
e.printStackTrace();
out.println( "<BR><h1>ERROR</h1>" );
out.println("<pre>" + e.toString() + "</pre>");
}
out.println("</body>");
out.println("</html>");
}
public void doPost(HttpServletRequest request,
HttpServletResponse response)
throws IOException, ServletException
{
doGet(request, response);
}
}
any thoughts on this.
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:
http://archives.java.sun.com/jsp-interest.html
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.jsp
http://www.jguru.com/faq/index.jsp
http://www.jspinsider.com