centos6.5 openjdk https/ssl兼容性错误ECKeyPairGenerator.generateKeyPair
来源:互联网 发布:单片机开发论坛 编辑:程序博客网 时间:2024/06/05 00:40
阿里云centos6.5下使用新版openjdk7(OpenJDK 64-Bit Server VM (build 24.85-b03, mixed mode)) 会碰到一个比较无奈的问题, trust all https get请求在本地oracle jdk 或低些版本的openjdk都没问题, 放到阿里云就可能会报一下错, 本人案例是在微信OAUTH交换采访令牌环时报错.
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:714)
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)
不是这个原因
http://bbs.aliyun.com/read/255711.html?fpage=3
类似的案例
http://jenkins-ci.361315.n4.nabble.com/Using-Java-1-7-and-SSL-self-signed-certs-td4755143.html
https://bugs.launchpad.net/ubuntu/+source/openjdk-7/+bug/989240
ldd /usr/lib/jvm/lib/amd64/libsunec.so 依赖的是libnss, 先升级到最新好像就可以了.
也看了下${jre_home}/lib/security/java.security, 好像可以开启10
# the NSS security provider was not enabled for this build; it can be enabled
# if NSS (libnss3) is available on the machine. The nss.cfg file may need
# editing to reflect the location of the NSS installation.
#security.provider.10=sun.security.pkcs11.SunPKCS11 ${java.home}/lib/security/nss.cfg
oracle jdk应该测试稳定多些, 他可能尽量使用了静态库, 毕竟oracle jdk安装之后是比较大, 而openjdk似乎蛮多是动态库, 但是wget很难下载到oracle jdk, 将就用着吧
- centos6.5 openjdk https/ssl兼容性错误ECKeyPairGenerator.generateKeyPair
- ssl openjdk的坑
- python requests 请求https ssl 错误
- centos6.5+nginx+letsencrypt+ssl
- HTTPS SSL
- SSL (https)
- ssl HTTPS
- ssl && https
- https & SSL
- https/ssl
- SSL,HTTPS
- HTTPS,SSL
- HTTPS SSL
- HTTPS(SSL)
- https ssl
- https ssl
- https,ssl
- centos6.9 编译openJdk源码
- 卷积神经网络(CNN)
- python—解决“Unable to find vcvarsall.bat”错误
- linux 资源
- struts2的自定义拦截器和配置
- TextView+Fragment实现底部导航栏
- centos6.5 openjdk https/ssl兼容性错误ECKeyPairGenerator.generateKeyPair
- 使用一维数组进行简单排序(冒泡法)
- 一些小Bug,技巧以及注意事项
- 计算从1到n整数中K出现的次数
- iOS——UINavigationController
- 项目7.3 计算一周工资
- iOS 之美:iOS Delegate 使用五步曲
- noip2005 等价表达式 (判断表达式是否相等,对 mod 取模)
- Ubuntu12.04安装Apache2+PHP5+MySql