自己署名証明書を作成し、それを使用するように tomcat を構成しました (ポート 443)
j2meアプリケーションからアクセスしようとすると、CertificateExceptionが発生します
public void run() {
String url = "https://192.168.1.40/test/index.jsf";
try {
HttpsConnection hc = (HttpsConnection)Connector.open(url);
int respCode= hc.getResponseCode();
}catch (IOException ioe) {
Alert a = new Alert(ioe.toString(), null, AlertType.INFO);
}
javax.microedition.pki.CertificateException:証明書の検証に失敗しました
エミュレーターには証明書をインポートするオプションがあると思いますが、j2me jar を使用して証明書をパッケージ化し、実際のモバイル デバイスで自己署名証明書を受け入れるようにする方法はありますか。