美文网首页
java.security.ProviderException:

java.security.ProviderException:

作者: Owater | 来源:发表于2016-09-23 16:57 被阅读523次

问题描述:

Caused by: java.security.ProviderException: java.security.KeyException at sun.security.ec.ECKeyPairGenerator.generateKeyPair(ECKeyPairGenerator.java:146) at java.security.KeyPairGenerator$Delegate.generateKeyPair(KeyPairGenerator.java:704) at sun.security.ssl.ECDHCrypt.<init>(ECDHCrypt.java:78) at sun.security.ssl.ClientHandshaker.serverKeyExchange(ClientHandshaker.java:717) at sun.security.ssl.ClientHandshaker.processMessage(ClientHandshaker.java:278) at sun.security.ssl.Handshaker.processLoop(Handshaker.java:913) at sun.security.ssl.Handshaker.process_record(Handshaker.java:849) at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:1035) at sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1344) at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1371) ... 52 moreCaused by: java.security.KeyException at sun.security.ec.ECKeyPairGenerator.generateECKeyPair(Native Method) at sun.security.ec.ECKeyPairGenerator.generateKeyPair(ECKeyPairGenerator.java:126) ... 61 more  

用https请求微信支付api,本人在本地测试没有问题,就是放到Centos服务器上之后就不行

网上解决方案

使用HTTPS携带微信的p12文件做请求,我试了好多种方案之后还是不行

解决方案

sudo yum upgrade nss

NSS是Linux的网络安全服务

相关文章

  • java.security.ProviderException:

    问题描述: 用https请求微信支付api,本人在本地测试没有问题,就是放到Centos服务器上之后就不行 网上解...

网友评论

      本文标题:java.security.ProviderException:

      本文链接:https://www.haomeiwen.com/subject/zlwtyttx.html