收到致命警报:通过SSLHandshakeException发出握手失败
error: javax.net.ssl.SSLHandshakeException: Received fatal alert: handshake_failure
//Getting external IP from host URL whatismyip = new URL("http://automation.whatismyip.com/n09230945.asp"); BufferedReader inIP = new BufferedReader(new InputStreamReader(whatismyip.openStream())); String IPStr = inIP.readLine(); //IP as a String Merchant merchant; System.out.println("amount: " + amount + ", currency: " + currency + ", clientIp: " + IPStr + ", description: " + description); try { merchant = new Merchant(context.getRealPath("/") + "merchant.properties"); } catch (ConfigurationException e) { Logger.getLogger(HomeAction.class.getName()).log(Level.INFO, "message", e); System.err.println("error: " + e.getMessage()); return ERROR; } String result = merchant.sendTransData(amount, currency, IPStr, description); System.out.println("result: " + result); return SUCCESS;
bank.server.url=https://-servernameandport-/https.cipher=-cipher-keystore.file=-key-.jks keystore.type=JKS keystore.password=-password-ecomm.server.version=2.0encoding.source=UTF-8encoding.native=UTF-8
慕虎7371278
相关分类