The client gets an SSL error. If I use java-1.6.0 the problem goes away. If I used the java.security and nss.cfg from java-1.60 with java-1.7.0 it works fine as well.
This is *not* a problem with java-1.7.0-1.7.0.60 on Fedora 18 or 19. Looking in dist-git we enabled nss for RHEL 6.5:
%global enable_nss 1
That is the only difference I have found between the JREs.
Version-Release number of selected component (if applicable):
I have tried both version of the jdk with no success.
Expected results:
The JSON output from the Candlepin java app. Like I said above if I switch to java-1.6 or use the configs from 1.6 with java-1.7, it works fine.
Created attachment 815006
SSL debug from tomcat6's catalina.out
Description of problem:
Using RHEL 6.5, tomcat6 and java-1.7.0-openjdk, I get the following exception in the catalina.out:
%% Initialized: [Session-1, SSL_NULL_ WITH_NULL_ NULL] ProviderExcepti on: sun.security. pkcs11. wrapper. PKCS11Exception : CKR_DOMAIN_ PARAMS_ INVALID WITH_NULL_ NULL]
matching alias: tomcat
http-8443-1, handling exception: java.security.
%% Invalidated: [Session-1, SSL_NULL_
The client gets an SSL error. If I use java-1.6.0 the problem goes away. If I used the java.security and nss.cfg from java-1.60 with java-1.7.0 it works fine as well.
This is *not* a problem with java-1.7.0-1.7.0.60 on Fedora 18 or 19. Looking in dist-git we enabled nss for RHEL 6.5:
%global enable_nss 1
That is the only difference I have found between the JREs.
Version-Release number of selected component (if applicable):
I have tried both version of the jdk with no success.
java-1. 7.0-openjdk- 1.7.0.40- 2.4.2.5. el6.x86_ 64 7.0-openjdk- 1.7.0.45- 2.4.3.0. el6.x86_ 64 freebl- 3.14.3- 9.el6.x86_ 64 3.15.1- 3.el6.x86_ 64 0.6-2.el6. x86_64 nss-0.13- 1.el6.x86_ 64 1.0.1e- 15.el6. x86_64 askpass- 5.3p1-94. el6.x86_ 64 devel-1. 0.1e-15. el6.x86_ 64 server- 5.3p1-94. el6.x86_ 64 clients- 5.3p1-94. el6.x86_ 64 1-15.el6. x86_64 3.15.1- 15.el6. x86_64 5.3p1-94. el6.x86_ 64 3.14.3- 9.el6.x86_ 64 3.15.1- 15.el6. x86_64
java-1.
nss-softokn-
nss-util-
mod_dnssd-
python-
openssl-
openssh-
openssl-
openssh-
openssh-
nss-3.15.
nss-tools-
openssh-
nss-softokn-
nss-sysinit-
How reproducible:
On my RHEL 6.5 guest with the above rpm versions, I can recreate it at will.
Steps to Reproduce: /localhost: 8443/candlepin/ status")
1. Installed RHEL 6.5
2. Ensure java-1.7.0-openjdk is installed
3. Install Subscription Asset Manager (SAM) 1.3
4. try to connect using rest-client
4a. scl enable ruby193 'irb'
4b. > require 'rest-client'
4c. > RestClient.get("https:/
Actual results:
client gets an error.
OpenSSL: :SSL::SSLError: SSL_connect returned=1 errno=0 state=SSLv2/v3 read server hello A: tlsv1 alert internal error ruby193/ root/usr/ share/ruby/ net/http. rb:800: in `connect'
from /opt/rh/
Tomcat spews out: WITH_NULL_ NULL] ProviderExcepti on: sun.security. pkcs11. wrapper. PKCS11Exception : CKR_DOMAIN_ PARAMS_ INVALID WITH_NULL_ NULL]
%% Initialized: [Session-1, SSL_NULL_
http-8443-1, handling exception: java.security.
%% Invalidated: [Session-1, SSL_NULL_
Expected results:
The JSON output from the Candlepin java app. Like I said above if I switch to java-1.6 or use the configs from 1.6 with java-1.7, it works fine.
Additional info: