DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

+ Reply to Thread
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, 01:38 AM
  2. Replies: 0
    Last Post: 11-27-2006, 07:14 AM
  3. login problem
    By dbrook007 in forum ASP.NET
    Replies: 0
    Last Post: 11-06-2006, 04:54 AM
  4. ActiveX problem using VB
    By koraal in forum VB Classic
    Replies: 3
    Last Post: 11-03-2006, 03:50 PM
  5. Replies: 0
    Last Post: 06-23-2000, 02:17 PM

Bookmarks

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


Top DevX Stories

Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL


Sponsored Links