SSL Implementation
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > WebSphere > WebSphere Portal Server > SSL Implementation




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

rothsd is offline     SSL Implementation  
rothsd


View Ip Address Report This Message To A Moderator Edit/Delete Message


Click Here to See the Profile for rothsd Click here to Send rothsd a Private Message Find more posts by rothsd Add rothsd to your buddy list
 
09-16-04 10:36 AM

I have been trying for several days to establish an SSL connection to an LDA
P server from a portlet(servlet).  When the code is run as a stand alone app
lication a connection is established.  But when the code is run on the WebSp
here AppServer there's always the same error : SSL Implementation no availab
le.  From other discussions it seems that there was a problem between the ib
mjsse.jar and the SUN's jsse.jar.  I have tried to use both without success.
  The server's java.security file is set up correctly.  The defaut setting w
as good.  I have the appropriate keystore.  Here's the JNDI code I'm using t
o connect:

try{
Properties props = new Properties();
props.put(javax.naming.Context.PROVIDER_URL,"ldap://some.address.cz:636");
props.put(javax.naming.Context.INITIAL_CONTEXT_FACTORY,
	"com.sun.jndi.ldap.LdapCtxFactory");
props.put(javax.naming.Context.SECURITY_PRINCIPAL, "cn=user,o=ou");
props.put(javax.naming.Context.SECURITY_CREDENTIALS, "password");
props.put(Context.SECURITY_AUTHENTICATION, "simple");
props.put(Context.SECURITY_PROTOCOL, "ssl");
DirContext m_dirContext = new InitialDirContext(props);
}catch(NamingException E){
	System.out.println(E.toString());
}		

Please, any ideas would be great!  I've been struggling with this problem fo
r too long...thanks.

Stefan




[ Post a follow-up to this message ]



rothsd is offline     Re: SSL Implementation  
rothsd


View Ip Address Report This Message To A Moderator Edit/Delete Message


Click Here to See the Profile for rothsd Click here to Send rothsd a Private Message Find more posts by rothsd Add rothsd to your buddy list
 
09-20-04 03:31 PM

Do not include either the jsse.jar or ibmjsse.jar in the WEB-INF/lib folder.
  Particularly the ibmjsse.jar will cause the problem with the default ibmjs
se.jar installed with the default JRE.

The following link also helped:

http://www-1.ibm.com/support/docvie...s=utf-8&lang=en

quote:
Originally posted by rothsd I have been trying for several days to establish an SSL connection to an LDA P server from a portlet(servlet). When the code is run as a stand alone app lication a connection is established. But when the code is run on the WebSp here AppServer there's always the same error : SSL Implementation no availab le. From other discussions it seems that there was a problem between the ib mjsse.jar and the SUN's jsse.jar. I have tried to use both without success. The server's java.security file is set up correctly. The defaut setting w as good. I have the appropriate keystore. Here's the JNDI code I'm using t o connect: try{ Properties props = new Properties(); props.put(javax.naming.Context.PROVIDER_URL,"ldap://some.address.cz:636"); props.put(javax.naming.Context.INITIAL_CONTEXT_FACTORY, "com.sun.jndi.ldap.LdapCtxFactory"); props.put(javax.naming.Context.SECURITY_PRINCIPAL, "cn=user,o=ou"); props.put(javax.naming.Context.SECURITY_CREDENTIALS, "password"); props.put(Context.SECURITY_AUTHENTICATION, "simple"); props.put(Context.SECURITY_PROTOCOL, "ssl"); DirContext m_dirContext = new InitialDirContext(props); }catch(NamingException E){ System.out.println(E.toString()); } Please, any ideas would be great! I've been struggling with this problem fo r too long...thanks. Stefan




[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 01:23 PM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register