 |
|
 |
Hi Ashraf...
Thankx for ur article..
when I follow ur article after
(9. Write sign in command prompt and enter) step I got the following error in command Prompt...
<pre>
C:\Documents and Settings\admin\Desktop\How to develop a signed applet>sign
C:\Documents and Settings\admin\Desktop\How to develop a signed applet>makecert
/sv "WriteFile.pvk" /n "CN=WriteFile" WriteFile.cer
Succeeded
C:\Documents and Settings\admin\Desktop\How to develop a signed applet>cert2spc
WriteFile.cer WriteFile.spc
Succeeded
C:\Documents and Settings\admin\Desktop\How to develop a signed applet>setreg 1
true
Updated Software Publishing State Key Values (0x23ca0):
1) Trust the Test Root........................... TRUE
2) Use expiration date on certificates........... TRUE
3) Check the revocation list..................... TRUE
4) Offline revocation server OK (Individual)..... TRUE
5) Offline revocation server OK (Commercial)..... TRUE
6) Java offline revocation server OK (Individual) TRUE
7) Java offline revocation server OK (Commercial) TRUE
8) Invalidate version 1 signed objects........... FALSE
9) Check the revocation list on Time Stamp Signer FALSE
10) Only trust items found in the Trust DB........ FALSE
C:\Documents and Settings\admin\Desktop\How to develop a signed applet>appsign C
:\Test\SignedApplet\WriteFile WriteFile low
C:\Documents and Settings\admin\Desktop\How to develop a signed applet>ECHO OFF
Microsoft (R) Cabinet Tool - Version 1.00.602.2 (08/14/97)
Copyright (c) Microsoft Corp 1994-1997. All rights reserved.
Creating new cabinet 'WriteFile.cab' with compression 'MSZIP':
-- adding WriteFile.class
Completed successfully
Error: Unable to open a CSP provider with the correct private key
Error: Signing Failed. Result = 80092006, (-2146885626)
C:\Documents and Settings\admin\Desktop\How to develop a signed applet>
After that It will generate the following files..
1.WriteFile.pvk
2.WriteFile.cab
3.WriteFile.cer
4.WriteFile.spc
When I copy the HTML Code and run it in the browser means the following exception caught.
writeFile: caught security exception
Please help me...
ramesh
|
|
|
|
 |
|
 |
It could not identify the WriteFile.pvk. Put Private key file in the same folder solve this problem.
Hope this helps.
Rgs,
Mohashar
visit www.mohamedashraf.tk
|
|
|
|
 |
|
 |
thankx for ur immediate reply......
Now I got the Message as you said...
But after that exception came in HTML...
When I copy the HTML Code and run it in the browser means the following
exception caught.
writeFile: caught security exception
thankx...
RR
ramesh
|
|
|
|
 |
|
 |
Cab file was not prepared with right cert and pvk file. Pls let me know the steps how you did it. Did you download the code?
visit www.mohamedashraf.tk
|
|
|
|
 |
|
|
 |
|
 |
If you want to read other system's registry then it must be autherised. I think shared dlls will do the same job. Simply create the shared dll using .NET. Hope that would work.
Rgs,
Mohashar
visit www.mohamedashraf.tk
|
|
|
|
 |
|
 |
Thanks for ur reply....
Can u explain the concept of shared assembly..plz
Regards ,
justin
|
|
|
|
 |
|
 |
Please study .NET concept.
A private assembly is a assembly that is available to particular applications where they are kept. And cannot be references outside the scope of the folder where they are kept.
In contrast, Shared Assemblies are the assemblies that are accessible globally/shared across the machine to all the applications. For using the shared assemblies you need to register the assembly with a strong name in the global assembly cache(GAC) using gacutil.exe. GAC can be found on all the computers with .Net framework installed.
Hope this helps.
Rgs,
Mohashar
visit www.mohamedashraf.tk
|
|
|
|
 |
|
 |
Hi mohamed,
Scenario 1: I have created one webpage which contains grid or Textbox or button.When I click the button from the web I want to pass an arguments to WindowsApplication(EXE).Can I do that?.If any article Please help me. Scenario 2: Can I pass arguments from web to windows through OCX.?
-- modified at 1:24 Monday 18th December, 2006
|
|
|
|
 |
|
 |
Hi mohamed,
I am a newbie in C#.net.I want to invoke a EXE(player ,it is in client machine)from web ,That is when I click the button from web,Exe will Invoke.I tried so many ways, butour security settings not supported.How can I over come this problem.Please help me
regards.
justin
|
|
|
|
 |
|
 |
Hi,
Plese check my article here.
http://www15.brinkster.com/mohamedashraf/unsignedOCX/UnsignedOCXToreadRegistry.html
We can access ocx or dll from C#. First create the above ocx/dll and then register(make it secure) then try to access from c#.
Hope this helps.
Rgs,
Ashraf Mohamed
visit www.mohamedashraf.tk
|
|
|
|
 |
|
 |
Hi mohamed,
Thanks for ur response.I will try...
Regards,
justin
|
|
|
|
 |
|
 |
Hi Mohamed,
Thanks for ur response.Its work great.
Regards,
justin.
|
|
|
|
 |
|
 |
Hi,
When I execute sign command, after 3 "test" were input, the message said" msjava.dll is not found ...", how to solve this problem?
Thank you for consideration.
Regards,
Mingsong
|
|
|
|
 |
|
 |
Hi Mingsong,
Have you downloaded all the required files before you sign the applet (or) msjava.dll might have corrupted.. Check it out..
Rgs,
Ashraf Mohamed
visit www.mohamedashraf.tk
|
|
|
|
 |
|
 |
Hi Ashraf,
I downloaded two files: Com.zip and Applet.zip from site www.mohamedashraf.tk. I couldn't find msjava.dll in either of the files.
I follow the steps:
1. Extrate Applet.zip
2. Complile WriteFile.java
3. Type sign at prompt and enter
4. Input password as prompted
Then error message: msjava.dll is not found.
Thank you for your attention.
Regards,
Mingsong
|
|
|
|
 |
|
 |
Hi Ashraf,
I fixed problem by msjava.dll and got message "This file is signed, but not timestamped"
However I open Writefile.html in IE and got message" writeFile: caught security exception"
Why can not the signed applet write file to local disk?
Thanks.
Regards,
Mingsong
|
|
|
|
 |
|
 |
Hello,
I don't know if it's my machine or not, but i cannot open the com.zip file
Please help
thank you
|
|
|
|
 |
|
 |
Hi,
I linked that com package to my personal website www.mohamedashraf.tk. Get the com package from there.
Goto www.mohamedashraf.tk --> Knowledge Base --> Singed applet . Download it.
Let me know if you have any problems.
Rgs,
Ashraf Mohamed
visit www.mohamedashraf.tk
|
|
|
|
 |
|
 |
Please send com package
SignedApplet
|
|
|
|
 |
|
 |
Hi Mohamed Ashraf,
very nice article.
I have a small problem, I cannot reach the file WriteFile.zip
Can you help me?
|
|
|
|
 |
|
 |
Hi Fabrizio,
You can go to www.mohamedashraf.tk --> Knowledge Base --> Signed Applet --> Get the codes from there..
Let me know if you are facing any problems..
Regards,
Ashraf Mohamed
|
|
|
|
 |
|
 |
Hi Ashraf Mohamed,
Thank for your very fast response.
Now is all everything OK !
Thanks again
ProjectSoft
Fabrizio Brozzi
|
|
|
|
 |