https problem


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 4 of 4

Thread: https problem

  1. #1
    Join Date
    Apr 2006
    Posts
    20

    https problem

    Hi i get the following exception thrown at me when trying to connect to a php server. the exception is:

    javax.microedition.pki.CertificateException: Certificate was issued by an unrecognized entity

    my code is below:

    Code:
      public void open()
        {
            try
            {
                server = (HttpsConnection) Connector.open(url);
                
                is = server.openInputStream();
                os = server.openOutputStream();
                Alert alert = new Alert ("Error");
                alert.setString("everything working fine");
                alert.setTimeout (3000);
                Display.getDisplay(root).setCurrent(alert);
            }
            catch(Exception e)
            {
                e.printStackTrace();
                String error = e.toString();
                Alert alert = new Alert ("Error");
                alert.setString("Error, " + e);
                alert.setTimeout (5000);
                Display.getDisplay(root).setCurrent(alert);
                    
                    
            }
        }

  2. #2
    Join Date
    Apr 2007
    Location
    Busano
    Posts
    4
    Is the certificate self-issued?

  3. #3
    Join Date
    Apr 2006
    Posts
    20
    yes the guy who developed the server created the CA for it.

  4. #4
    Join Date
    Apr 2007
    Location
    Busano
    Posts
    4
    Maybe you have to import ca' s certificate into your keystore. Take a look here: http://java.sun.com/j2se/1.4.2/docs/...ERefGuide.html.

Similar Threads

  1. Problem Downloading Jar Files from HTTPS site
    By l.jayseeelan in forum Java
    Replies: 0
    Last Post: 11-30-2006, 02:38 AM
  2. Replies: 0
    Last Post: 11-27-2006, 08:14 AM
  3. login problem
    By dbrook007 in forum ASP.NET
    Replies: 0
    Last Post: 11-06-2006, 05:54 AM
  4. ActiveX problem using VB
    By koraal in forum VB Classic
    Replies: 3
    Last Post: 11-03-2006, 04:50 PM
  5. Replies: 0
    Last Post: 06-23-2000, 03:17 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center