Troubleshot for SSL issue for Weblogic server

来源:互联网 发布:淘宝公益宝贝好处 编辑:程序博客网 时间:2024/05/19 17:56

1> Signature verification failed because RSA key public exponent [3] is too small
 
RSA Keys with Public Exponent results in faulty signature verification on WLS. Having so low exponent is considered as security vulnerability; hence keys with low exponents are not supported by WLS. However if we need to bypass this behavior, we can use the following flag
 
-Dweblogic.security.SSL.allowSmallRSAExponent=true
 
2> java.security.InvalidKeyException: Illegal key size or default parameters
 
This exception is encountered while using strong encryption such as AES256. We can overcome this by downloading the unrestricted jurisdiction policy files from the JVM vendor site and place it under jre/lib/security folder.
 
3> NEW ALERT with Severity: FATAL, Type: 70
 
We get this alert when the the party communication with Weblogic Server is using a different version of SSL. We need to check the Handshake Message for the version of SSL used.
 
Using this flag to specify the version of SSL at WLS can be helpful.
 
-Dweblogic.security.SSL.protocolVersion=SSL3
 
NEW ALERT=with Severity: FATAL, Type: 42
 
This alert means that the certificate presented to WLS is not trusted. It can be resolved by importing the certificate into the trust store of Weblogic Server.
 
4> HANDSHAKE_FAILURE alert received from localhost – 127.0.0.1.
 
Most of the time its because of HOST NAME VERIFICATION.
 Ignore Host Name Verification by setting this flag for Admin & Managed Server
 -Dweblogic.security.SSL.ignoreHostnameVerification=true
 
And this in the startNodeManager.cmd
 -Dweblogic.nodemanager.sslHostNameVerificationEnabled=false
 
Sometime when the root certificate does not meet the basic constraint, i.e. even when the issuer and the owner is the same, the criticality is not true
 
ObjectId: 2.5.29.19 Criticality=false
 BasicConstraints:[
 CA:true
 PathLen:0
 ]
 
To allow WLS to accept such certificates we need to pass on this flag
 
-Dweblogic.security.SSL.enforceConstraints=off
 
5> java.security.cert.CertificateParsingException: PKIX: Unsupported OID in the AlgorithmIdentifier object: 1.2.840.113549.1.1.11
 
The root problem is the Certicom SSL does not support SHA256 algorithm, which is required with the trusted certificates of “ttelesecglobalrootclass2ca” and “ttelesecglobalrootclass3ca”
 
A fix is included in JDK 1.6.0_13 wherein WLS just ignores these certificates.
 
6> Trust failure (68): CERT_CHAIN_INCOMPLETE
 
We encounter this issue when the Weblogic Server is not able to verify the chain of certificates presented to it. From the debug message we can check the certificates and check their order in the chain. We can also check the trust store for the root and intermediate certificates on the signing authority of the certificates.
 We can use this to validate the certificate chain using
 
java utils.ValidateCertChain -jks alias storefilename [storePass]
 
7> java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty
 
We need to specify the trustore as a JAVA OPTION
 -Djavax.net.ssl.trustStore=samplecacerts
 Or specify it as a System Property in the code
 System.setProperty(“javax.net.ssl.trustStore”,”samplecacerts”);
 System.setProperty(“javax.net.ssl.trustStorePassword”,”changeit”);
 
 
 
8> PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
 
Pass the keystore in the java options.
 
-Dssl.debug=true -Dweblogic.security.TrustKeyStore=CustomTrust -Dweblogic.security.CustomTrustKeyStoreFileName=faisal_trust.jks  -Djavax.net.ssl.keyStore=faisal.jks -Djavax.net.ssl.keyStorePassword=password -Dweblogic.security.SSL.ignoreHostnameVerification=true -Dweblogic.security.SSL.ignoreHostnameVerification=true -Djava.protocol.handler.pkgs=weblogic.net
 

9> java.security.InvalidKeyException: Illegal key size
 
Try adding the following jvm option. This will make Weblogic Server FIPS 140-2 compliant.

-Dweblogic.security.SSL.nojce=true

0 0
原创粉丝点击
热门问题 老师的惩罚 人脸识别 我在镇武司摸鱼那些年 重生之率土为王 我在大康的咸鱼生活 盘龙之生命进化 天生仙种 凡人之先天五行 春回大明朝 姑娘不必设防,我是瞎子 微商退货后不退款怎么办 有赞买东西付款没发货怎么办 赞礼号掉了东西怎么办 万达贷系统维护还不了款怎么办 qq文件发不出去怎么办 1688分销没有传淘宝怎么办 京东的货运代理怎么办 天天练推广期没了怎么办 微信自动建群怎么办 刚刚不小心扫了无痕爆客怎么办 苹果6升级卡死怎么办 随行付换手机了怎么办 融e联账号冻结怎么办 58同城高危账户怎么办 网购迟迟不发货怎么办 优酷不能投屏了怎么办 爱尚街借款不还怎么办 小米商城买东西没收到货怎么办 微信投票地区限制怎么办 微信退款未到账怎么办 微信钱包锁忘了怎么办 xp系统管理员密码忘了怎么办 沃尔沃menu键没反应怎么办 微信转账受限制怎么办 被米虎网骗了手里还有合同怎么办 学校要求上传论文pdf格式怎么办 备份的Wifi密码查看乱码怎么办 u盘密码忘了怎么办 京东会员号被黑怎么办 淘宝企业店铺三证不合一怎么办 淘宝企业店铺营业执照注销了怎么办 不想开淘宝企业店铺了怎么办 id图片跨页排版怎么办 合约机不想要了怎么办? 移动A3手机老卡怎么办 中国移动手机a3很卡怎么办 移动手机a4好卡怎么办 红米手机卡顿反应慢怎么办 红米3s网速慢怎么办 红米4a内存不足怎么办 红米3s手机发热怎么办