# [Fwd: SignExample is not working]

nraghura@ciena.com
Tue, 21 Jul 1998 16:25:45 -0400

- Messages sorted by: [ date ][ thread ][ subject ][ author ]
- Previous message: Jan Luehe: "Re: An urgent question for JCE1.2"

    From: nraghura@ciena.com

    Date: Tue, 21 Jul 1998 16:25:45 -0400

    To: java-security@java.Sun.COM

    Subject: [Fwd: SignExample is not working]

This is a multi-part message in MIME format.
--------------C900D81B446C72DA03A862F1
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

help needed

thank you,
raghu

--------------C900D81B446C72DA03A862F1
Content-Type: message/rfc822
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

Message-ID: <35B4F64D.B1A76FA9@ciena.com>
Date: Tue, 21 Jul 1998 16:13:01 -0400
From: nraghura@ciena.com
X-Mailer: Mozilla 4.05 [en] (WinNT; I)
MIME-Version: 1.0
To: Marianne Mueller <Marianne.Mueller@Eng.Sun.COM>
Subject: Re: SignExample is not working
References: <libSDtMail.199807211137.29556.mrm@shorter>
Content-Type: multipart/mixed; boundary="------------FDC79D15372E48992B9C91A4"

This is a multi-part message in MIME format.
--------------FDC79D15372E48992B9C91A4
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Hello,
got your reply. I did exactly the same thing but it is not working.

I have 2 issues.

1.

1. I downloaded the file Duke.x509 and stored in one of my working directories.
2. I gave the 2 commands (javakey -c Duke true and javakey -ic Duke Duke.x509
)
3. If I try to start signedPluginEx.html. Still security exception occured.

2.
I modified the writeFile.java application .
Wrote a html file.
converted the applet tag using HTML converter.
When I tried to load from Netscape using plugins it worked. (But I did not do any

signing. The plugin just loaded the applet. I neither generated any cert or even
generated
the jar file ).

I dont know where I am going wrong. I will attach the files which I have used
for
testing.

pls give me feed back. Thank you,

Raghu.

Marianne Mueller wrote:

> The sign example works fine for me with the Plug-In, with Netscape Navigator,
> on Windows NT or on Solaris/SPARC.
>
> Did you import the certificate for Duke?
>
> That means, did you download the file named Duke.x509 and run these
> commands
>
> % javakey -c Duke true
> % javakey -ic Duke Duke.x509
>
> That second command assumes you've saved the downloaded file into a file
> named "Duke.x509"
>
> You don't use an ARCHIVE tag. You should use the EMBED tag. Don't put
> an ARCHIVE tag inside the EMBED tag. The best thing to do is, don't
> write the HTML yourself, but use the HTMLConverter tool that is provided.

--------------FDC79D15372E48992B9C91A4
Content-Type: text/html; charset=us-ascii; name="TstWrite.html"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline; filename="TstWrite.html"
Content-Base: "file:///C|/raghu/originalfiles/bugtest
/TstWrite.html"

--------------FDC79D15372E48992B9C91A4
Content-Type: application/x-unknown-content-type-VisualCafeFile.Document; name="FileWrite.java"
Content-Transfer-Encoding: base64
Content-Disposition: inline; filename="FileWrite.java"

