Sign the Applet code using pfx certificate got Error?
I use my existing certificate (.pfx) to sign my applet code as follows (without any key gen. before, directly sign by this certificate)
jarsigner -storetype pkcs12 -keystore C:\mycert.pfx AppletCode.jar keyEntries
Although the code can be signed, when i view this page, it prompts me "Certificate not verified" and with error:
java.security.cert.CertificateException: Check leaf key usage failed in certificate.
What is wrong? Any body can help me?
* I try to geneate the self-certificate by keytool to sign my code, it can be viewed properly.
1) Check if your .pfx certificate has the following purposes (read it using the venerable Internet Explorer):
Ensures software came from software publisher
Protects software from alteration after publication
2) Put your certificate in the cacerts file
Similar Messages
-
Last night when i tried to sign a document i received the mesage below and after that it says this document can't be signed what can i do to fix this problem.
Error encountered while signing:
The Windows Cryptographic Service Provider reported an error:
Access was denied because of a security violation.
Error Code: 2148532330I assume you are implying "biztax" application here, right?
I have contacted their program lead, with no result at all.
Past days I have been searching for a solution - reinstalls / new systems - no solution.
This issue appeared a week or two ago only.
I found http://forums.adobe.com/message/5338853 useful - but no positive results either.
http://test.eid.belgium.be/faq/faq_nl.htm obviously didnt help either.
If anyone finds a solution to this issue, please do let me know - any help is appreciated.
Biztax tells to use the "signature", not the "authentication" - but it is only Auth. that is showing up as option to sign (that works)
ps, did you fiddle with the Adobe Reader XI security settings and import that PKI etc as well? I hoped that would be the breaktrough. Sadly i'm still crying in my chair.
Oh, and dont forget: they claim nobody else got this issue. Maybe one or two people. (We got about 8 customers experiencing exactly the same symptoms at the same time )
> I noticed that when I try to open the pdf document that is 'signed' by the government it is not showing the filename in the title bar, but only " - Adobe Reader". every piece of info helps I guess.
Obviously last version of Reader 11.0.03 -
what is the redemption code? I have got cd of adobe creative suite 6 and I have just subscribe in creative cloud and I want to activated? so what is the redemption code?
about cs6, Find your serial number quickly
about cc, there is no redemption code. you use your adobe id to sign in and start downloading your apps, https://creative.adobe.com/ -
To whom it may concern,
According to Java RIA checklist(http://www.oracle.com/technetwork/java/javase/overview/ria-checklist-2055184.html),
as of 7u51(January 2014), Permissions Manifest attribute in main JAR file will be required.
But, at least, as of 7u45, when the Security Level slider is set to Very High,
a jar without Permissions Manifest attribute, which doesn't contain the applet code but is just referenced by the applet,
prevent the applet from running.
So, the question is:
In 7u51, does it mean that all jars referenced by the applet need to be updated to include the Permissions Manifest attribute ?
Or will it be limited to the jar that contains the applet code?
There is a concern that we will have to modify library jars that we do not control.
Sincerely,
Toshio ShikoThank you for your quick response and your investigation!
It do help us very much.
But, unfortunately, for the moment, I'm not allowed to test the early access version.
As soon as circumstances are changed, I' d like to test it.
Again, thank you for your providing of the useful information. -
How can i write the below code using "For all entries"
Hi
How can we write the below code using "for all entries" and need to avoid joins...
Please help
SELECT aaufnr aobjnr aauart atxjcd a~pspel
agstrp awerks carbpl cwerks
INTO TABLE t_caufv
FROM caufv AS a
INNER JOIN afih AS b
ON aaufnr = baufnr
INNER JOIN crhd AS c
ON bgewrk = cobjid
AND c~objty = 'D'
WHERE ( a~pspel = space
OR a~txjcd = space
OR NOT a~objnr IN
( select OBJNR from COBRB AS e
WHERE objnr = a~objnr ) )
AND a~werks IN s_plant
AND a~auart IN s_wtype
AND NOT a~objnr IN
( select OBJNR from JEST AS d
WHERE objnr = a~objnr
AND ( dstat = 'A0081'OR dstat = 'A0018' )
AND d~inact 'X' ).
Reward points for all helpfull answers
Thanks
Ammi.Hi,
SELECT objnr objid aufnr
from afih
into table t_afih.
SELECT objnr
from JEST
into table t_JEST
where stat = 'A0045'
OR stat = 'A0046'
AND inact 'X'.
SELECT objnr
from COBRB
into table t_cobrb.
SELECT arbpl werks objid objty
from crhd
INTO table it_crhd
FOR ALL ENTRIES IN it_afih
WHERE objty eq 'D'
AND gewrk = it_afih-objid.
SELECT aufnr objnr auart txjcd pspel gstrp werks aufnr
FROM caufv
INTO table t_caufv
FOR ALL ENTRIES IN it_afih
WHERE aufnr = it_afih-aufnr
And pspel = ' '
AND txjcd = ' '
ANd objnr ne it_crhd-objnr
AND auart in s_wtype
AND werks in s_plant.
AND objnr ne it_jest-objnr.
dont use NE in the select statements, it may effect performance also. Instead use if statements inside
loops.
loop at t_caufv.
read table it_chrd............
if t_caufv-objnr ne it_chrd-objnr.
read table it_jest..........
if if t_caufv-objnr ne it_jest-objnr.
(proceed further).
endif.
endif.
endloop.
hope this helps.
Reward if useful.
Regards,
Anu -
When I load Illustrator creative suit (5.5) on my new computer, it loads Then I put in the serial number, which is correct, but when i go to click on the program to use it it says ERROR: localized resource file from this program could not be loaded. please re install of repair the application and try again. I have done this and it's still not working
anomaly jade,
You only need to use the serial number during installation.
Have you, at least seemingly, been able to install, and then you are unable to start up?
If that is the case, you could try to reinstall using the full three step way:
Uninstall, run the Cleaner Tool, and reinstall.
http://www.adobe.com/support/contact/cscleanertool.html -
How to sign the applet with verisign certificate?
Hi,
I got a test certificate from the Verisign.
Now I want to know, how to sign my applet with that certificate?
Thanks,
Siva E.Hi!
You have to create a keystore wich contains the certificate. I think you call keystore -import "verisign.cert"Try the command, and it will tell you what it needs.
To do the acutal signing of an applet (jar-file), you write somehting like this:
jarsigner -keystore "NameOfKeystore" -keypass "PasswordToPrivKey" -storepass "PasswordToStore" "YourJarFile.jar" "CertAlias"The cert alias is an alias you created when importing the certificate. Hope it Helps!
Henrik -
Using PFX certificate to call web services
Hi,
I need to use a PFX certificate to invoke a web services over HTTPS using a simple Java client; I've followed these steps:
1 - convert .pfx certificate in .cer format: I've imported the certificate in Internet Explorer and then exported in .cer format
2 - write a simple code before invocation of web service like this: System.setProperty("javax.net.ssl.trustStore","C:\\myCertificate.cer");
System.setProperty("javax.net.ssl.trustStoreType","PKCS12");
System.setProperty("javax.net.ssl.trustStorePassword","myPwd");but it does'nt work and this exception occured:
java.net.SocketException: Default SSL context init failed: DerInputStream.getLength(): lengthTag=109, too big.Then I've tried to import my certificate in a jsk keystore by keystore tool; after I've changed my code like this:
System.setProperty("javax.net.ssl.keyStore","C:\\myjks.jks");
System.setProperty("javax.net.ssl.keyStoreType","JKS");
System.setProperty("javax.net.ssl.keyStorePassword","myPwd");but the eception is:
sun.security.validator.ValidatorException: No trusted certificate foundWich are the right stpes to use a pfx certificate in a Java environment?
Thanks in advance.
RobI've resolved my problem coding a custom SecureSocketFactory which I load programmatically into my SSL Context and then activate in my Axis client:
public class MySocketFactory implements SecureSocketFactory {
private Hashtable ht;
public MySocketFactory(Hashtable ht) throws Exception {
this.ht = ht;
public Socket create(String host, int port, StringBuffer hds,
BooleanHolder bh) throws Exception {
SSLSocket theSocket = null;
try {
KeyStore keyStoreKeys;
KeyManagerFactory keyMgrFactory;
SSLContext sslContext;
keyStoreKeys = KeyStore.getInstance("PKCS12");
keyStoreKeys.load(new FileInputStream("mykey.pfx"),"mypwd".toCharArray());
keyMgrFactory = KeyManagerFactory.getInstance("SunX509");
keyMgrFactory.init(keyStoreKeys, "mypwd".toCharArray());
sslContext = SSLContext.getInstance("SSL");
sslContext.init(keyMgrFactory.getKeyManagers(), null, null);
SSLSocketFactory socketFactory = sslContext.getSocketFactory();
theSocket = (SSLSocket) socketFactory.createSocket(host, port);
} catch (Exception e) {
e.printStackTrace();
return theSocket;
}Then, in my proxy client, I activate in Axis my factory by this statement:
AxisProperties.setProperty("org.apache.axis.components.net.SecureSocketFactory", "socketfactory.MySocketFactory");bye
Rob -
How do I update a file in an Applet's JAR file from the Applet code
Here's my problem.
My applet is using a serializable history data in which I am storing in the applet's JAR file. When I run the applet, I read the file with "getResourceAsStream()" and run my program with that hist data. When my applet is closed, I need to update this file from my Applet's code and I dumfounded about how to do that.
Is there any way to update a file in the Applet's JAR file through the Java Applet code? (i.e. OutputStream?).
Would appreciate any advice people have.Just place a copy of the file on the local hard disk and update that. When you start the Applet you try to read from the hard disk. If the file exists then no problem otherwise copy it from the jar to the hard disk.
-
Urgent help needed - writing japanese into the applet code from servlet
Hi,
I have a jsp file which writes an applet as well as a popup menu on the applet. All the menu items and applet text displays japanese character.
Two menu items on this popup menu are written by the same jsp while three dynamic menu items are written by a servlet which does so by writing a response back to the jsp.
My problem is when I write the popup items from the servlet it doesn't display the japanese character but something like this "-- $B?7$7$$$*5RMM$rA*Br(B --"
I am sure that something wrong in the way I write into the response in the SERVLET because JSP writes japanese menu items fine.
my code in servlet is like this.
response.setContentType("text/plain;charset=ISO-2022-JP");
PrintWriter output = response.getWriter();
output.println(\u30aa\u30f3\u30c7\u30de\u30f3\u30c9\u30ec\u30dd\u30fc\u30c8);
I have set the font family to, font-family: gothic, mincho, arial unicode ms; in the jsp that takes care of displaying everything propertly but the MenuItems from the servlet :(
Please write back if you have the solution.
Thanks,
preeti..i don't know exactly,but ithink that the problem is about the ISO-code
japanese has got another number -
Error when trying to sign the Applet, please Help
Hello,
I have this Error when I am trying to sign my applet, after execut this command :
jarsigner -verify -verbose -certs test.jar
jarsigner: java.lang.SecurityException: invalid SHA1 signature file digest for classe/JDBC_SQL.class
And for your information, that I had add the JDBC_SQL.class to the jar file (test.jar) because I made some change to the file JDBC_SQL.java
so please if you know what can I do to resolve my problem
Thank you to reponse !
rania +ahh, here is a problem. u made changes to the JDBC_SQL.java and packed the jar file. u have to sign the jar file again.
let me know if u need futher assistance -
How to know what are the T Codes used by client in SAP HR module in qualit
hi experts,
i have a access of quality server given by my client in SAP HR.I dont know what are the Tcodes used by client.So how i can know what are the Tcodes client is using frequently.i have to list out all TCodes urgently.
PLZ reply ASAP.
Thanx in advance..Hi
You can do this by going to SUIM-Transactions-Executable for User
Then give the user name/id as in user master record and execute. Now the system will display the list of transaction codes used by that particular user.
Regards
Santhosh.S -
How to run the sample code using the sdk?
Hi,
I want to run the jsp code from the enterprize sdk available in the sdn community. Can any one tell me how to execute these jsp sample codes and what is the pre-requisite regarding the set up.
I already have the deployment ready.
thanks
AMarHi Amar,
To execute samples code, it is same what is required for normal J2EE application.
Make sure add all the jars to your web application.
These jars can be found on your BO server installation if windows.
For BOE XI 3.x
C:\Program Files\Business Objects\common\4.0\java\lib
C:\Program Files\Business Objects\common\4.0\java\lib\external
For BOE XI R2
C:\Program Files\Business Objects\common\3.5\java\lib
C:\Program Files\Business Objects\common\3.5\java\lib\external
Thanks,
Praveen. -
How can i write the bellow code using field symbols
data : it_mara type table of mara.
select * from mara
into it_mara.
delete it_mara where matnr = '100-100'
and meins = 'KG'.
if i do the same by using field symbols
i am getting data into <it_mara>
but
delete <it_mara> where matnr = '100-100'
and meins = 'KG'.
is showing syntax error
how to correct the error ?I think, DELETE does not allows to dynamically define the logical expression for the WHERE clausule.
Have you tried by filtering data in SELECT statement??
Something like:
if dataBase = 'MARA'.
append 'MATNR <> '100-100'' to Itab_Where[].
append 'AND MEINS <> 'KG'' to Itab_Where[].
endIf.
select * from (dataBase) where (Itab_Where) into table <my_table>.
this is possible, but I don't know if this fits your requirements. -
I am locked out. Can anyone help?
To remove the Restrictions passcode you will need to either...
Restore the Device as New...
http://support.apple.com/kb/HT4137
OR...
from a Backup created Before the Restrictions Code was set....
Restore from Backup
http://support.apple.com/kb/ht1766
Maybe you are looking for
-
Toshiba 32RL938 - Cannot connect to PC with Win 8.1 using WIDI
Hi, I have a 32RL938 TV and I would connect my Hybrid PC to WIDI. But I have a problem, when I search the TV, i can't find it. I have Windows 8.1 and I do this : http://www.intel.com/content/www/us/en/architecture-and-technology/widi-software-setup-w
-
ITunes and iPad 2...just want to view my music!
I'm trying to set up iTunes so it behaves and appears like it does on my PC. Right now when I click on the iTunes icon on my iPad 2, it goes directly to the iTunes store. I just want it to go directly to my music. Not the store....not purchased so
-
I have a Mac Pro 1,1 and have been experiencing some RAM problems. First, I had RAM sticks fail on the entire top riser card. I replaced all of it and have been fine up until now. Now, when I start up my machine, one pair of 2 GB sticks will registe
-
I select it from plugin drop down that appears, reboot - nothing. Exit FF reload - nothing Load Flash manually with FF closed, launch FF - nothing Upgraded from 4 to 5 tried all above again - nothing
-
Link Finance and Controlling / Subledger tables extractors
Hi experts, I would need your help for following scenarios. We would like to have the ability to extract profit centers from New GL tables, for below scenarios: Issue 1: Profit Center is not in the controlling tables/ flows. It is required to extra