默认情况下,服务器使用Certicom的SSL实现,不支持SHA256算法。
WLS 10.3.5可以使用JSSE SSL实现来支持SHA256算法。
配置使用方法:
1. Set the WLS domain
$ . ./setDomainEnv.sh
Note the initial dot and space before the pathname for the command. This syntax is required on UNIX systems for the environment variables set in the script to be exported to the overall environment.
2. Generate the key:
$ keytool -genkey -alias selfsignedcert -keyalg RSA -sigalg SHA256withRSA -keypass privatepassword -keystore identity.jks -storepass password -validity 365
What is your first and last name?
[Unknown]: jerczey-desktop.cl.oracle.com
What is the name of your organizational unit?
[Unknown]: a
What is the name of your organization?
[Unknown]: e
What is the name of your City or Locality?
[Unknown]: i
What is the name of your State or Province?
[Unknown]: o
What is the two-letter country code for this unit?
[Unknown]: U
Is CN=jerczey-desktop.cl.oracle.com, OU=a, O=e, L=i, ST=o, C=U correct?
[no]: yes
3. Export the root certificate:
$ keytool -export -alias selfsignedcert -sigalg SHA256withRSA -file root.cer -keystore identity.jks
Enter keystore password:
Certificate stored in file <root.cer>
4. Import the root certificate to the trust store:
$ keytool -import -alias selfsignedcert -sigalg SHA256withRSA -trustcacerts -file root.cer -keystore trust.jks
Enter keystore password:
Re-enter new password:
Owner: CN=jerczey-desktop.cl.oracle.com, OU=a, O=e, L=i, ST=o, C=U
Issuer: CN=jerczey-desktop.cl.oracle.com, OU=a, O=e, L=i, ST=o, C=U
Serial number: 4f17459a
Valid from: Wed Jan 18 19:20:10 CLST 2012 until: Thu Jan 17 19:20:10 CLST 2013
Certificate fingerprints:
MD5: 7F:08:FA:DE:CD:D5:C3:D3:83:ED:B8:4F:F2:DA:4E:A1
SHA1: 87:E4:7C:B8:D7:1A:90:53:FE:1B:70:B6:32:22:5B:83:29:81:53:4B
Signature algorithm name: SHA256withRSA
Version: 3
Trust this certificate? [no]: yes
Certificate was added to keystore
5. To check the contents of the keystore:
keytool -v -list -keystore identity.jks
Enter keystore password:
***************** WARNING WARNING WARNING *****************
* The integrity of the information stored in your keystore *
* has NOT been verified! In order to verify its integrity, *
* you must provide your keystore password. *
***************** WARNING WARNING WARNING *****************
Keystore type: JKS
Keystore provider: SUN
Your keystore contains 1 entry
Alias name: selfsignedcert
Creation date: Jan 18, 2012
Entry type: PrivateKeyEntry
Certificate chain length: 1
Certificate[1]:
Owner: CN=jerczey-desktop.cl.oracle.com, OU=a, O=e, L=i, ST=o, C=U
Issuer: CN=jerczey-desktop.cl.oracle.com, OU=a, O=e, L=i, ST=o, C=U
Serial number: 4f17459a
Valid from: Wed Jan 18 19:20:10 CLST 2012 until: Thu Jan 17 19:20:10 CLST 2013
Certificate fingerprints:
MD5: 7F:08:FA:DE:CD:D5:C3:D3:83:ED:B8:4F:F2:DA:4E:A1
SHA1: 87:E4:7C:B8:D7:1A:90:53:FE:1B:70:B6:32:22:5B:83:29:81:53:4B
Signature algorithm name: SHA256withRSA
Version: 3
*******************************************
*******************************************
6. In some cases, this parameter is needed in the server start up parameters.
-Dweblogic.ssl.JSSEEnabled=true
Otherwise, enable it from the Server configuration -> SSL -> Use JSSE checkbox.
该贴被jinbiao编辑于2015-7-16 11:21:26