Errror during SSL connection with LDAP using JNDI APIs

Hello,
I have established a client and server certificates cert.arm for LDAP server and client. On client i have created a client.kdb file and on server server.kdb file both containing cert.arm. whwn i give a request
C:\Program Files\IBM\LDAP\bin>ldapsearch -b "o=ibm,c=us" -h 9.182.174.71 -p 636 -D cn=roo
-w root1 -Z -K "C:\Program Files\ibm\ldap\etc\client.kdb" -P client -s sub cn=s* cn sn
it gave me proper results
but using a JNDI API where i specify
Hashtable env = new Hashtable(11);
     env.put(Context.INITIAL_CONTEXT_FACTORY,
     "com.sun.jndi.ldap.LdapCtxFactory");
     // Specify LDAPS URL
     env.put(Context.PROVIDER_URL, "ldap://"+"9.182.174.71:636");
     // Authenticate as S. User and password "mysecret"
     env.put(Context.SECURITY_PROTOCOL, "ssl");
     env.put(Context.SECURITY_AUTHENTICATION, "simple");
     env.put(Context.SECURITY_PRINCIPAL, "cn=root1");
     env.put(Context.SECURITY_CREDENTIALS, "root1");
DirContext ctx = new InitialDirContext(env);
SearchControls constraintssc=new SearchControls();
constraintssc.setSearchScope(SearchControls.SUBTREE_SCOPE);
                         // performing the search
NamingEnumeration results=ctx.search("o=ibm,c=us","cn=s*",constraintssc);
////etc.........
Its gives me an exception saying that
javax.naming.CommunicationException: simple bind failed: 9.182.174.71:636. Root
exception is javax.net.ssl.SSLHandshakeException: Couldn't find trusted certificate
Could any body help me out on this
Thank You

You are attempting to authenticate via an SSL connection to port 636.
The message 'couldn't find trusted certificate' means that your client doesn't trust the certificate it has received from the LDAP server.
In order to establish that trust, you must export a certificate file from the LDAP server, then use Java's keytool.exe to create a keystore file using that certificate. Then your client code must reference that keystore file that you've created.
So essentially, you have to provide your program the LDAP server's credentials. "If the server's certificate looks like this, then you can trust it."
After your program trusts the certificate it receives from the server at runtime, your connection will authenticate.

