{"id":47,"date":"2014-05-11T10:14:05","date_gmt":"2014-05-11T10:14:05","guid":{"rendered":"http:\/\/vkrastev1blog.com\/?p=47"},"modified":"2014-05-12T02:37:00","modified_gmt":"2014-05-12T02:37:00","slug":"how-to-sign-jars-signing-jars-for-use-in-applets","status":"publish","type":"post","link":"https:\/\/vkrastev1blog.com\/2014\/05\/11\/how-to-sign-jars-signing-jars-for-use-in-applets\/","title":{"rendered":"How to sign Jars. Signing Jars for use in Applets."},"content":{"rendered":"<p>As the Browsers now want the Jars to be signed it happens often that man has to sign a Jar himself.<\/p>\n<p>Here is a Manual how to sign a Jar.<\/p>\n<p>First you have to install the Java SDK.<\/p>\n<p><a href=\"http:\/\/www.oracle.com\/technetwork\/java\/javase\/downloads\/index.html?ssSourceSiteId=otnjp\" rel=\"nofollow\">http:\/\/www.oracle.com\/technetwork\/java\/javase\/downloads\/index.html?ssSourceSiteId=otnjp<\/a><\/p>\n<p>Install the JDK from the list for the environment you use.<\/p>\n<p>This Manual is made for Windows users. Set the JAVA_HOME variable and put the JAVA\/bin folder in path in order to use the Java commands.<\/p>\n<p>Now you can create your keystore and key pair. Navigate to your home folder as C:\\Users\\username and execute the following command there in console.<\/p>\n<ul>\n<li><strong>Generate a Java keystore and key pair<\/strong>\n<pre>keytool -genkey -alias mydomain -keyalg RSA -keystore .keystore<\/pre>\n<p>You should answer some questions and in the end you end up with generated keystore named .keystore and the key pair. You should write down the password for the keystore as it is important and will be used after that.<\/p>\n<p>Now navigate to the folder with your Jars and execute the following commands in console:<\/p>\n<pre>jarsigner -sigfile SIG -signedjar SignedApp.jar jar-to-sign.jar alias\r\njarsigner -verify SignedApp.jar<\/pre>\n<p>As in the place of alias put your alias you entered by Generation of the keystore. Jar-to-sign is the jarname you need to sign.<br \/>\nThe verify is made to verify the jar is really successfully signed.<\/p>\n<p>That&#8217;s it.<\/p>\n<p>Happy signing.<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>As the Browsers now want the Jars to be signed it often happens that one has to sign a Jar himself. Here is a Manual how to sign a Jar. First you have to install the Java SDK. <a href=\"http:\/\/www.oracle.com\/technetwork\/java\/javase\/downloads\/index.html?ssSourceSiteId=otnjp\" rel=\"nofollow\">http:\/\/www.oracle.com\/technetwork\/java\/javase\/downloads\/index.html?ssSourceSiteId=otnjp<\/a> Install the JDK from the list for the environment you use. This Manual is made for [&hellip;]<\/p>\n","protected":false},"author":65283547,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_coblocks_attr":"","_coblocks_dimensions":"","_coblocks_responsive_height":"","_coblocks_accordion_ie_support":"","jetpack_seo_llms_txt_always_include":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_wpcom_ai_launchpad_first_post":false,"_jetpack_hide_featured_image":false,"_jetpack_featured_image_duplicate_dismissed":0,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"How to sign Jars. Signing Jars.","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[1017],"tags":[232319076,232319074,2829783,232319073,232319071],"class_list":["post-47","post","type-post","status-publish","format-standard","hentry","category-java","tag-how-to-sign-jar","tag-java-sign-jar","tag-keystore","tag-sign-jar","tag-signing-jars"],"jetpack_publicize_connections":[],"jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p4CoHV-L","jetpack-related-posts":[{"id":217,"url":"https:\/\/vkrastev1blog.com\/2022\/05\/20\/eclipse-how-to-use-the-jpa-static-metamodel-classes-while-writing-criteria-queries-in-hibernate\/","url_meta":{"origin":47,"position":0},"title":"Eclipse how to use the JPA static metamodel classes while writing criteria queries in Hibernate","author":"vkrastev2014","date":"20.05.2022","format":false,"excerpt":"When you use Maven you have to add in your POM following dependency: <dependency> <groupId>org.hibernate<\/groupId> <artifactId>hibernate-jpamodelgen<\/artifactId> <version>5.3.7.Final<\/version> <\/dependency> Now you have to add folder target\\generated-sources\\annotations to your classpath as by default, the classes will be generated in this folder only. You go in Project Build Path -> Configure Build Path\u2026","rel":"","context":"In &quot;Java&quot;","block_context":{"text":"Java","link":"https:\/\/vkrastev1blog.com\/category\/java\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":129,"url":"https:\/\/vkrastev1blog.com\/2014\/05\/26\/new-gpu-bitcoin-miner-is-there-named-diamantminer-how-to-install-on-windows\/","url_meta":{"origin":47,"position":1},"title":"New GPU Bitcoin Miner is there named DiamantMiner. How to install on Windows","author":"vkrastev2014","date":"26.05.2014","format":false,"excerpt":"New GPU Bitcoin Miner is there named DiamantMiner. How to install on Windows I have tried the new bitcoin miner and I find it very good. What you should do to install it on Windows is described here. How to build and install DiamantMiner requires the SDK for Java Version\u2026","rel":"","context":"In &quot;Articles on all other topics that are not included in the main topics&quot;","block_context":{"text":"Articles on all other topics that are not included in the main topics","link":"https:\/\/vkrastev1blog.com\/category\/articles-on-all-other-topics-that-are-not-included-in-the-main-topics\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":189,"url":"https:\/\/vkrastev1blog.com\/2022\/03\/24\/exclude-pom-dependency-from-all-dependencies-in-java-project-eclipse\/","url_meta":{"origin":47,"position":2},"title":"Exclude pom dependency from all dependencies in Java Project Eclipse","author":"vkrastev2014","date":"24.03.2022","format":false,"excerpt":"I have had a problem to exclude a dependency from all dependencies in POM file. If you dont use Eclipse you have to put exlusioin clauses on all dependencies in POM file for this dependency. I use Eclipse and you can do following. Open the Project in Eclipse in Package\u2026","rel":"","context":"In &quot;Java&quot;","block_context":{"text":"Java","link":"https:\/\/vkrastev1blog.com\/category\/java\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":224,"url":"https:\/\/vkrastev1blog.com\/2022\/06\/01\/eclipse-problem-by-changing-git-password\/","url_meta":{"origin":47,"position":3},"title":"Eclipse problem by changing GIT password","author":"vkrastev2014","date":"01.06.2022","format":false,"excerpt":"I have had a problem by changing the GIT password in Eclipse. Eclipse could not change the password in the secure storage and I couldn't use GIT anymore. You schould do following: Eclipse go to Preferences -> General -> Security -> Secure storage and in Contents tab delete \"Default Secure\u2026","rel":"","context":"In &quot;Java&quot;","block_context":{"text":"Java","link":"https:\/\/vkrastev1blog.com\/category\/java\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":194,"url":"https:\/\/vkrastev1blog.com\/2022\/03\/30\/java-configure-log4j2-in-your-project\/","url_meta":{"origin":47,"position":4},"title":"Java configure Log4j2 in your Project","author":"vkrastev2014","date":"30.03.2022","format":false,"excerpt":"Log4j2 and SLF4j Binding DependenciesTo make Log4j2 work with SLF4J, we need to include the following 3 dependencies. log4j-slf4j-impl.jar \u2013 Log4j 2 SLF4J binding. It allows applications coded to the SLF4J API to use Log4j2 as the implementation.log4j-api.jar \u2013 provides the adapter components required for implementers to create a logging\u2026","rel":"","context":"In &quot;Java&quot;","block_context":{"text":"Java","link":"https:\/\/vkrastev1blog.com\/category\/java\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":83,"url":"https:\/\/vkrastev1blog.com\/2014\/05\/16\/how-to-set-up-the-classpath-in-jar-manifest\/","url_meta":{"origin":47,"position":5},"title":"How to set up the classpath in jar manifest","author":"vkrastev2014","date":"16.05.2014","format":false,"excerpt":"You must break after exactly 70 characters. Otherwise the next line is not going to be treated as a continuation from the previous. There should be a leading space in all the wrapped lines, with a leading space for every line different from that with \"Class-path:\". And don't forget a\u2026","rel":"","context":"In &quot;Java&quot;","block_context":{"text":"Java","link":"https:\/\/vkrastev1blog.com\/category\/java\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"jetpack_likes_enabled":true,"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/vkrastev1blog.com\/wp-json\/wp\/v2\/posts\/47","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/vkrastev1blog.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/vkrastev1blog.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/vkrastev1blog.com\/wp-json\/wp\/v2\/users\/65283547"}],"replies":[{"embeddable":true,"href":"https:\/\/vkrastev1blog.com\/wp-json\/wp\/v2\/comments?post=47"}],"version-history":[{"count":3,"href":"https:\/\/vkrastev1blog.com\/wp-json\/wp\/v2\/posts\/47\/revisions"}],"predecessor-version":[{"id":63,"href":"https:\/\/vkrastev1blog.com\/wp-json\/wp\/v2\/posts\/47\/revisions\/63"}],"wp:attachment":[{"href":"https:\/\/vkrastev1blog.com\/wp-json\/wp\/v2\/media?parent=47"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/vkrastev1blog.com\/wp-json\/wp\/v2\/categories?post=47"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/vkrastev1blog.com\/wp-json\/wp\/v2\/tags?post=47"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}