LyoqDQogICogQnkgZGVmYXVsdCwgdGhpcyBhcHBsZXQgcmFpc2VzIGEgc2VjdXJpdHkgZXhj
ZXB0aW9uLg0KICAqDQogICogV2l0aCBKREsgMS4xIGFwcGxldHZpZXdlciwNCiAgKiAgaWYg
eW91IGNvbmZpZ3VyZSB5b3VyIHN5c3RlbSB0byBhbGxvdyBhcHBsZXRzIHNpZ25lZCBieSAi
dHN0S2V5IiAob3IgYW55IHVzZXIpDQogICogIHRvIHJ1biBvbiB5b3VyIHN5c3RlbSwgdGhl
biB0aGlzIGFwcGxldCBjYW4gcnVuIGFuZCB3cml0ZSBhIGZpbGUNCiAgKiAgdG8geW91ciAg
Y3VycmVudCBkaXJlY3RvcnkuDQogICoNCiAgKiBAdmVyc2lvbiBKREsgMS4xDQogICogQGF1
dGhvciAgUmFnaHVyYW1hbi4NCiAgKi8NCg0KaW1wb3J0IGphdmEuYXd0Lio7DQppbXBvcnQg
amF2YS5pby4qOw0KaW1wb3J0IGphdmEubGFuZy4qOw0KaW1wb3J0IGphdmEuYXBwbGV0Lio7
DQoNCnB1YmxpYyBjbGFzcyBGaWxlV3JpdGUgZXh0ZW5kcyBBcHBsZXQgew0KICAgIFN0cmlu
ZyBteUZpbGU9InRzd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Z2h0IGkv
byBleGNlcHRpb24iLCAxMCwgMTApOw0KICAgICAgICB9DQogICB9DQp9DQoNCg==
--------------FDC79D15372E48992B9C91A4
Content-Type: application/x-java-bean; name="FileWrite.class"
Content-Transfer-Encoding: base64
Content-Disposition: inline; filename="FileWrite.class"

yv66vgADAC0AZAgAMQgAPAgASAgASQgAXAgAXwgAYAgAYggAYwcAQAcAUQcAUgcAUwcAVAcA
VQcAVgcAVwcAWAcAWQcAWgoACwAkCgAOACUKAA0AJgoADwAnCgAQACcKABMAJwoAEwAoCQAK
ACkKAAwAKgkACgArCgAOACwKABQALQkACgAuCgATAC8KAA4AMAwAOwAzDAA7ADUMADsANgwA
OwA5DABKADgMAEsAQwwATAA6DABNAEQMAE4AMwwATwA3DABbAEUMAF4AMgwAYQA5AQAZIC0t
IGdvIHRha2UgYSBsb29rIGF0IGl0IQEAFCgpTGphdmEvbGFuZy9TdHJpbmc7AQADKClWAQAW
KExqYXZhL2F3dC9HcmFwaGljczspVgEAGShMamF2YS9pby9PdXRwdXRTdHJlYW07KVYBABoo
TGphdmEvaW8vT3V0cHV0U3RyZWFtO0kpVgEAJihMamF2YS9sYW5nL1N0cmluZzspTGphdmEv
bGFuZy9TdHJpbmc7AQAsKExqYXZhL2xhbmcvU3RyaW5nOylMamF2YS9sYW5nL1N0cmluZ0J1
ZmZlcjsBABUoTGphdmEvbGFuZy9TdHJpbmc7KVYBABcoTGphdmEvbGFuZy9TdHJpbmc7SUkp
VgEABjxpbml0PgEAI0FuZCwgc3VjY2Vzc2Z1bGx5IGdvdCB1c2VyLm5hbWUgLi4uAQAEQ29k
ZQEADUNvbnN0YW50VmFsdWUBAApFeGNlcHRpb25zAQAJRmlsZVdyaXRlAQAORmlsZVdyaXRl
LmphdmEBAA9MaW5lTnVtYmVyVGFibGUBABpMamF2YS9pby9EYXRhT3V0cHV0U3RyZWFtOwEA
DkxqYXZhL2lvL0ZpbGU7AQASTGphdmEvbGFuZy9TdHJpbmc7AQAOTG9jYWx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G4AbwASAAAAbgB7ABEAAQBCAAAAOgAOAAAA
HgAAACAAIAAhACkAIgAwACMAUAAlAFYAJgBuAB4AbwApAHAAKgB6AB4AewAsAHwALQCGAB0A
AQA7ADMAAQA9AAAAPgAEAAEAAAAaKrcAFSoSBrUAISq7AA9ZKrQAIbcAGLUAHrEAAAABAEIA
AAASAAQAAAASAAQAEwAKABQAGQASAAEARwAAAAIAQQ==
--------------FDC79D15372E48992B9C91A4--

--------------C900D81B446C72DA03A862F1--

- Previous message: Jan Luehe: "Re: An urgent question for JCE1.2"