{"id":5940,"date":"2012-06-29T13:01:53","date_gmt":"2012-06-29T07:31:53","guid":{"rendered":"https:\/\/2thenew.xyz\/blog\/?p=5940"},"modified":"2017-04-24T15:59:44","modified_gmt":"2017-04-24T10:29:44","slug":"how-to-configure-ssl-on-tomcat-server-and-run-grailsjava-application-on-https","status":"publish","type":"post","link":"https:\/\/2thenew.xyz\/blog\/how-to-configure-ssl-on-tomcat-server-and-run-grailsjava-application-on-https\/","title":{"rendered":"How to configure SSL on Tomcat server and run Grails\/Java application on HTTPS"},"content":{"rendered":"<p><!-- \t\t@page { margin: 2cm } \t\tP { margin-bottom: 0.21cm } -->To run your <a title=\"Grails App\" href=\"https:\/\/2thenew.xyz\/grails-application-development\">Grails application<\/a> on SSL, firstly you need to configure the Tomcat server.<\/p>\n<p>Here in this example, I will show how to configure Tomcat instance and run Grails\/Java application.<\/p>\n<p>For SSL\/HTTPS:<\/p>\n<ol>\n<li>We need <strong>.keystore<\/strong> file. You can generate it by using command\u201c<span style=\"color: #000000;\"><strong>keytool<\/strong><\/span> <span style=\"color: #000000;\"><strong>-genkey\u201d. <\/strong><\/span><span style=\"color: #000000;\">Run this command<\/span> <span style=\"color: #000000;\">on linux terminal or window cmd,<\/span> <span style=\"color: #000000;\">follow<\/span> <span style=\"color: #000000;\">the<\/span> <span style=\"color: #000000;\">instructions. Fill the desire information and it will generate the .keystore file on following path: <\/span><span style=\"color: #000000;\">Linux: \/<\/span><span style=\"color: #000000;\"><strong>home\/[user]\/.keystore <\/strong><\/span><span style=\"color: #000000;\">file <\/span><span style=\"color: #000000;\">Window: <\/span><span style=\"color: #000000;\"><strong>\/Documents<\/strong><\/span> <span style=\"color: #000000;\"><strong>and<\/strong><\/span> <span style=\"color: #000000;\"><strong>Settings\/[user]\/.keystore<\/strong><\/span><\/li>\n<li><span style=\"color: #000000;\">One thing you would have to remember is the password that is used while generating the <\/span><span style=\"color: #000000;\"><strong>.keystore<\/strong><\/span><span style=\"color: #000000;\"> file because this password will be used in configuring Tomcat server instance<\/span><\/li>\n<li>After the generation of .keystore file, copy .keystore file to webapp of tomcat directory.<\/li>\n<li>Then open server.xml of Tomcat from conf\/server.xml and uncomment ssl port connector which is like<\/li>\n<\/ol>\n<p><!-- \t\t@page { margin: 2cm } \t\tP { margin-bottom: 0.21cm } --><\/p>\n<p>[xml]<br \/>\n&amp;lt;Connector port=&amp;quot;8443&amp;quot; protocol=&amp;quot;HTTP\/1.1&amp;quot; SSLEnabled=&amp;quot;true&amp;quot;<br \/>\n               maxThreads=&amp;quot;150&amp;quot;  scheme=&amp;quot;https&amp;quot; secure=&amp;quot;true&amp;quot;<br \/>\n               clientAuth=&amp;quot;false&amp;quot; sslProtocol=&amp;quot;TLS&amp;quot; keystoreFile=&amp;quot;webapps\/.keystore&amp;quot;<br \/>\nkeystorePass=&amp;quot;password-of-.keystore-file&amp;quot; \/&amp;gt;<br \/>\n[\/xml]<\/p>\n<p>&nbsp;<\/p>\n<p>Add <span style=\"color: #000000;\">following<\/span> <span style=\"color: #000000;\">line<\/span> <span style=\"color: #4f81bd;\">keystoreFile=&#8221;webapps\/.keystore&#8221;<\/span><span style=\"color: #4f81bd;\"> &amp; keystorePass=&#8221;<\/span><span style=\"color: #4f81bd;\">password-of-.keystore-file<\/span><span style=\"color: #4f81bd;\">&#8220;<\/span><\/p>\n<p><span style=\"color: #000000;\">Here <strong>keystoreFile<\/strong> is the location of .keystore file, and <strong>keystorePass <\/strong>is the password which initially used for creating .keystore file.<\/span><\/p>\n<p><span style=\"color: #000000;\"><br \/>\n<\/span><\/p>\n<p>5. Now SSL has been configured on <strong>Tomcat<\/strong><\/p>\n<p>6. Now configure your web application as SSL enabled. If you are working on Java application,\u00a0 add the following lines in web.xml file of your web application<\/p>\n<p>[xml]<br \/>\n&amp;lt;security-constraint&amp;gt;<br \/>\n\t\t&amp;lt;web-resource-collection&amp;gt;<br \/>\n\t\t\t&amp;lt;http-method&amp;gt;GET&amp;lt;\/http-method&amp;gt;<br \/>\n\t\t\t&amp;lt;http-method&amp;gt;POST&amp;lt;\/http-method&amp;gt;<br \/>\n\t\t\t&amp;lt;url-pattern&amp;gt;\/*&amp;lt;\/url-pattern&amp;gt;<br \/>\n\t\t&amp;lt;\/web-resource-collection&amp;gt;<\/p>\n<p>  \t\t&amp;lt;user-data-constraint&amp;gt;<br \/>\n      \t\t&amp;lt;transport-guarantee&amp;gt;CONFIDENTIAL&amp;lt;\/transport-guarantee&amp;gt;<br \/>\n   \t\t &amp;lt;\/user-data-constraint&amp;gt;<br \/>\n  \t&amp;lt;\/security-constraint&amp;gt;<br \/>\n[\/xml]<\/p>\n<p style=\"margin-bottom: 0cm;\"><span style=\"font-family: Liberation Serif,serif;\"><span style=\"font-size: small;\">If you are working on grails application, you need to run following command to generate the web.xml file because grails framework does not contain any web.xml file and web.xml file automatically generated when you are creating war file<\/span><\/span><\/p>\n<p style=\"margin-bottom: 0cm; line-height: 100%;\"><span style=\"color: #000000;\"><span style=\"font-family: Liberation Serif,serif;\"><span style=\"font-size: small;\">Run following command to get web.xml file in your grails application<\/span><\/span><\/span><\/p>\n<p style=\"margin-bottom: 0cm; line-height: 100%;\"><span style=\"color: #000000;\"><span style=\"font-family: Liberation Serif,serif;\"><span style=\"font-size: small;\"><br \/>\n<\/span><\/span><\/span><\/p>\n<p style=\"margin-bottom: 0cm;\"><span style=\"color: #4f81bd;\"><span style=\"font-family: Liberation Mono,monospace;\"><strong>grails install-templates<\/strong><\/span><\/span><\/p>\n<p style=\"margin-bottom: 0cm;\"><span style=\"color: #4f81bd;\"><span style=\"font-family: Liberation Mono,monospace;\"><strong><br \/>\n<\/strong><\/span><\/span><\/p>\n<p><span style=\"font-family: Liberation Serif,serif;\"><span style=\"font-size: small;\">web.xml file will be generated on the following location of your grails application <strong>\/src\/templates\/war\/web.xml<\/strong><\/span><\/span><\/p>\n<p style=\"margin-bottom: 0cm; text-decoration: none;\"><span style=\"font-family: Liberation Serif,serif;\"><span style=\"font-size: small;\">Then add above mentioned snippet in <strong>web.xml<\/strong>, create the war file and deploy on tomcat server.<\/span><\/span><span style=\"font-family: Liberation Serif,serif;\"><span style=\"font-size: small;\"> Now your application will successfully run on SSL. You can access your application using following URL: <strong><span style=\"text-decoration: underline;\">https:\/\/localhost:8443\/&lt;application-name&gt;<\/span><\/strong><\/span><\/span><\/p>\n<p style=\"margin-bottom: 0cm; text-decoration: none;\"><span style=\"font-family: Liberation Serif,serif;\"><span style=\"font-size: small;\"><strong><span style=\"text-decoration: underline;\"><br \/>\n<\/span><\/strong><\/span><\/span><\/p>\n<p style=\"margin-bottom: 0cm; text-decoration: none;\"><span style=\"font-family: Liberation Serif,serif;\"><span style=\"font-size: small;\"><strong>Reference:-<a href=\"http:\/\/java.dzone.com\/articles\/setting-ssl-tomcat-5-minutes\" target=\"_blank\"><br \/>\n<\/a><\/strong><\/span><\/span><\/p>\n<p style=\"margin-bottom: 0cm; text-decoration: none;\"><a href=\"..\/2012\/05\/31\/set-up-ssl-communication-between-two-server-using-keytool-command\/\">https:\/\/2thenew.xyz\/blog\/set-up-ssl-communication-between-two-server-using-keytool-command\/<\/a><\/p>\n<p style=\"margin-bottom: 0cm; text-decoration: none;\"><a href=\"..\/2012\/06\/01\/how-to-set-up-ssl-certificates-on-your-server\/\">https:\/\/2thenew.xyz\/blog\/how-to-set-up-ssl-certificates-on-your-server\/<\/a><\/p>\n<p style=\"margin-bottom: 0cm; text-decoration: none;\">\n<div style=\"width: 1px; height: 1px; overflow: hidden;\">\n<p><!-- \t\t@page { margin: 2cm } \t\tP { margin-bottom: 0.21cm } \t\tA:link { so-language: zxx } --><\/p>\n<p style=\"margin-bottom: 0cm;\"><span style=\"font-family: Liberation Serif,serif;\"><span style=\"font-size: small;\">If you are working on grails application,you need to run following command to generate the web.xml file because grails framework does not contain any web.xml file and web.xml file automatically generated when you are creating war file<\/span><\/span><\/p>\n<p style=\"margin-bottom: 0cm;\"><span style=\"color: #000000;\"><span style=\"font-family: Liberation Serif,serif;\"><span style=\"font-size: small;\">Run following command to get web.xml file in your grails application<\/span><\/span><\/span><\/p>\n<p style=\"margin-bottom: 0cm; line-height: 100%;\"><span style=\"color: #4f81bd;\"><span style=\"font-family: Liberation Mono,monospace;\"><strong> grails install-templates<\/strong><\/span><\/span><\/p>\n<p style=\"margin-bottom: 0cm;\"><span style=\"font-family: Liberation Serif,serif;\"><span style=\"font-size: small;\">web.xml file generated on following location of your grails application <strong>\/src\/templates\/war\/web.xml<\/strong><\/span><\/span><\/p>\n<p style=\"margin-bottom: 0cm;\"><span style=\"font-family: Liberation Serif,serif;\"><span style=\"font-size: small;\">Then add above mention snipplet in <strong>web.xml<\/strong>, create the war file and deploy on tomcat server.<\/span><\/span><\/p>\n<p style=\"margin-bottom: 0cm;\"><span style=\"font-family: Liberation Serif,serif;\"><span style=\"font-size: small;\">Now your application will successfully run on SSL <\/span><\/span><\/p>\n<p style=\"margin-bottom: 0cm;\"><span style=\"font-family: Liberation Serif,serif;\"><span style=\"font-size: small;\"> Access your application using following url&#8217;s:<\/span><\/span><\/p>\n<p style=\"margin-bottom: 0cm; text-decoration: none;\"><span style=\"font-family: Liberation Serif,serif;\"><span style=\"font-size: small;\"><strong> <span style=\"text-decoration: underline;\">https:\/\/localhost:8443\/application-name<\/span><\/strong><\/span><\/span><\/p>\n<p style=\"margin-bottom: 0cm; text-decoration: none;\"><span style=\"font-family: Liberation Serif,serif;\"><span style=\"font-size: small;\"><strong> Reference:- http:\/\/java.dzone.com\/articles\/setting-ssl-tomcat-5-minutes<\/strong><\/span><\/span><\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>To run your Grails application on SSL, firstly you need to configure the Tomcat server. Here in this example, I will show how to configure Tomcat instance and run Grails\/Java application. For SSL\/HTTPS: We need .keystore file. You can generate it by using command\u201ckeytool -genkey\u201d. Run this command on linux terminal or window cmd, follow [&hellip;]<\/p>\n","protected":false},"author":47,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"iawp_total_views":20,"footnotes":""},"categories":[7],"tags":[840,4840,4005,4844,824,589],"class_list":["post-5940","post","type-post","status-publish","format-standard","hentry","category-grails","tag-configure-ssl-on-localhost","tag-grails","tag-grails-development","tag-java","tag-ssl","tag-tomcat-6"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 5.0.0.1 - aioseo.com -->\n\t<meta name=\"description\" content=\"To run your Grails application on SSL, firstly you need to configure the Tomcat server. Here in this example, I will show how to configure Tomcat instance and run Grails\/Java application. For SSL\/HTTPS: We need .keystore file. You can generate it by using command\u201ckeytool -genkey\u201d. Run this command on linux terminal or window cmd, follow\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"Mohit Garg\"\/>\n\t<link rel=\"canonical\" href=\"https:\/\/2thenew.xyz\/blog\/how-to-configure-ssl-on-tomcat-server-and-run-grailsjava-application-on-https\/\" \/>\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=\"How to configure SSL on Tomcat server and run Grails\/Java application on HTTPS | TO THE NEW Blog\" \/>\n\t\t<meta property=\"og:description\" content=\"To run your Grails application on SSL, firstly you need to configure the Tomcat server. Here in this example, I will show how to configure Tomcat instance and run Grails\/Java application. For SSL\/HTTPS: We need .keystore file. You can generate it by using command\u201ckeytool -genkey\u201d. Run this command on linux terminal or window cmd, follow\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/2thenew.xyz\/blog\/how-to-configure-ssl-on-tomcat-server-and-run-grailsjava-application-on-https\/\" \/>\n\t\t<meta property=\"og:image\" content=\"https:\/\/2thenew.xyz\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png\" \/>\n\t\t<meta property=\"og:image:secure_url\" content=\"https:\/\/2thenew.xyz\/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=\"How to configure SSL on Tomcat server and run Grails\/Java application on HTTPS | TO THE NEW Blog\" \/>\n\t\t<meta name=\"twitter:description\" content=\"To run your Grails application on SSL, firstly you need to configure the Tomcat server. Here in this example, I will show how to configure Tomcat instance and run Grails\/Java application. For SSL\/HTTPS: We need .keystore file. You can generate it by using command\u201ckeytool -genkey\u201d. Run this command on linux terminal or window cmd, follow\" \/>\n\t\t<meta name=\"twitter:image\" content=\"https:\/\/2thenew.xyz\/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\\\/how-to-configure-ssl-on-tomcat-server-and-run-grailsjava-application-on-https\\\/#article\",\"name\":\"How to configure SSL on Tomcat server and run Grails\\\/Java application on HTTPS | TO THE NEW Blog\",\"headline\":\"How to configure SSL on Tomcat server and run Grails\\\/Java application on HTTPS\",\"author\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/author\\\/mohit\\\/#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/#organization\"},\"datePublished\":\"2012-06-29T13:01:53+05:30\",\"dateModified\":\"2017-04-24T15:59:44+05:30\",\"inLanguage\":\"en-US\",\"commentCount\":1,\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/how-to-configure-ssl-on-tomcat-server-and-run-grailsjava-application-on-https\\\/#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/how-to-configure-ssl-on-tomcat-server-and-run-grailsjava-application-on-https\\\/#webpage\"},\"articleSection\":\"Grails, Configure SSL on localhost, Grails, grails development, Java, ssl, tomcat 6\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/how-to-configure-ssl-on-tomcat-server-and-run-grailsjava-application-on-https\\\/#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\\\/grails\\\/#listItem\",\"name\":\"Grails\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/category\\\/grails\\\/#listItem\",\"position\":2,\"name\":\"Grails\",\"item\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/category\\\/grails\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/how-to-configure-ssl-on-tomcat-server-and-run-grailsjava-application-on-https\\\/#listItem\",\"name\":\"How to configure SSL on Tomcat server and run Grails\\\/Java application on HTTPS\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/how-to-configure-ssl-on-tomcat-server-and-run-grailsjava-application-on-https\\\/#listItem\",\"position\":3,\"name\":\"How to configure SSL on Tomcat server and run Grails\\\/Java application on HTTPS\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/category\\\/grails\\\/#listItem\",\"name\":\"Grails\"}}]},{\"@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\\\/mohit\\\/#author\",\"url\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/author\\\/mohit\\\/\",\"name\":\"Mohit Garg\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/how-to-configure-ssl-on-tomcat-server-and-run-grailsjava-application-on-https\\\/#authorImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/931ccdefca3a3ec5366d4652824c2e03776befb43ae29205264bc46a3ec45d0a?s=96&d=mm&r=g\",\"width\":96,\"height\":96,\"caption\":\"Mohit Garg\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/how-to-configure-ssl-on-tomcat-server-and-run-grailsjava-application-on-https\\\/#webpage\",\"url\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/how-to-configure-ssl-on-tomcat-server-and-run-grailsjava-application-on-https\\\/\",\"name\":\"How to configure SSL on Tomcat server and run Grails\\\/Java application on HTTPS | TO THE NEW Blog\",\"description\":\"To run your Grails application on SSL, firstly you need to configure the Tomcat server. Here in this example, I will show how to configure Tomcat instance and run Grails\\\/Java application. For SSL\\\/HTTPS: We need .keystore file. You can generate it by using command\\u201ckeytool -genkey\\u201d. Run this command on linux terminal or window cmd, follow\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/how-to-configure-ssl-on-tomcat-server-and-run-grailsjava-application-on-https\\\/#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/author\\\/mohit\\\/#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/author\\\/mohit\\\/#author\"},\"datePublished\":\"2012-06-29T13:01:53+05:30\",\"dateModified\":\"2017-04-24T15:59:44+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":"How to configure SSL on Tomcat server and run Grails\/Java application on HTTPS | TO THE NEW Blog","description":"To run your Grails application on SSL, firstly you need to configure the Tomcat server. Here in this example, I will show how to configure Tomcat instance and run Grails\/Java application. For SSL\/HTTPS: We need .keystore file. You can generate it by using command\u201ckeytool -genkey\u201d. Run this command on linux terminal or window cmd, follow","canonical_url":"https:\/\/2thenew.xyz\/blog\/how-to-configure-ssl-on-tomcat-server-and-run-grailsjava-application-on-https\/","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/2thenew.xyz\/blog\/how-to-configure-ssl-on-tomcat-server-and-run-grailsjava-application-on-https\/#article","name":"How to configure SSL on Tomcat server and run Grails\/Java application on HTTPS | TO THE NEW Blog","headline":"How to configure SSL on Tomcat server and run Grails\/Java application on HTTPS","author":{"@id":"https:\/\/2thenew.xyz\/blog\/author\/mohit\/#author"},"publisher":{"@id":"https:\/\/2thenew.xyz\/blog\/#organization"},"datePublished":"2012-06-29T13:01:53+05:30","dateModified":"2017-04-24T15:59:44+05:30","inLanguage":"en-US","commentCount":1,"mainEntityOfPage":{"@id":"https:\/\/2thenew.xyz\/blog\/how-to-configure-ssl-on-tomcat-server-and-run-grailsjava-application-on-https\/#webpage"},"isPartOf":{"@id":"https:\/\/2thenew.xyz\/blog\/how-to-configure-ssl-on-tomcat-server-and-run-grailsjava-application-on-https\/#webpage"},"articleSection":"Grails, Configure SSL on localhost, Grails, grails development, Java, ssl, tomcat 6"},{"@type":"BreadcrumbList","@id":"https:\/\/2thenew.xyz\/blog\/how-to-configure-ssl-on-tomcat-server-and-run-grailsjava-application-on-https\/#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/2thenew.xyz\/blog#listItem","position":1,"name":"Home","item":"https:\/\/2thenew.xyz\/blog","nextItem":{"@type":"ListItem","@id":"https:\/\/2thenew.xyz\/blog\/category\/grails\/#listItem","name":"Grails"}},{"@type":"ListItem","@id":"https:\/\/2thenew.xyz\/blog\/category\/grails\/#listItem","position":2,"name":"Grails","item":"https:\/\/2thenew.xyz\/blog\/category\/grails\/","nextItem":{"@type":"ListItem","@id":"https:\/\/2thenew.xyz\/blog\/how-to-configure-ssl-on-tomcat-server-and-run-grailsjava-application-on-https\/#listItem","name":"How to configure SSL on Tomcat server and run Grails\/Java application on HTTPS"},"previousItem":{"@type":"ListItem","@id":"https:\/\/2thenew.xyz\/blog#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/2thenew.xyz\/blog\/how-to-configure-ssl-on-tomcat-server-and-run-grailsjava-application-on-https\/#listItem","position":3,"name":"How to configure SSL on Tomcat server and run Grails\/Java application on HTTPS","previousItem":{"@type":"ListItem","@id":"https:\/\/2thenew.xyz\/blog\/category\/grails\/#listItem","name":"Grails"}}]},{"@type":"Organization","@id":"https:\/\/2thenew.xyz\/blog\/#organization","name":"TO THE NEW Blog","url":"https:\/\/2thenew.xyz\/blog\/"},{"@type":"Person","@id":"https:\/\/2thenew.xyz\/blog\/author\/mohit\/#author","url":"https:\/\/2thenew.xyz\/blog\/author\/mohit\/","name":"Mohit Garg","image":{"@type":"ImageObject","@id":"https:\/\/2thenew.xyz\/blog\/how-to-configure-ssl-on-tomcat-server-and-run-grailsjava-application-on-https\/#authorImage","url":"https:\/\/secure.gravatar.com\/avatar\/931ccdefca3a3ec5366d4652824c2e03776befb43ae29205264bc46a3ec45d0a?s=96&d=mm&r=g","width":96,"height":96,"caption":"Mohit Garg"}},{"@type":"WebPage","@id":"https:\/\/2thenew.xyz\/blog\/how-to-configure-ssl-on-tomcat-server-and-run-grailsjava-application-on-https\/#webpage","url":"https:\/\/2thenew.xyz\/blog\/how-to-configure-ssl-on-tomcat-server-and-run-grailsjava-application-on-https\/","name":"How to configure SSL on Tomcat server and run Grails\/Java application on HTTPS | TO THE NEW Blog","description":"To run your Grails application on SSL, firstly you need to configure the Tomcat server. Here in this example, I will show how to configure Tomcat instance and run Grails\/Java application. For SSL\/HTTPS: We need .keystore file. You can generate it by using command\u201ckeytool -genkey\u201d. Run this command on linux terminal or window cmd, follow","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/2thenew.xyz\/blog\/#website"},"breadcrumb":{"@id":"https:\/\/2thenew.xyz\/blog\/how-to-configure-ssl-on-tomcat-server-and-run-grailsjava-application-on-https\/#breadcrumblist"},"author":{"@id":"https:\/\/2thenew.xyz\/blog\/author\/mohit\/#author"},"creator":{"@id":"https:\/\/2thenew.xyz\/blog\/author\/mohit\/#author"},"datePublished":"2012-06-29T13:01:53+05:30","dateModified":"2017-04-24T15:59:44+05:30"},{"@type":"WebSite","@id":"https:\/\/2thenew.xyz\/blog\/#website","url":"https:\/\/2thenew.xyz\/blog\/","name":"TO THE NEW Blog","inLanguage":"en-US","publisher":{"@id":"https:\/\/2thenew.xyz\/blog\/#organization"}}]},"og:locale":"en_US","og:site_name":"TO THE NEW BLOG","og:type":"blog","og:title":"How to configure SSL on Tomcat server and run Grails\/Java application on HTTPS | TO THE NEW Blog","og:description":"To run your Grails application on SSL, firstly you need to configure the Tomcat server. Here in this example, I will show how to configure Tomcat instance and run Grails\/Java application. For SSL\/HTTPS: We need .keystore file. You can generate it by using command\u201ckeytool -genkey\u201d. Run this command on linux terminal or window cmd, follow","og:url":"https:\/\/2thenew.xyz\/blog\/how-to-configure-ssl-on-tomcat-server-and-run-grailsjava-application-on-https\/","og:image":"https:\/\/2thenew.xyz\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png","og:image:secure_url":"https:\/\/2thenew.xyz\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png","twitter:card":"summary","twitter:site":"@tothenew","twitter:title":"How to configure SSL on Tomcat server and run Grails\/Java application on HTTPS | TO THE NEW Blog","twitter:description":"To run your Grails application on SSL, firstly you need to configure the Tomcat server. Here in this example, I will show how to configure Tomcat instance and run Grails\/Java application. For SSL\/HTTPS: We need .keystore file. You can generate it by using command\u201ckeytool -genkey\u201d. Run this command on linux terminal or window cmd, follow","twitter:image":"https:\/\/2thenew.xyz\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png"},"aioseo_meta_data":{"post_id":"5940","title":null,"description":null,"keywords":null,"keyphrases":null,"primary_term":null,"canonical_url":null,"og_title":"","og_description":"","og_object_type":"blog","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":"","og_custom_url":null,"og_article_section":"","og_article_tags":"","twitter_use_og":false,"twitter_card":"summary","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-29 18:48:00","updated":"2024-02-29 09:30:26","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:\/\/2thenew.xyz\/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:\/\/2thenew.xyz\/blog\/category\/grails\/\" title=\"Grails\">Grails<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\tHow to configure SSL on Tomcat server and run Grails\/Java application on HTTPS\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/2thenew.xyz\/blog"},{"label":"Grails","link":"https:\/\/2thenew.xyz\/blog\/category\/grails\/"},{"label":"How to configure SSL on Tomcat server and run Grails\/Java application on HTTPS","link":"https:\/\/2thenew.xyz\/blog\/how-to-configure-ssl-on-tomcat-server-and-run-grailsjava-application-on-https\/"}],"_links":{"self":[{"href":"https:\/\/2thenew.xyz\/blog\/wp-json\/wp\/v2\/posts\/5940","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/2thenew.xyz\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/2thenew.xyz\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/2thenew.xyz\/blog\/wp-json\/wp\/v2\/users\/47"}],"replies":[{"embeddable":true,"href":"https:\/\/2thenew.xyz\/blog\/wp-json\/wp\/v2\/comments?post=5940"}],"version-history":[{"count":0,"href":"https:\/\/2thenew.xyz\/blog\/wp-json\/wp\/v2\/posts\/5940\/revisions"}],"wp:attachment":[{"href":"https:\/\/2thenew.xyz\/blog\/wp-json\/wp\/v2\/media?parent=5940"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/2thenew.xyz\/blog\/wp-json\/wp\/v2\/categories?post=5940"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/2thenew.xyz\/blog\/wp-json\/wp\/v2\/tags?post=5940"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}