jar-signing

Sign a JAR automatically when building from Netbeans

这一生的挚爱 提交于 2019-11-30 20:16:53
I want to know if Netbeans has some option or setting that will allow me to automatically sign a jar as part of the build. trashgod In your -post-jar ant target, it may be convenient to read the <signjar> password from a file, e.g. ~/.keyconf . Give the file user-only access: e.g. 400 or 600 . <loadfile srcfile="${user.home}/.keyconf" property="keyconf"/> <signjar alias="..." storepass="${keyconf}"> ... </signjar> You could use the maven plugin for that. Netbeans is able to open and create maven files out-of-the-box. If you need signing for jnlp you could look into this and that explanation,

Un signing a signed jar

柔情痞子 提交于 2019-11-30 18:40:19
I am using bouncy castle provider for AES encryption. I need to create a fat jar from bc and my jar but as soon as i do it i get Algorithm not found exception. Is it possible to get rid of the sign and create regular jar out of it? My build process is.. i unzip all jars in to my build directory. then remove META-INF directory compile my application jar it using ant iget the error when i try to use the SecretKeyFactory.getInstance(algorithm); algorithm is PBEWITHSHA256AND128BITAES-CBC-BC from bouncy castle. To remove the signature from a jar file, remove the META-INF directory from it. A jar

INSTALL_PARSE_FAILED_NO_CERTIFICATES failure installing modified apk file (invalid SHA1 signature), even after signing with jarsigner

那年仲夏 提交于 2019-11-30 16:14:21
问题 I know there are a lot of other people experiencing the INSTALL_PARSE_FAILED_NO_CERTIFICATES error when they forget to sign their apk. This is not the problem I'm describing. I will detail what I'm doing in several steps. I have a zipaligned, signed apk file (AndroidWorld.apk). I can install this no problem. So far, so good. Next, I decompile the apk with apktool. Also, so far so good. After that, I use asmdex to modify the classes.dex file and inject some method logging. At this point, if I

How to sign a JAR file using a .PFX file

百般思念 提交于 2019-11-30 11:41:54
问题 We sign our .net code with a .PFX cert file. A colleague now needs to use the the same cert to sign a .jar file for a customer. Can someone point me to a link or an example of how I can do this please? The jar file will be used on Oracle Web Logic Server running on Solaris. And, once signed do we need to send out anything other signed jar file? Thanks. 回答1: From here : https://support.comodo.com/index.php?_m=knowledgebase&_a=viewarticle&kbarticleid=1072 Check if you can see the certs ->

How to change the alias of a key within a keystore?

对着背影说爱祢 提交于 2019-11-30 06:16:03
问题 I signed my JWS application MemorizEasy with a key whose alias is: memofile.reference.emma.jar=/Users/simpatico/.netbeans/6.8/modules/ext/emma.jar I don't remember why I chose such a long alias. I suspect it was memo only, but in my project settings I have: jnlp.signjar.alias=memofile.reference.emma.jar=/Users/simpatico/.netbeans/6.8/modules/ext/emma.jar I'm now updating the application and using maven I need to specify the alias as: <keystorealias>memofile.reference.emma.jar=/Users/simpatico

Sign a JAR automatically when building from Netbeans

不想你离开。 提交于 2019-11-30 03:55:35
问题 I want to know if Netbeans has some option or setting that will allow me to automatically sign a jar as part of the build. 回答1: In your -post-jar ant target, it may be convenient to read the <signjar> password from a file, e.g. ~/.keyconf . Give the file user-only access: e.g. 400 or 600 . <loadfile srcfile="${user.home}/.keyconf" property="keyconf"/> <signjar alias="..." storepass="${keyconf}"> ... </signjar> 回答2: You could use the maven plugin for that. Netbeans is able to open and create

Un signing a signed jar

拟墨画扇 提交于 2019-11-30 02:46:13
问题 I am using bouncy castle provider for AES encryption. I need to create a fat jar from bc and my jar but as soon as i do it i get Algorithm not found exception. Is it possible to get rid of the sign and create regular jar out of it? My build process is.. i unzip all jars in to my build directory. then remove META-INF directory compile my application jar it using ant iget the error when i try to use the SecretKeyFactory.getInstance(algorithm); algorithm is PBEWITHSHA256AND128BITAES-CBC-BC from

Absolute minimum code to get a valid oauth_signature populated in Java or Groovy?

試著忘記壹切 提交于 2019-11-30 01:32:06
SO I am testing a Rest OAuth implementation. My testing tool will send the HTTP Request, but I need to prepare the Authorization header. What I need: I want a valid Authorization Header What I have: All the headers except the oauth_signature I also have the 2 secrets, the token_secret and the consumer_secret. I also posses the access_token. So It really boils down to, having to sign this request. How do I do that? Summary : I simply need to populate the oauth_signature portion of the Authorization header for a RESTful service. How do I do it? Basically: oAuthHeader="OAuth"; oAuthHeader

How to use jarsigner for signing an apk?

◇◆丶佛笑我妖孽 提交于 2019-11-29 02:36:49
问题 I have very little programming knowledge.I am able to open jar signer through the command prompt then I get various jar signer options,which i do not know how to use them.Can anyone explain me what should i type in the command prompt in order to sign the app? 回答1: You can find all the information you need about this topic on d.android.com: http://developer.android.com/tools/publishing/app-signing.html#signapp jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore my-release-key

How to change the alias of a key within a keystore?

我怕爱的太早我们不能终老 提交于 2019-11-28 16:29:30
I signed my JWS application MemorizEasy with a key whose alias is: memofile.reference.emma.jar=/Users/simpatico/.netbeans/6.8/modules/ext/emma.jar I don't remember why I chose such a long alias. I suspect it was memo only, but in my project settings I have: jnlp.signjar.alias=memofile.reference.emma.jar=/Users/simpatico/.netbeans/6.8/modules/ext/emma.jar I'm now updating the application and using maven I need to specify the alias as: <keystorealias>memofile.reference.emma.jar=/Users/simpatico/.netbeans/6.8/modules/ext/emma.jar </keystorealias> Yet that doesn't work. Trying another key with