Use the keytool command to import the public certificate into your testing or Unwired WorkSpace environment, so that you can establish HTTPS connections with Unwired Server.
You must first configure Unwired Server to accept HTTPS connections. You can then import the public certificate generated during that process and use it to secure HTTPS communications with Unwired Server.
Use the Java keytool command to import the public certificate into the JRE on the host from which you want to connect to Unwired Server using HTTPS. The host is your Unwired WorkSpace installation, or the host on which you develop .NET client applications; for example, C:\Sybase\UnwiredPlatform-1_5\JDK1.6.0_16\jre). This task prepares your system to run J2SE Unwired Platform device applications.
Enter keystore password:mykey Re-enter new password:mykey
Owner: CN=UEP, OU=ITS, O=Sybase, L=Concord, ST=NH, C=US Issuer: CN=UEP, OU=ITS, O=Sybase, L=Concord, ST=NH, C=US Serial number: 31 Valid from: Sun May 11 16:04:03 EDT 2008 until: Wed May 12 16:04:03 EDT 2010 Certificate fingerprints: MD5: 50:E1:8E:53:FE:3C:C9:E6:34:70:71:01:8E:09:C8:CE SHA1: 20:B5:26:B0:9B:8B:F7:9E:16:BA:2E:13:3D:03:73:32:AA:6A:52:53 Signature algorithm name: MD5withRSA Version: 3 Extensions: #1: ObjectId: 2.5.29.15 Criticality=true KeyUsage [ Key_Encipherment Key_Agreement Key_CertSign Crl_Sign ] #2: ObjectId: 2.5.29.19 Criticality=true BasicConstraints:[ CA:true PathLen:10 ]
The owner and Issuer information should match the information you entered when you generating the certificate and key.
Trust this certificate? [no]: y
Certificate was added to keystore
If you accept the default [no], the certificate is not added to the keystore.
java.lang.RuntimeException: Synchronization of MetaData failed: ianywhere.ultralitej.implementation.JrException: UltraLiteJ Error[-44]: Sync upload failure: 'sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target'