{"id":5611,"date":"2012-05-31T23:52:45","date_gmt":"2012-05-31T18:22:45","guid":{"rendered":"http:\/\/www.tothenew.com\/blog\/?p=5611"},"modified":"2012-06-01T05:50:04","modified_gmt":"2012-06-01T00:20:04","slug":"set-up-ssl-communication-between-two-server-using-keytool-command","status":"publish","type":"post","link":"https:\/\/www.tothenew.com\/blog\/set-up-ssl-communication-between-two-server-using-keytool-command\/","title":{"rendered":"Set-up SSL Communication between two Linux servers Using Keytool Command"},"content":{"rendered":"<p>In one of my project, My front end application runs on one server and back end application runs on another. Both application have to communicate with each other through SSL(Secure Sockets Layer). SSL is a way to secure internet communication from your browser to a secure website. The websites using SSL will have https:\/\/ to their name. <\/p>\n<p>In comes the Java keytool command, which is a key and certificate management utility. Keytool is a java security tool, which is used to create and manage public keys,private keys,and security certificate. It manages a keystore (database) of cryptographic keys, X.509 certificate chains, and trusted certificates.<br \/>\n<br \/>\nUsing the Java keytool command you can add the certicate into your keystore as trusted certificate. <\/p>\n<p>Following are the steps to perform https communication between two application on different servers:<br \/>\n1. Copy server1-site.crt file to Server 2.<br \/>\n2. Now, Import this root or intermediate CA certificate to an existing Java keystore, using the command:<br \/>\n    &nbsp;&nbsp;&nbsp;&nbsp;Default keystore password is <strong>changeit<\/strong><br \/>\n<br \/>\n<code>keytool -import -trustcacerts -keystore cacerts -storepass YOUR_KEYSTORE_PASSWORD -noprompt -alias webAppCertificate -file www.web-app.mydomain.com.crt <\/code><br \/>\n<br \/>\n3. Restart apache by issuing command: \/etc\/init.d\/apache2 restart OR apache2ctl restart<br \/>\n4. Repeat, Steps 1 to 3 on server1 with server2-site.crt file.<br \/>\n<br \/>\nUsing the keytool command you can add , delete ,list certificate from your keystore.<br \/>\n<br \/>\nRefrence: http:\/\/www.sslshopper.com\/article-most-common-java-keytool-keystore-commands.html<br \/>\n<br \/>\nHope it Helps!<\/p>\n<p>Regards,<br \/>\nGautam Malhotra<br \/>\ngautam@intelligrape.com<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In one of my project, My front end application runs on one server and back end application runs on another. Both application have to communicate with each other through SSL(Secure Sockets Layer). SSL is a way to secure internet communication from your browser to a secure website. The websites using SSL will have https:\/\/ to [&hellip;]<\/p>\n","protected":false},"author":25,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"iawp_total_views":55,"footnotes":""},"categories":[1],"tags":[18,825,4844,826,260,824,8],"class_list":["post-5611","post","type-post","status-publish","format-standard","hentry","category-technology","tag-apache","tag-certificates","tag-java","tag-keytool","tag-linux","tag-ssl","tag-ubuntu"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 5.0.0.1 - aioseo.com -->\n\t<meta name=\"description\" content=\"In one of my project, My front end application runs on one server and back end application runs on another. Both application have to communicate with each other through SSL(Secure Sockets Layer). SSL is a way to secure internet communication from your browser to a secure website. The websites using SSL will have https:\/\/ to\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"Gautam Malhotra\"\/>\n\t<link rel=\"canonical\" href=\"https:\/\/www.tothenew.com\/blog\/set-up-ssl-communication-between-two-server-using-keytool-command\/\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 5.0.0.1\" \/>\n\t\t<meta property=\"og:locale\" content=\"en_US\" \/>\n\t\t<meta property=\"og:site_name\" content=\"TO THE NEW BLOG\" \/>\n\t\t<meta property=\"og:type\" content=\"blog\" \/>\n\t\t<meta property=\"og:title\" content=\"Set-up SSL Communication between two Linux servers Using Keytool Command | TO THE NEW Blog\" \/>\n\t\t<meta property=\"og:description\" content=\"In one of my project, My front end application runs on one server and back end application runs on another. Both application have to communicate with each other through SSL(Secure Sockets Layer). SSL is a way to secure internet communication from your browser to a secure website. The websites using SSL will have https:\/\/ to\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/www.tothenew.com\/blog\/set-up-ssl-communication-between-two-server-using-keytool-command\/\" \/>\n\t\t<meta property=\"og:image\" content=\"https:\/\/www.tothenew.com\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png\" \/>\n\t\t<meta property=\"og:image:secure_url\" content=\"https:\/\/www.tothenew.com\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary\" \/>\n\t\t<meta name=\"twitter:site\" content=\"@tothenew\" \/>\n\t\t<meta name=\"twitter:title\" content=\"Set-up SSL Communication between two Linux servers Using Keytool Command | TO THE NEW Blog\" \/>\n\t\t<meta name=\"twitter:description\" content=\"In one of my project, My front end application runs on one server and back end application runs on another. Both application have to communicate with each other through SSL(Secure Sockets Layer). SSL is a way to secure internet communication from your browser to a secure website. The websites using SSL will have https:\/\/ to\" \/>\n\t\t<meta name=\"twitter:image\" content=\"https:\/\/www.tothenew.com\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/set-up-ssl-communication-between-two-server-using-keytool-command\\\/#article\",\"name\":\"Set-up SSL Communication between two Linux servers Using Keytool Command | TO THE NEW Blog\",\"headline\":\"Set-up SSL Communication between two Linux servers Using Keytool Command\",\"author\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/author\\\/gautam\\\/#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/#organization\"},\"datePublished\":\"2012-05-31T23:52:45+05:30\",\"dateModified\":\"2012-06-01T05:50:04+05:30\",\"inLanguage\":\"en-US\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/set-up-ssl-communication-between-two-server-using-keytool-command\\\/#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/set-up-ssl-communication-between-two-server-using-keytool-command\\\/#webpage\"},\"articleSection\":\"Technology, apache, certificates, Java, keytool, Linux, ssl, Ubuntu\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/set-up-ssl-communication-between-two-server-using-keytool-command\\\/#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.tothenew.com\\\/blog\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/category\\\/technology\\\/#listItem\",\"name\":\"Technology\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/category\\\/technology\\\/#listItem\",\"position\":2,\"name\":\"Technology\",\"item\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/category\\\/technology\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/set-up-ssl-communication-between-two-server-using-keytool-command\\\/#listItem\",\"name\":\"Set-up SSL Communication between two Linux servers Using Keytool Command\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/set-up-ssl-communication-between-two-server-using-keytool-command\\\/#listItem\",\"position\":3,\"name\":\"Set-up SSL Communication between two Linux servers Using Keytool Command\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/category\\\/technology\\\/#listItem\",\"name\":\"Technology\"}}]},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/#organization\",\"name\":\"TO THE NEW Blog\",\"url\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/author\\\/gautam\\\/#author\",\"url\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/author\\\/gautam\\\/\",\"name\":\"Gautam Malhotra\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/set-up-ssl-communication-between-two-server-using-keytool-command\\\/#authorImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/bed491170aa57c9fa07df609957634f58b398bceae349b637e2947459bc7606d?s=96&d=mm&r=g\",\"width\":96,\"height\":96,\"caption\":\"Gautam Malhotra\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/set-up-ssl-communication-between-two-server-using-keytool-command\\\/#webpage\",\"url\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/set-up-ssl-communication-between-two-server-using-keytool-command\\\/\",\"name\":\"Set-up SSL Communication between two Linux servers Using Keytool Command | TO THE NEW Blog\",\"description\":\"In one of my project, My front end application runs on one server and back end application runs on another. Both application have to communicate with each other through SSL(Secure Sockets Layer). SSL is a way to secure internet communication from your browser to a secure website. The websites using SSL will have https:\\\/\\\/ to\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/set-up-ssl-communication-between-two-server-using-keytool-command\\\/#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/author\\\/gautam\\\/#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/author\\\/gautam\\\/#author\"},\"datePublished\":\"2012-05-31T23:52:45+05:30\",\"dateModified\":\"2012-06-01T05:50:04+05:30\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/\",\"name\":\"TO THE NEW Blog\",\"inLanguage\":\"en-US\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/#organization\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"Set-up SSL Communication between two Linux servers Using Keytool Command | TO THE NEW Blog","description":"In one of my project, My front end application runs on one server and back end application runs on another. Both application have to communicate with each other through SSL(Secure Sockets Layer). SSL is a way to secure internet communication from your browser to a secure website. The websites using SSL will have https:\/\/ to","canonical_url":"https:\/\/www.tothenew.com\/blog\/set-up-ssl-communication-between-two-server-using-keytool-command\/","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.tothenew.com\/blog\/set-up-ssl-communication-between-two-server-using-keytool-command\/#article","name":"Set-up SSL Communication between two Linux servers Using Keytool Command | TO THE NEW Blog","headline":"Set-up SSL Communication between two Linux servers Using Keytool Command","author":{"@id":"https:\/\/www.tothenew.com\/blog\/author\/gautam\/#author"},"publisher":{"@id":"https:\/\/www.tothenew.com\/blog\/#organization"},"datePublished":"2012-05-31T23:52:45+05:30","dateModified":"2012-06-01T05:50:04+05:30","inLanguage":"en-US","mainEntityOfPage":{"@id":"https:\/\/www.tothenew.com\/blog\/set-up-ssl-communication-between-two-server-using-keytool-command\/#webpage"},"isPartOf":{"@id":"https:\/\/www.tothenew.com\/blog\/set-up-ssl-communication-between-two-server-using-keytool-command\/#webpage"},"articleSection":"Technology, apache, certificates, Java, keytool, Linux, ssl, Ubuntu"},{"@type":"BreadcrumbList","@id":"https:\/\/www.tothenew.com\/blog\/set-up-ssl-communication-between-two-server-using-keytool-command\/#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/www.tothenew.com\/blog#listItem","position":1,"name":"Home","item":"https:\/\/www.tothenew.com\/blog","nextItem":{"@type":"ListItem","@id":"https:\/\/www.tothenew.com\/blog\/category\/technology\/#listItem","name":"Technology"}},{"@type":"ListItem","@id":"https:\/\/www.tothenew.com\/blog\/category\/technology\/#listItem","position":2,"name":"Technology","item":"https:\/\/www.tothenew.com\/blog\/category\/technology\/","nextItem":{"@type":"ListItem","@id":"https:\/\/www.tothenew.com\/blog\/set-up-ssl-communication-between-two-server-using-keytool-command\/#listItem","name":"Set-up SSL Communication between two Linux servers Using Keytool Command"},"previousItem":{"@type":"ListItem","@id":"https:\/\/www.tothenew.com\/blog#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/www.tothenew.com\/blog\/set-up-ssl-communication-between-two-server-using-keytool-command\/#listItem","position":3,"name":"Set-up SSL Communication between two Linux servers Using Keytool Command","previousItem":{"@type":"ListItem","@id":"https:\/\/www.tothenew.com\/blog\/category\/technology\/#listItem","name":"Technology"}}]},{"@type":"Organization","@id":"https:\/\/www.tothenew.com\/blog\/#organization","name":"TO THE NEW Blog","url":"https:\/\/www.tothenew.com\/blog\/"},{"@type":"Person","@id":"https:\/\/www.tothenew.com\/blog\/author\/gautam\/#author","url":"https:\/\/www.tothenew.com\/blog\/author\/gautam\/","name":"Gautam Malhotra","image":{"@type":"ImageObject","@id":"https:\/\/www.tothenew.com\/blog\/set-up-ssl-communication-between-two-server-using-keytool-command\/#authorImage","url":"https:\/\/secure.gravatar.com\/avatar\/bed491170aa57c9fa07df609957634f58b398bceae349b637e2947459bc7606d?s=96&d=mm&r=g","width":96,"height":96,"caption":"Gautam Malhotra"}},{"@type":"WebPage","@id":"https:\/\/www.tothenew.com\/blog\/set-up-ssl-communication-between-two-server-using-keytool-command\/#webpage","url":"https:\/\/www.tothenew.com\/blog\/set-up-ssl-communication-between-two-server-using-keytool-command\/","name":"Set-up SSL Communication between two Linux servers Using Keytool Command | TO THE NEW Blog","description":"In one of my project, My front end application runs on one server and back end application runs on another. Both application have to communicate with each other through SSL(Secure Sockets Layer). SSL is a way to secure internet communication from your browser to a secure website. The websites using SSL will have https:\/\/ to","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/www.tothenew.com\/blog\/#website"},"breadcrumb":{"@id":"https:\/\/www.tothenew.com\/blog\/set-up-ssl-communication-between-two-server-using-keytool-command\/#breadcrumblist"},"author":{"@id":"https:\/\/www.tothenew.com\/blog\/author\/gautam\/#author"},"creator":{"@id":"https:\/\/www.tothenew.com\/blog\/author\/gautam\/#author"},"datePublished":"2012-05-31T23:52:45+05:30","dateModified":"2012-06-01T05:50:04+05:30"},{"@type":"WebSite","@id":"https:\/\/www.tothenew.com\/blog\/#website","url":"https:\/\/www.tothenew.com\/blog\/","name":"TO THE NEW Blog","inLanguage":"en-US","publisher":{"@id":"https:\/\/www.tothenew.com\/blog\/#organization"}}]},"og:locale":"en_US","og:site_name":"TO THE NEW BLOG","og:type":"blog","og:title":"Set-up SSL Communication between two Linux servers Using Keytool Command | TO THE NEW Blog","og:description":"In one of my project, My front end application runs on one server and back end application runs on another. Both application have to communicate with each other through SSL(Secure Sockets Layer). SSL is a way to secure internet communication from your browser to a secure website. The websites using SSL will have https:\/\/ to","og:url":"https:\/\/www.tothenew.com\/blog\/set-up-ssl-communication-between-two-server-using-keytool-command\/","og:image":"https:\/\/www.tothenew.com\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png","og:image:secure_url":"https:\/\/www.tothenew.com\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png","twitter:card":"summary","twitter:site":"@tothenew","twitter:title":"Set-up SSL Communication between two Linux servers Using Keytool Command | TO THE NEW Blog","twitter:description":"In one of my project, My front end application runs on one server and back end application runs on another. Both application have to communicate with each other through SSL(Secure Sockets Layer). SSL is a way to secure internet communication from your browser to a secure website. The websites using SSL will have https:\/\/ to","twitter:image":"https:\/\/www.tothenew.com\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png"},"aioseo_meta_data":{"post_id":"5611","title":null,"description":null,"keywords":null,"keyphrases":null,"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":null,"og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"Article","isEnabled":true},"graphs":[]},"schema_type":null,"schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":null,"robots_max_videopreview":null,"robots_max_imagepreview":"large","priority":null,"frequency":null,"local_seo":null,"limit_modified_date":false,"created":"2021-04-30 08:10:00","updated":"2024-02-29 09:00:07","focus_keyword":null,"additional_keywords":null,"truseo_locale":null,"ai":null,"breadcrumb_settings":null,"seo_analyzer_scan_date":null},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/www.tothenew.com\/blog\" title=\"Home\">Home<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/www.tothenew.com\/blog\/category\/technology\/\" title=\"Technology\">Technology<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\tSet-up SSL Communication between two Linux servers Using Keytool Command\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/www.tothenew.com\/blog"},{"label":"Technology","link":"https:\/\/www.tothenew.com\/blog\/category\/technology\/"},{"label":"Set-up SSL Communication between two Linux servers Using Keytool Command","link":"https:\/\/www.tothenew.com\/blog\/set-up-ssl-communication-between-two-server-using-keytool-command\/"}],"_links":{"self":[{"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/posts\/5611","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/users\/25"}],"replies":[{"embeddable":true,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/comments?post=5611"}],"version-history":[{"count":0,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/posts\/5611\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/media?parent=5611"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/categories?post=5611"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/tags?post=5611"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}