Guest User

Untitled

a guest
Apr 4th, 2013
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.88 KB | None | 0 0
  1.  
  2. <%
  3. String defaultservercode = "010100000161";
  4. String status = "";
  5. String chall;
  6. wClient wc;
  7. if (session.getServletContext().getAttribute("wClient") == null) {
  8. wc = new wClient("127.0.0.1", 8388, Config.getValue("BASEPATH") + "private/localhost.p12", "yourpassphrase-here",
  9. Config.getValue("BASEPATH") + "private/CACertStore", "changeit");
  10. // NOTE: The passphrase above "changeit" is the default passphrase for the CA trust store as delivered
  11. // by Sun with Java. If you change this value you will also need to change the passphrase used to
  12. // encrypt the CACertStore file. You must change both if you change either.
  13. session.getServletContext().setAttribute("wClient", wc);
  14. } else {
  15. wc = (wClient) session.getServletContext().getAttribute("wClient");
  16. }
  17. if (wc.isConnected()) {
  18.  
  19. %>
Advertisement
Add Comment
Please, Sign In to add comment