{"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_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":[],"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}]}}