Similar Messages

  • Using secure tranport for making ssl connection with server using iPhone

    HI all,
    I need to estabilish a secured connection using tcp with sslv3 to the server. I tried using
    [inputStream setProperty:NSStreamSocketSecurityLevelKey forKey:NSStreamSocketSecurityLevelSSLv3];
    [outputStream setProperty:NSStreamSocketSecurityLevelKey forKey:NSStreamSocketSecurityLevelSSLv3];
    I have explained the problem in detail in the following link
    http://www.iphonedevsdk.com/forum/iphone-sdk-development/25721-creating-ssl-conn ection-using-sockets.html
    But it makes only a tcp connection wth the server and the server sends the "Connection Reset by peer " error.
    So I have planned to use Secure Tranport. But i didnt find a suitable sample code in the internet. I found a sample in apple 's docs. But thats too confusing. Any sample code available for making tcp with ssl connection with the server ????
    Regards,
    Mohammed Sadiq.

    You must select if you use certificates for the SSL.
    If you are not, here is an example
    // server is the ip address for the server and hostport the port to use
    CFReadStreamRef readStream = NULL;
    CFWriteStreamRef writeStream = NULL;
    CFStreamCreatePairWithSocketToHost(kCFAllocatorDefault, (CFStringRef ) server, hostport, &readStream, &writeStream);
    if (readStream && writeStream) {
    CFReadStreamSetProperty(readStream, kCFStreamPropertyShouldCloseNativeSocket , kCFBooleanTrue);
    CFWriteStreamSetProperty(writeStream, kCFStreamPropertyShouldCloseNativeSocket, kCFBooleanTrue);
    iStream = (NSInputStream *)readStream;
    [iStream retain];
    [iStream setDelegate:self];
    oStream = (NSOutputStream *)writeStream;
    [oStream retain];
    [oStream setDelegate:self];
    if (Iwill_use_ssltoday == true)
    int res1 = [iStream setProperty:NSStreamSocketSecurityLevelNegotiatedSSL forKey:NSStreamSocketSecurityLevelKey];
    int res2 = [oStream setProperty:NSStreamSocketSecurityLevelNegotiatedSSL forKey:NSStreamSocketSecurityLevelKey];
    NSLog(@"SEC TEST %d %d",res1,res2);
    NSDictionary *settings = [[NSDictionary alloc] initWithObjectsAndKeys:
    [NSNumber numberWithBool:YES], kCFStreamSSLAllowsExpiredCertificates,
    [NSNumber numberWithBool:YES], kCFStreamSSLAllowsAnyRoot,
    [NSNumber numberWithBool:NO], kCFStreamSSLValidatesCertificateChain,
    kCFNull,kCFStreamSSLPeerName,
    // kCFStreamSocketSecurityLevelTLSv1, kCFStreamSSLLevel,
    nil];
    CFReadStreamSetProperty((CFReadStreamRef)iStream, kCFStreamPropertySSLSettings, (CFTypeRef)settings);
    CFWriteStreamSetProperty((CFWriteStreamRef)oStream, kCFStreamPropertySSLSettings, (CFTypeRef)settings);
    [iStream scheduleInRunLoop:[NSRunLoop currentRunLoop] forMode:NSDefaultRunLoopMode];
    [iStream open];
    [oStream scheduleInRunLoop:[NSRunLoop currentRunLoop] forMode:NSDefaultRunLoopMode];
    [oStream open];
    if (readStream)
    CFRelease(readStream);
    if (writeStream)
    CFRelease(writeStream);

  • Connect to LDAP use JNDI SSL

    Hi all:
    I want to connect to a LDAP use SSL, my code is like following.
         Hashtable env = new Hashtable();
                   String ADuid = "user";
                   String ADpwd = "pwd";
                   env.put(Context.INITIAL_CONTEXT_FACTORY,
                        "com.sun.jndi.ldap.LdapCtxFactory");
                   env.put(Context.SECURITY_AUTHENTICATION,"simple");
                   env.put(Context.SECURITY_PRINCIPAL,ADuid);
                   env.put(Context.SECURITY_CREDENTIALS,ADpwd);
                   env.put(Context.SECURITY_PROTOCOL,"ssl");
                   env.put(Context.PROVIDER_URL, "ldaps://server address:636");
                   try {
                        System.setProperty("javax.net.ssl.trustStore","truststore");
                        System.setProperty("javax.net.ssl.trustStorePassword", 123456");
                        // Create the initial directory context
                        DirContext ctx = new InitialDirContext(env);
                   }catch(Exception ex){
                        wdComponentAPI.getComponent().getMessageManager().reportException(store + ex.toString(),false);
    These code is tested sucessful on java application. But can't work on webdynpro program, it reports an Exception "javax.naming.CommunicationException: simple bind failed Root exception is javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: No trusted certificate found] "
    I've tryed to put the truststore on different DIR, but still not work. Does the method System.setProperty available on Web server? How to implement SSL certification?

    Hi Wayne Lou,
    I have same issue in connecting LDAP over SSL port 636 in Web Dynpro JAVA code.
    could you please share your solution code or guide me to solve my issue.
    Regards,
    Lakshmi Narayana Kodavati,

  • Connecting to LDAP using JNDI

    I am trying to connect to LDAP to check an entry.
    Following is the servlet code I am using.
    /* @author
    This class is establish to connect the LDAP user directory and get the user attributes
    (SSO_USERID, USER_ID, USER_NAME and USER_MAIL) from the LDAP User directory. */
    import java.io.*;
    import java.util.Enumeration;
    import java.util.*;
    import javax.naming.*;
    import javax.naming.directory.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    import java.sql.*;
    import java.lang.*;
    public class LDAPSearch extends HttpServlet
              //public static String MY_FILTER1 = "";
              public static String MY_FILTER2 = "";
              public static String INITCTX="com.sun.jndi.ldap.LdapCtxFactory";
              public static String MY_HOST="ldap://3.245.97.5:389";
              public static String MY_SEARCHBASE="o=ge.com";
              public void doGet (HttpServletRequest request,HttpServletResponse response) throws IOException, ServletException
                   doPost(request,response);
              public void doPost(HttpServletRequest request, HttpServletResponse response)throws IOException, ServletException
                        PrintWriter out=response.getWriter();
                        try
                             HttpSession session = request.getSession(true);
                             String str_user=(String)request.getParameter("txtSearch");
                             //out.println(str_user);
                             String ssoid = request.getParameter("ssoid");
                             //String str_parname = (String)request.getParameter("selNames");
                             System.out.println("str_user"+str_user);
                             String firstName="";
                             String lastName="";
                             String str_complete = "";
                             //char data[]={str_user,',');
                             StringTokenizer st=new StringTokenizer(str_user,",");
                             int stCount = st.countTokens();
                             if(stCount == 1)
                                  firstName = st.nextToken();
                                  System.out.println("firstName "+firstName);
                             else
                                  while(st.hasMoreTokens())
                                       lastName=st.nextToken();
                                       firstName=st.nextToken();
                                       //out.println("firstName "+firstName);
                                       //out.println("lastName "+lastName);
                        if(ssoid == null)
                             if(stCount == 1)
                                       MY_FILTER2 = "(givenName="+firstName+")";
                                       System.out.println("MY_FILTER2"+MY_FILTER2);
                                  else
                                  MY_FILTER2 = "(&(givenName="+firstName+")(sn="+lastName+"))";
                                  //out.println("MY_FILTER2"+MY_FILTER2);
                             else
                                  MY_FILTER2 = "(cn="+ssoid+")";
                             out.println("<html>");
                             out.println("<head><title>SSO User lookup / Search</title></head>");
                             out.println("<script language=\"javascript\">");
                             out.println("function back(){");
                             out.println("document.frmLDAPSearch.ssoid.value = document.frmLDAPSearch.selNames[document.frmLDAPSearch.selNames.selectedIndex].value;");
                             out.println("document.frmLDAPSearch.target='ERPUser';");
                             out.println("document.frmLDAPSearch.submit();");
                             out.println("window.close();");
                             out.println("}");
                             out.println("</script>");
                             out.println("<BODY BGCOLOR='#FFFFFF'><table border='0' align = 'center' width = '100%' >");
                             out.println("<form name=\"frmLDAPSearch\" method=\"get\" action='/servlet/LDAPSearch'>");
                             String str_ssoid = "";
                             String str_uid="";
                             String str_mailid = "";
                             String str_name = "";
                             String last = "";
                             String str_fullname = "";
                             //out.println("Origninal name "+str_parname);
                             Hashtable env=new Hashtable();
                             env.put(Context.INITIAL_CONTEXT_FACTORY,INITCTX);
                             env.put(Context.PROVIDER_URL,MY_HOST);
                             DirContext ctx=new InitialDirContext(env);
                             SearchControls constraints=new SearchControls();
                             constraints.setSearchScope(SearchControls.SUBTREE_SCOPE);
                             Vector vOut = new Vector();
                             NamingEnumeration results=ctx.search(MY_SEARCHBASE,MY_FILTER2,constraints);
                             while(results !=null && results.hasMore())
                                       SearchResult sr=(SearchResult)results.next();
                                       String dn=sr.getName() +"," +MY_SEARCHBASE;
                                       Attributes attrs=sr.getAttributes();
                                       for(NamingEnumeration ne=attrs.getAll();ne.hasMoreElements();)
                                            Attribute attr=(Attribute)ne.next();
                                            String attrID=attr.getID();
                                            if(attrID.equals("mail"))
                                                 Enumeration vals=attr.getAll();
                                                 out.println("<font color=\"red\">");
                                                 str_mailid = (String)vals.nextElement();
                                            if(attrID.equals("gessouid"))
                                                 Enumeration vals=attr.getAll();
                                                 out.println("<font color=\"red\">");
                                                 str_ssoid = (String)vals.nextElement();
                                            if(attrID.equals("uid"))
                                                 Enumeration vals=attr.getAll();
                                                 out.println("<font color=\"red\">");
                                                 str_uid = (String)vals.nextElement();
                                            if(attrID.equals("givenname"))
                                                 Enumeration vals=attr.getAll();
                                                 out.println("<font color=\"red\">");
                                                 str_name = (String)vals.nextElement();
                                            for(Enumeration vals=attr.getAll();vals.hasMoreElements();)
                                                 vals.nextElement();
                                            if(attrID.equals("sn"))
                                                 Enumeration vals=attr.getAll();
                                                 out.println("<font color=\"green\">");
                                                 last = (String)vals.nextElement();
                                            if(attrID.equals("cn"))
                                                 Enumeration vals=attr.getAll();
                                                 out.println("<font color=\"green\">");
                                                 str_complete = (String)vals.nextElement();
                                                 System.out.println("str_complete "+str_complete);
                                            //if(lastName.equalsIgnoreCase(last) || (stCount == 1))
                                                 if(attrID.equals("cn"))
                                                      int i=0;
                                                      Enumeration vals=attr.getAll();
                                                      out.println("<font color=\"red\">");
                                                      str_fullname = (String)vals.nextElement();
                                                      vOut.addElement(new String(str_fullname));
    //                                   } //END OF IF LASTNAME EQUALS
                                  }//END OF FOR LOOP
                             }//END OF WHILE"#FF00FF"
                                       out.println("<form><body bgcolor='#00FFFF' >");
                                       out.println("<div align=\"CENTER\" >");
                                       out.println("<input type=hidden name=txtSearch value='"+str_user+"'>");
                                       System.out.println("LDAP SEARCH: txtSearch="+str_user);
                                       out.println("<input type=hidden name=ssoid value=''>");
                                       String multiple=request.getParameter("multiple");
                                       if (multiple!=null)
                                       if (multiple.equalsIgnoreCase("true"))
                                                 out.println("<br>");
                                                 out.println("<table align=\"center\" >");
                                                 out.println("<tr><td align=\"center\"><select name='selNames' size=3>");
                                                 out.println("<option value='"+vOut.elementAt(0).toString()+"' selected>");
                                                 out.println(vOut.elementAt(0).toString());
                                                 out.println("</option>");
                                                 for(int i=1;i<vOut.size();i++)
                                                      out.println("<option value='"+vOut.elementAt(i).toString()+"'>");
                                                      out.println(vOut.elementAt(i).toString());
                                                      out.println("</option>");
                                                      System.out.println("i"+i);
                                                 out.println("</select><td></tr>");
                                                 out.println("<tr bgcolor='#00638C'><td align=\"center\"><input type=\"button\" value=\"populate\" onclick=\"back();\"></td>");
                                                 out.println("</td></tr></table>");
                                                 out.println("</div></body</form>");
                                       else{
                                       if(vOut.size()==1)
                                            session.putValue("SSOID",str_ssoid);
                                            session.putValue("USERID",str_uid);
                                            session.putValue("EMAIL",str_mailid);
                                            session.putValue("NAME",str_complete);
                                            response.sendRedirect("/servlet/Protected/InvtAddUser?txtSearch="+str_user);
                                       else if(vOut.size()==0)
                                            out.println("<SCRIPT SRC='/InvTrack/InvTrack.js'>");
                                            out.println("</SCRIPT>");
                                            out.println("<BODY BGCOLOR='#FFFFFF' onUnload='winLogout()' >");
                                            out.println("<table border='0' cellpadding='0' cellspacing='0' width='100%' >");
                                            out.println("<tr><td><img src='/ge.gif'alt='GE Medical Systems'></td>");
                                            out.println("<td><img src='/gr_toprighthd.jpg' alt='GE Medical Systems'></td></tr></table>");
                                            out.println("<BR><BR><BR>");
                                            out.println("<P ALIGN='CENTER'><FONT COLOR='#333399' SIZE='4'><B><FONT FACE='ARIAL, HELVETICA, SANS-SERIF'> <FONT COLOR='#800000'>Sorry!</FONT></FONT></B></FONT></p>");
                                            out.println("<P ALIGN='CENTER'><FONT COLOR='#333399' SIZE='4'><FONT FACE='ARIAL, HELVETICA, SANS-SERIF'> either you have typed incorrectly <br>or user has not registered a GEMS Intranet Single Sign On Userid </FONT></p>");
                                            out.println("<P ALIGN='CENTER'><FONT COLOR='#333399' SIZE='4'><FONT FACE='ARIAL, HELVETICA, SANS-SERIF'><A HREF=\"Javascript:history.back();\">Back</A></FONT></P>");
                                            out.println("</body>");
                                  else
                                            response.sendRedirect("/servlet/Protected/InvtAddUser?multiple=true&txtSearch="+str_user);
                                       out.println("</form></body></html>");
                        catch(Exception e)
                             out.println(e.toString());
    I am getting the followung exception::
    [03/Feb/2002:16:46:29] failure ( 481): Internal error: exception thrown from the servlet service function (uri=/servlet/LDAPSearch): java.lang.NoClassDefFoundError: com/sun/jndi/toolkit/ctx/ComponentDirContext, Stack: java.lang.NoClassDefFoundError: com/sun/jndi/toolkit/ctx/ComponentDirContext
         at java.lang.ClassLoader.defineClass0(Native Method)
         at java.lang.ClassLoader.defineClass(ClassLoader.java, Compiled Code)
         at java.security.SecureClassLoader.defineClass(SecureClassLoader.java, Compiled Code)
         at java.net.URLClassLoader.defineClass(URLClassLoader.java, Compiled Code)
         at java.net.URLClassLoader.access$1(URLClassLoader.java, Compiled Code)
         at java.net.URLClassLoader$1.run(URLClassLoader.java, Compiled Code)
         at java.security.AccessController.doPrivileged(Native Method)
         at java.net.URLClassLoader.findClass(URLClassLoader.java, Compiled Code)
         at java.lang.ClassLoader.loadClass(ClassLoader.java, Compiled Code)
         at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java, Compiled Code)
         at java.lang.ClassLoader.loadClass(ClassLoader.java, Compiled Code)
         at com.sun.jndi.ldap.LdapCtxFactory.getInitialContext(LdapCtxFactory.java:77)
         at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:671)
         at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:242)
         at javax.naming.InitialContext.init(InitialContext.java:218)
         at javax.naming.InitialContext.<init>(InitialContext.java:194)
         at javax.naming.directory.InitialDirContext.<init>(InitialDirContext.java:87)
         at LDAPSearch.doPost(LDAPSearch.java, Compiled Code)
         at LDAPSearch.doGet(LDAPSearch.java:34)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:701)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:826)
         at com.netscape.server.http.servlet.NSServletRunner.Service(NSServletRunner.java:462)
    I have included ldap.jar and jndi.jar in the CLASSPATH for IPlanetWebServer that I am using.
    Please get back.

    java.lang.NoClassDefFoundError: com/sun/jndi/toolkit/ctx/ComponentDirContext
    Seems pretty straight forward to me. That class isn't there, and it wants it. Check all your classpaths to verify that class is in them. I bet it's not. Also, a side note. You see where it says "compiled code" in the stack trace instead of a line number. You can force the VM to interpret to give you a line number by setting your JAVA_COMPILER variable to "none" Or depending on the version of the VM you are using you can supply the -Xint switch which forces interpretation.

  • Problem in connecting to LDAP using JNDI please HELP ME!!!!!!

    hi
    i am trying to connect to the LDAp using the JNDi
    and i am getting the following error i was unable to solve it
    here i am posting my sample slapd.cof file as well as my source program and the error
    # ldbm database definitions
    database        ldbm
    #suffix         "dc=stooges,dc=org"
    suffix          "o=sgstest"
    rootdn          "cn=sgstestAdmin,o=sgstest"
    rootpw          secret3
    directory       /var/lib/ldap/sgstest
    defaultaccess   read
    schemacheck     off
    lastmod         onand my program source code is
    import javax.naming.Context;
    import javax.naming.InitialContext;
    import javax.naming.NamingException;
    import javax.naming.NameAlreadyBoundException;
    import javax.naming.directory.*;
    import java.util.*;
    public class test{
            final static String ldapServerName = "localhost";
            final static String rootdn = "cn=SgstestAdmin,o=sgstest";
            final static String rootpass = "secret3";
            final static String rootContext = "o=sgstest";
            public static void main(String[] args) {
                    Properties env = new Properties();
                    env.put(Context.INITIAL_CONTEXT_FACTORY,"com.sun.jndi.ldap.LdapCtxFactory");
                    env.put(Context.SECURITY_AUTHENTICATION,"simple");
                    env.put(Context.PROVIDER_URL,"ldap://"+ldapServerName+"/"+rootContext);
                    env.put(Context.SECURITY_PRINCIPAL,rootdn);
                    env.put(Context.SECURITY_CREDENTIALS,rootpass);
                    try {   // obtain initial directory context using the environment
                            DirContext ctx = new InitialDirContext(env);
                           // now, create the root context, which is just a subcontext
                            // of this initial directory context.
                            Integer i = new Integer( 28420 );
                            System.out.println("Adding " + i + " to directory..." );
                            ctx.bind("cn=myRandomInt",i);
                            i = new Integer( 98765 );
                            System.out.println( "i is now: " + i );
                    } catch (NameAlreadyBoundException nabe) {
                            System.err.println(rootContext + " has already been bound!" );
                    } catch ( Exception e ) {
                            System.err.println( e );
                                                                                                               1,17          Top
    }the error which i am getting is
    Adding 28420 to directory...
    javax.naming.directory.InvalidAttributeIdentifierException:
    [LDAP: error code 17 - javaSerializedData: attribute type undefined]; remaining name 'cn=myRandomInt'any help would be appreciated

    Hi,
    just one question: is your LDAP server configured to support the JAVA object classes and attributes like javaSerializedData? E.g., if you're using openldap, you have to add a line to the slapd.conf configuration file to import the java definitions.

  • Untrusted server cert chain - while connecting with ldap

    Hi All,
    I am getting the following error while running a standalone java program in windows 2000+jdk1.3 environment to connect with LDAP.
    javax.naming.CommunicationException: hostname:636 [Root exception is ja
    vax.net.ssl.SSLException: untrusted server cert chain]
    javax.naming.CommunicationException: hostname:636. Root exception is j
    avax.net.ssl.SSLException: untrusted server cert chain
    at com.sun.net.ssl.internal.ssl.SSLSocketImpl.a(DashoA12275)
    at com.sun.net.ssl.internal.ssl.ClientHandshaker.a(DashoA12275)
    at com.sun.net.ssl.internal.ssl.ClientHandshaker.processMessage(DashoA12
    275)
    at com.sun.net.ssl.internal.ssl.Handshaker.process_record(DashoA12275)
    at com.sun.net.ssl.internal.ssl.SSLSocketImpl.a(DashoA12275)
    at com.sun.net.ssl.internal.ssl.SSLSocketImpl.a(DashoA12275)
    at com.sun.net.ssl.internal.ssl.AppOutputStream.write(DashoA12275)
    at java.io.OutputStream.write(Unknown Source)
    at com.sun.jndi.ldap.Connection.<init>(Unknown Source)
    at com.sun.jndi.ldap.LdapClient.<init>(Unknown Source)
    at com.sun.jndi.ldap.LdapCtx.connect(Unknown Source)
    at com.sun.jndi.ldap.LdapCtx.<init>(Unknown Source)
    at com.sun.jndi.ldap.LdapCtxFactory.getInitialContext(Unknown Source)
    at javax.naming.spi.NamingManager.getInitialContext(Unknown Source)
    at javax.naming.InitialContext.getDefaultInitCtx(Unknown Source)
    at javax.naming.InitialContext.init(Unknown Source)
    at javax.naming.InitialContext.<init>(Unknown Source)
    at javax.naming.directory.InitialDirContext.<init>(Unknown Source)
    at Test2.getProxyDirContext(Test2.java:66)
    at Test2.main(Test2.java:40)
    Any help would be appreciated
    Thanks in Advance
    Somu

    This got resolved when in the code the following
    System.setProperty("javax.net.ssl.tmrustStore", CertFileName);
    where cert file name is the filename with complete path.the file is a CA certificate of the LDAP server
    in X509 format

  • How to get the naming attribute of an LDAP using JNDI.?

    Hi,
    How do we fetch the naming attribute of a LDAP using JNDI. Is this possible using JNDI..?
    By default, every LDAP has been set with a naming attribute such as 'uid' or 'cn'. This could be changed according to business needs.
    How to determine this using JNDI.
    Regards,
    Barani

    Are you trying to call the portlet Customization form directly from the browser?

  • What version of SQL Server support ssl connection with TLS. 1.2 (SHA-256 HASH)

    Hi,
    I just want to know,
    What version of SQL Server support ssl connection with TLS. 1.2 (SHA-256 HASH).
    if support already,
    how can i setting.
    plz.  help me!!! 

    The following blog states that SQL Server "leverages the SChannel layer (the SSL/TLS layer provided
    by Windows) for facilitating encryption.  Furthermore, SQL Server will completely rely upon SChannel to determine the best encryption cipher suite to use." meaning that the version of SQL Server you are running has no bearing on which
    encryption method is used to encrypt connections between SQL Server and clients.
    http://blogs.msdn.com/b/sql_protocols/archive/2007/06/30/ssl-cipher-suites-used-with-sql-server.aspx
    So the question then becomes which versions of Windows Server support TLS 1.2.  The following article indicates that Windows Server 2008 R2 and beyond support TLS 1.2.
    http://blogs.msdn.com/b/kaushal/archive/2011/10/02/support-for-ssl-tls-protocols-on-windows.aspx
    So if you are running SQL Server on Windows Server 2008 R2 or later you should be able to enable TLS 1.2 and install a TLS 1.2 certificate.  By following the instructions in the following article you should then be able to enable TLS 1.2 encryption
    for connections between SQL Server and your clients:
    http://support.microsoft.com/kb/316898
    I hope that helps.

  • I can no longer connect with others using FaceTime after the mandatory update

    I updated my iPad software and now when I try to connect with someone using FaceTime I can never fully connect.
    Can anyone help me or seen this issue?

    Unable to make or receive FaceTime calls after April 16, 2014
    http://support.apple.com/kb/TS5419
    Using FaceTime http://support.apple.com/kb/ht4319
    Troubleshooting FaceTime http://support.apple.com/kb/TS3367
    The Complete Guide to FaceTime + iMessage: Setup, Use, and Troubleshooting
    http://tinyurl.com/a7odey8
    Troubleshooting FaceTime and iMessage activation
    http://support.apple.com/kb/TS4268
    iOS: FaceTime is 'Unable to verify email because it is in use'
    http://support.apple.com/kb/TS3510
    Using FaceTime and iMessage behind a firewall
    http://support.apple.com/kb/HT4245
    iOS: About Messages
    http://support.apple.com/kb/HT3529
    Set up iMessage
    http://www.apple.com/ca/ios/messages/
    iOS and OS X: Link your phone number and Apple ID for use with FaceTime and iMessage
    http://support.apple.com/kb/HT5538
    How to Set Up & Use iMessage on iPhone, iPad, & iPod touch with iOS
    http://osxdaily.com/2011/10/18/set-up-imessage-on-iphone-ipad-ipod-touch-with-io s-5/
    Set Up Alert Sounds
    http://www.quepublishing.com/articles/article.aspx?p=1873027&seqNum=3
    Extra FaceTime IDs
    http://tinyurl.com/k683gr4
    Troubleshooting Messages
    http://support.apple.com/kb/TS2755
    Troubleshooting iMessage Issues: Some Useful Tips You Should Try
    http://www.igeeksblog.com/troubleshooting-imessage-issues/
    Setting Up Multiple iOS Devices for iMessage and Facetime
    http://macmost.com/setting-up-multiple-ios-devices-for-messages-and-facetime.htm l
    FaceTime and iMessage not accepting Apple ID password
    http://www.ilounge.com/index.php/articles/comments/facetime-and-imessage-not-acc epting-apple-id-password/
    Fix Can’t Sign Into FaceTime or iMessage iOS 7
    http://ipadtutr.com/fix-login-facetime-imessage-ios-7/
    FaceTime, Game Center, Messages: Troubleshooting sign in issues
    http://support.apple.com/kb/TS3970
    Unable to use FaceTime and iMessage with my apple ID
    https://discussions.apple.com/thread/4649373?tstart=90
    iOS 7 allows you to block phone numbers or e-mail addresses from contacting you via the Phone, FaceTime, or Messages
    http://howto.cnet.com/8301-11310_39-57602643-285/you-can-block-people-from-conta cting-you-on-ios-7/
    How to Block Someone on FaceTime
    http://www.ehow.com/how_10033185_block-someone-facetime.html
    My Facetime Doesn't Ring
    https://discussions.apple.com/message/19087457#19087457
    How to watch FaceTime calls on the big screen with Apple TV
    http://www.imore.com/daily-tip-ios-5-airplay-mirroring-facetime
    Send an iMessage as a Text Message Instead with a Quick Tap & Hold
    http://osxdaily.com/2012/11/18/send-imessage-as-text-message/
    To send messages to non-Apple devices, check out the TextFree app https://itunes.apple.com/us/app/text-free-textfree-sms-real/id399355755?mt=8
    How to Send SMS from iPad
    http://www.iskysoft.com/apple-ipad/send-sms-from-ipad.html
    How to Receive SMS Messages on an iPad
    http://yourbusiness.azcentral.com/receive-sms-messages-ipad-16776.html
    Apps for Texting http://appadvice.com/appguides/show/apps-for-texting
    You can check the status of the FaceTime/iMessage servers at this link.
    http://www.apple.com/support/systemstatus/
     Cheers, Tom

  • I have a ipad 2 and it does not connect with safari using 3G

    I have a ipad 2 and it does not connect with safari using 3G

    Sorry to hear you are having issues, but there are 2 ways you can print from that device.
    The first one is to simply email photos or documents to your printers email address by attaching them to a new message.
    The other option is to download the HP ePrint Home and Biz app from Google Play. The app is free and should allow you to print pictures and documents to the printer with ease. I have added a link below on how to get started with this app.
    http://h10025.www1.hp.com/ewfrf/wc/document?docname=c01616126&lc=en&cc=us&dlc=en&product=3857218
    Jon-W
    I work on behalf of HP
    Please click “Accept as Solution ” on the post that solves your issue to help others find the solution.
    Click the KUDOS STAR on the left to say “Thanks” for helping!

  • ERROR http: 5: Unable to initialize ssl connection with server, aborting co

    HI EXPERTS,
    one of my database give me below error when i start its dbconsole. and after failure it give me meassge
    TZ set to Asia/Karachi
    Oracle Enterprise Manager 10g Database Control Release 10.2.0.4.0
    Copyright (c) 1996, 2007 Oracle Corporation. All rights reserved.
    https://test:5500/em/console/aboutApplication
    Starting Oracle Enterprise Manager 10g Database Control ..............................................................
    ........ failed.
    Logs are generated in directory /u01/oracle/product/10.2/cnichol_cpuplt/sysman/log
    and in trace file name "emdctl.trc" below error is logged.
    ERROR http: 5: Unable to initialize ssl connection with server, aborting connection attempt
    ERROR ssl: nzos_Handshake failed, ret=29024
    and trace file named "emagent.trc" give below error
    2010-10-04 19:12:25 Thread-88238992 ERROR http: 11: Unable to initialize ssl connection with server, aborting connection attempt
    2010-10-04 19:12:25 Thread-88238992 ERROR pingManager: nmepm_pingReposURL: Cannot connect to https://test:5500/em/upload/: retStatus=-1
    2010-10-04 19:12:38 Thread-88238992 ERROR upload: Error in uploadXMLFiles. Trying again in 300.00 seconds.
    dbconosle URL is
    https://test:5500/em/console/aboutApplication
    Operating system is Redhat linux AS 5.3
    what is the possible cause of this failure any one can guide me.
    thanx in Advance
    regards,
    Edited by: AMIABU on Oct 4, 2010 7:28 AM

    oracle@bcm-laptop:~$ emctl
    Oracle Enterprise Manager 11g Database Control Release 11.2.0.1.0
    Copyright (c) 1996, 2009 Oracle Corporation.  All rights reserved.
       Oracle Enterprise Manager 10g Database Control commands:
            emctl start | stop dbconsole
            emctl status | secure | setpasswd dbconsole
            emctl config dbconsole -heap_size <size_value> -max_perm_size <size_value>
           emctl status agent
           emctl status agent -secure [-omsurl <http://<oms-hostname>:<oms-unsecure-port>/em/*>]
           emctl getversion
           emctl reload | upload | clearstate | getversion agent
           emctl reload agent dynamicproperties [<Target_name>:<Target_Type>]....
           emctl config agent <options>
           emctl config agent updateTZ
           emctl config agent getTZ
           emctl resetTZ agent
           emctl config agent credentials [<Target_name>[:<Target_Type>]]
           emctl gensudoprops
           emctl clearsudoprops
    Blackout Usage :
           emctl start blackout <Blackoutname> [-nodeLevel] [<Target_name>[:<Target_Type>]].... [-d <Duration>]
           emctl stop blackout <Blackoutname>
           emctl status blackout [<Target_name>[:<Target_Type>]]....
    The following are valid options for blackouts
    <Target_name:Target_type> defaults to local node target if not specified.
    If -nodeLevel is specified after <Blackoutname>,the blackout will be applied to all targets and any target list that follows will be ignored.
    Duration is specified in [days] hh:mm
            emctl getemhome
            emctl ilint
    Em Key Commands Usage :
    emctl config emkey -emkeyfile <emkey.ora path> [-force] [-sysman_pwd <sysman password>]
    emctl config emkey -emkey [-emkeyfile <emkey.ora path>] [-force] [-sysman_pwd <sysman password>]
    emctl config emkey -repos [-emkeyfile <emkey.ora path>] [-force] [-sysman_pwd <sysman password>]
    emctl config emkey -remove_from_repos [-sysman_pwd <sysman password>]
    emctl config emkey -copy_to_repos [-sysman_pwd <sysman password>]
    emctl status emkey [-sysman_pwd <sysman password>]
    Secure DBConsole Usage :
    emctl secure dbconsole -sysman_pwd <sysman password> [-passwd_file <abs file loc>]
         [-host <slb hostname>] [-sid <service name>] [-reset] [-secure_port <secure_port>]
         [-root_dc <root_dc>] [-root_country <root_country>] [-root_state <root_state>] [-root_loc <root_loc>]
         [-root_org <root_org>] [-root_unit <root_unit>] [-root_email <root_email>]
         [-wallet <wallet loc>] [-wallet_pwd <wallet pwd>] [-trust_certs_loc <certs loc>]
    emctl secure status dbconsole
    Register Targettype Usage :
    emctl register oms targettype [-o <Output filename>] <XML filename> <rep user> <rep passwd> <rep host> <rep port> <rep sid> OR
    emctl register oms targettype [-o <Output filename>] <XML filename> <rep user> <rep passwd> <rep connect descriptor>

  • Can I connect with Database using Session Bean

    Hi,
    I am new to EJB. I have small doubt.
    can I connect with Database using Session Bean.
    Regards,
    Murali.

    Double post of http://forum.java.sun.com/thread.jspa?threadID=687239&tstart=0

  • Need help in retrieving attributes from LDAP using JNDI

    I am trying to retrieve attributes from LDAP using JNDI, but I'm getting the following error when I try to run my Java program.
    Exception in thread "main" java.lang.NoClassDefFoundError: javax/naming/NamingException
    I have all the jar files in my classpath: j2ee.jar, fscontext.jar and providerutil.jar. The interesting thing is that it gets compiled just fine but gives an error at run-time.
    Could anyone tell me why I'm getting this error? Thanks!
    Here's my code:
    import javax.naming.*;
    import javax.naming.directory.*;
    import java.util.*;
    import java.io.*;
    class Getattr {
    public static void main(String[] args) {     
    // Identify service provider to use     
    Hashtable env = new Hashtable(11);     
    env.put(Context.INITIAL_CONTEXT_FACTORY, "com.sun.jndi.ldap.LdapCtxFactory");      
    // user     info
    String userName = "username";     
    String password = "password";          
    // LDAP server specific information     
    String host = "ldaphostname";     
    String port = "portnumber";     
    String basedn = "o=organization,c=country";     
    String userdn = "cn=" + userName + "," + basedn;          
    env.put(Context.PROVIDER_URL, "ldap://" + host + ":" + port + "/" + basedn);     
    env.put(Context.SECURITY_PRINCIPAL, userdn);     
    env.put(Context.SECURITY_CREDENTIALS, password);     
    try {          
    System.setErr(new PrintStream(new FileOutputStream(new File("data.txt"))));     
    // Create the initial directory context     
    DirContext ctx = new InitialDirContext(env);          
    // Ask for all attributes of the object      
    Attributes attrs = ctx.getAttributes("cn=" + userName);          
    NamingEnumeration ne = attrs.getAll();                    
    while(ne.hasMore()){                         
    Attribute attr = (Attribute) ne.next();                                   
    if(attr.size() > 1){               
    for(Enumeration e = attr.getAll(); e.hasMoreElements() ;) {                                       
    System.err.println(attr.getID() + ": " + e.nextElement());                     
    } else {
         System.err.println(attr.getID() + ": " + attr.get());
    // Close the context when we're done     
    ctx.close();     
    } catch(javax.naming.NamingException ne) {
         System.err.println("Naming Exception: " + ne);     
    } catch(IOException ioe) {
         System.err.println("IO Exception: " + ioe);     

    That doesn't work either. It seems its not finding the NamingException class in any of the jar files. I don't know why? Any clues?

  • Is there any way to connect an ipad to a ethernet  cord or connection with out using wi fi

    Is there any way to connect an ipad to a ethernet  cord or connect with out using wi fi?  Thank  you

    The closest you can come, without having a 3G iPad is to have a cellular mobile hotspot like the Mifi or such device, use that to get to wifi, or to tether it to a cell phone.

  • Ethernet connection with labview using Modbus

    I want to communicate via  Ehternet connection with LabVIEW using modbus protocol, Just as RS232 (COM) coomunication wiht Modbus in Labview.
    mini

    See these threads.
    http://forums.ni.com/ni/board/message?board.id=170​&message.id=151337&view=by_date_ascending&page=1
    http://sine.ni.com/apps/we/niepd_web_display.displ​ay_epd4?p_guid=F1582737BACF5CA8E0340003BA7CCD71&p_​...

Maybe you are looking for

  • Transporting Process Chain - error  Source system does not exist

    Hi, I tried to transport a local PC by itself (not including its main meta chain) since I have only done modifications in the local PC only. In the PC, there are PSA Processing, ODS Processing, ODS Activation, ABAP Program w/ variants and Infocube Ro

  • Export edited videos from iPhoto

    Hi. I found many videos online showing how to export video files from iPhoto, but they always use original files! I just imported a video from my iPhone into iPhoto, and cut it. Now I want to export the edited video, but if I drag and drop on the des

  • Problems with Memo data type in access

    I have a Java program which is connected to a Microsoft Access Database. When trying to get a Memo data type field out of the DB and putting it into a StringBuffer, it causes a Function sequence error, even though it does put the field into the said

  • Zip File with CRXI FP 63 RDC MM damaged!

    Hi, I have now downloaded the following file https://smpdl.sap-ag.de/~sapidp/012002523100009333602010E/crxir2fp63_rdc_mm.zip several times with MSIE, FoxPro and Opera. The result is always the same: The zip-file cannot be opened (Winzip, Alzip, 7zip)

  • Do static methods perform better

    Sometimes, especially when refactoring (specifically when doing extract method), I create a method in a class to perform some helpful task or to neatly tuck a chunk of ugly code away somewhere that it can be easily referred to from the "actual" code.