{"id":885,"date":"2011-05-23T07:58:32","date_gmt":"2011-05-23T12:58:32","guid":{"rendered":"http:\/\/www.migrate2cloud.com\/blog\/?p=885"},"modified":"2016-03-21T02:50:22","modified_gmt":"2016-03-21T07:50:22","slug":"ssl-for-tomcat-on-awsec2","status":"publish","type":"post","link":"https:\/\/www.migrate2cloud.com\/blog\/ssl-for-tomcat-on-awsec2\/","title":{"rendered":"SSL for Tomcat on AWS EC2"},"content":{"rendered":"<p>To launch an AWS\/EC2 instance, at first setting up a security group to specify what network traffic is allowed to reach the instance. Then select an AMI and launch an instance from it. And create a volume in the same zone of the instance and attach with it. Format the device and mount it to a directory. After that follow the steps to create SSL for Tomcat:<\/p>\n<p>1. For the tomcat we need java, so create a directory to save the Java Binary file.<\/p>\n<p>[shell] mkdir \/usr\/java<br \/>\ncd \/usr\/java [\/shell]<\/p>\n<p>2. Download jdk binary file (jdk-x-linux-ix.bin) here<br \/>\nUse URL <span style=\"color: #0000ff;\">http:\/\/www.oracle.com\/technetwork\/java\/archive-139210.html<\/span><\/p>\n<p>3. Execute the Binary file<\/p>\n<p>[shell] \/usr\/java\/jdk-x-linux-ix.bin [\/shell]<\/p>\n<p><strong>Now we have the Java in our device. Then Download the Tomcat and install it followed by the instructions:-<\/strong><\/p>\n<p>1. Create a directory to save the tomcat<\/p>\n<p>[shell] mkdir \/usr\/tomcat<br \/>\ncd \/usr\/tomcat [\/shell]<\/p>\n<p>2. Download tomcat source file (apache-tomcat-x.tar.gz) here<br \/>\nUse URL <span style=\"color: #0000ff;\">http:\/\/apache.hoxt.com\/tomcat\/tomcat-6\/v6.0.32\/bin\/<\/span><\/p>\n<p>3. Extract that file<\/p>\n<p>[shell] tar -zxvf apache-tomcat-x.tar.gz [\/shell]<\/p>\n<p>4. Edit the catalina.sh file<\/p>\n<p>[shell] vim \/usr\/tomcat\/apache-tomcat-x\/bin\/catalina.sh [\/shell]<\/p>\n<p>[shell]<\/p>\n<p>#** Add at the top **<br \/>\nJAVA_HOME=\/usr\/java\/jdk1.x.x_x<\/p>\n<p>[\/shell]<\/p>\n<p>save and exit<br \/>\n5. Start the tomcat<\/p>\n<p>[shell] \/usr\/tomcat\/apache-tomcat-x\/bin\/startup.sh [\/shell]<\/p>\n<p>6. We can see the logs by using the given command<\/p>\n<p>[shell]tail -f \/usr\/tomcat\/apache-tomcat-x\/logs\/catalina.out [\/shell]<\/p>\n<p>7. Take the browser and enter the URL <span style=\"color: #0000ff;\">http:\/\/localhost<\/span><br \/>\nNow we can see the tomcat index page<\/p>\n<p>8. To stop the tomcat<\/p>\n<p>[shell]\/usr\/tomcat\/apache-tomcat-x\/bin\/shutdown.sh [\/shell]<\/p>\n<p>Now configure the SSL Certificate for tomcat. When you choose to activate SSL on your web server you will be prompted to complete a number of questions about the identity of your website and your company. Your web server then creates two cryptographic keys &#8211; a Private Key and a Public Key. The Public Key does not need to be secret and is placed into a Certificate Signing Request (CSR) &#8211; a data file also containing your details.<\/p>\n<p><strong>Create a self signed certificate authority (CA) and keystore.<\/strong><\/p>\n<p>1. Make a directory to hold the certs and keystore. This might be something like:<\/p>\n<p>[shell] mkdir \/usr\/tomcat\/ssl<br \/>\ncd \/usr\/tomcat\/ssl [\/shell]<\/p>\n<p>2. Generate a private key for the server and remember it for the next steps<\/p>\n<p>[shell]openssl genrsa -des3 -out server.key 1024[\/shell]<\/p>\n<p>Generating RSA private key, 1024 bit long modulus<br \/>\n&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;..++++++<br \/>\n&#8230;++++++<br \/>\ne is 65537 (0x10001)<br \/>\nEnter pass phrase for server.key:<br \/>\nVerifying &#8211; Enter pass phrase for server.key:<\/p>\n<p>3. Generate a CSR (Certificate Signing Request). Give the data after executing this command<\/p>\n<p>[shell]openssl req -new -key server.key -out server.csr[\/shell]<\/p>\n<p>Enter pass phrase for server.key:<br \/>\nYou are about to be asked to enter information that will be incorporated<br \/>\ninto your certificate request.<br \/>\nWhat you are about to enter is what is called a Distinguished Name or a DN.<br \/>\nThere are quite a few fields but you can leave some blank<br \/>\nFor some fields there will be a default value,<br \/>\nIf you enter &#8216;.&#8217;, the field will be left blank.<br \/>\n&#8212;&#8211;<br \/>\nCountry Name (2 letter code) [GB]:<br \/>\nState or Province Name (full name) [Berkshire]:<br \/>\nLocality Name (eg, city) [Newbury]:<br \/>\nOrganization Name (eg, company) [My Company Ltd]:<br \/>\nOrganizational Unit Name (eg, section) []:<br \/>\nCommon Name (eg, your name or your server&#8217;s hostname) []:<br \/>\nEmail Address []:<\/p>\n<p>Please enter the following &#8216;extra&#8217; attributes<br \/>\nto be sent with your certificate request<br \/>\nA challenge password []:<br \/>\nAn optional company name []:<\/p>\n<p>4. Remove the passphrasse from the key<\/p>\n<p>[shell]cp server.key server.key.org<br \/>\nopenssl rsa -in server.key.org -out server.key[\/shell]<\/p>\n<p>Enter pass phrase for server.key.org:<br \/>\nwriting RSA key<\/p>\n<p>5. Generate the self signed certificate<\/p>\n<p>[shell]openssl x509 -req -days 365 -in server.csr -signkey server.key -out server.crt[\/shell]<\/p>\n<p>Signature ok<br \/>\nsubject=\/C=GB\/ST=Berkshire\/L=Newbury\/O=My Company Ltd<br \/>\nGetting Private key<\/p>\n<p>You should then submit the CSR. During the SSL Certificate application process, the Certification Authority will validate your details and issue an SSL Certificate containing your details and allowing you to use SSL. Typically an SSL Certificate will contain your domain name, your company name, your address, your city, your state and your country. It will also contain the expiration date of the Certificate and details of the Certification Authority responsible for the issuance of the Certificate.<\/p>\n<p><strong>Create a certificate for tomcat and add both to the keystore<\/strong><\/p>\n<p>1. Change the path to ssl<\/p>\n<p>[shell]cd \/usr\/tomcat\/ssl[\/shell]<\/p>\n<p>2. Create a keypair for &#8216;tomcat&#8217;<\/p>\n<p>[shell]keytool -genkey -alias tom -keyalg RSA -keystore tom.ks[\/shell]<\/p>\n<p>Enter keystore password:<br \/>\nRe-enter new password:<br \/>\nWhat is your first and last name?<br \/>\n[Unknown]:<br \/>\nWhat is the name of your organizational unit?<br \/>\n[Unknown]:<br \/>\nWhat is the name of your organization?<br \/>\n[Unknown]:<br \/>\nWhat is the name of your City or Locality?<br \/>\n[Unknown]:<br \/>\nWhat is the name of your State or Province?<br \/>\n[Unknown]:<br \/>\nWhat is the two-letter country code for this unit?<br \/>\n[Unknown]:<\/p>\n<p>Is CN=Unknown, OU=Unknown, O=Unknown, L=Unknown, ST=Unknown, C=Unknown correct?<br \/>\n[no]: yes<\/p>\n<p>Enter key password for &lt;tom&gt;<br \/>\n(RETURN if same as keystore password):<br \/>\nRe-enter new password:<\/p>\n<p>3. Generate a CSR (Certificate Signing Request) for tomcat<\/p>\n<p>[shell]keytool -keystore tom.ks -alias tom -certreq -file tom.csr[\/shell]<\/p>\n<p><strong>Enter keystore password:<\/strong><\/p>\n<p>4. create unique serial number<\/p>\n<p>[shell]echo 02 &gt; serial.txt[\/shell]<\/p>\n<p>5. Sign the tomcat CSR<\/p>\n<p>[shell]openssl x509 -CA server.crt -CAkey server.key -CAserial serial.txt -req -in tom.csr -out tom.cer -days 365[\/shell]<\/p>\n<p>Signature ok<br \/>\nsubject=\/C=Unknown\/ST=Unknown\/L=Unknown\/O=Unknown\/OU=Unknown\/CN=Unknown<br \/>\nGetting CA Private Key<\/p>\n<p>6. Import the server CA certificate into the keystore<\/p>\n<p>[shell]keytool -import -alias serverCA -file server.crt -keystore tom.ks[\/shell]<\/p>\n<p>Enter keystore password:<br \/>\nOwner: O=My Company Ltd, L=Newbury, ST=Berkshire, C=GB<br \/>\nIssuer: O=My Company Ltd, L=Newbury, ST=Berkshire, C=GB<br \/>\nSerial number: ee13c90cb351968b<br \/>\nValid from: Thu May 19 02:12:51 EDT 2011 until: Fri May 18 02:12:51 EDT 2012<br \/>\nCertificate fingerprints:<br \/>\nMD5: EE:F0:69:01:4D:D2:DA:A2:4E:88:EF:DC:A8:3F:A9:00<br \/>\nSHA1: 47:97:72:EF:30:02:F7:82:BE:CD:CA:F5:CE:4E:ED:89:73:23:4E:24<br \/>\nSignature algorithm name: SHA1withRSA<br \/>\nVersion: 1<br \/>\nTrust this certificate? [no]: yes<br \/>\nCertificate was added to keystore<\/p>\n<p>7. Add the tomcat certificate to the keystore<\/p>\n<p>[shell]keytool -import -alias tom -file tom.cer -keystore tom.ks[\/shell]<\/p>\n<p>Enter keystore password:<br \/>\nCertificate reply was installed in keystore<\/p>\n<p>To configure a secure (SSL) HTTP connector for Tomcat, verify that it is activated in the $TOMCAT_HOME\/conf\/server.xml file. Edit this file and add the following lines.<\/p>\n<p><strong>Tomcat configuration<\/strong><\/p>\n<p>1. Edit the given portion of tomcat configuretion file and change the port as 80<\/p>\n<p>[shell]vim \/usr\/tomcat\/apache-tomcat-6.0.13\/conf\/server.xml[\/shell]<\/p>\n<p>[shell]\u201c\u201d\u201d\u201d\u201d\u201d &lt;Connector port=&#8221;8080&#8243; protocol=&#8221;HTTP\/1.1&#8243;<br \/>\nconnectionTimeout=&#8221;20000&#8243;<br \/>\nredirectPort=&#8221;8443&#8243; \/&gt; \u201c\u201d\u201d\u201d\u201d\u201d<\/p>\n<p>&lt;Connector port=&#8221;80&#8243; protocol=&#8221;HTTP\/1.1&#8243;<br \/>\nconnectionTimeout=&#8221;20000&#8243;<br \/>\nredirectPort=&#8221;8443&#8243; \/&gt;<\/p>\n<p>[\/shell]<\/p>\n<p>2. Add the given portion to server.xml and give your password in the password portion<\/p>\n<p>[shell]<\/p>\n<p>&lt;Connector port=&#8221;443&#8243; protocol=&#8221;HTTP\/1.1&#8243; SSLEnabled=&#8221;true&#8221;<br \/>\nmaxThreads=&#8221;150&#8243; scheme=&#8221;https&#8221; secure=&#8221;true&#8221;<br \/>\nkeystoreFile=&#8221;tom.ks&#8221;<br \/>\nkeystorePass=&#8221;password&#8221;<br \/>\nclientAuth=&#8221;false&#8221; sslProtocol=&#8221;TLS&#8221; \/&gt;<\/p>\n<p>[\/shell]<\/p>\n<p>When you start the Tomcat Your web server will match your issued SSL Certificate to your Private Key. Your web server will then be able to establish an encrypted link between the website and your customer&#8217;s web browser.<\/p>\n<p><strong>Start the tomcat with SSL Certificate<\/strong><\/p>\n<p>1. Restart tomcat<\/p>\n<p>[shell]\/usr\/tomcat\/apache-tomcat-6.0.13\/bin\/shutdown.sh<br \/>\n\/usr\/tomcat\/apache-tomcat-6.0.13\/bin\/startup.sh[\/shell]<\/p>\n<p>2. Go to <span style=\"color: #0000ff;\">https:\/\/Public DNS name:443\/<\/span><\/p>\n<p>Then your browser shows a security issue. Click the Approve button. Then you can enter to the tomcat with your certificate. When a browser connects to a secure site it will retrieve the site&#8217;s SSL Certificate and check that it has not expired, it has been issued by a Certification Authority the browser trusts, and that it is being used by the website for which it has been issued. If it fails on any one of these checks the browser will display a warning to the end user letting them know that the site is not secured by SSL.<\/p>\n<p>You are Done !!!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>To launch an AWS\/EC2 instance, at first setting up a security group to specify what network traffic is allowed to reach the instance. Then select an AMI and launch an instance from it. And create a volume in the same zone of the instance and attach with it. Format the device and mount it to [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_post_was_ever_published":false},"categories":[34,3,17],"tags":[4,129,235,485,20,491,78,488,238,116,444,483,484,187,486,492,493,18,490,489,77,40,487,204,233,138],"class_list":["post-885","post","type-post","status-publish","format-standard","hentry","category-amazon-ec2","category-cloud-computing","category-iaas","tag-amazon","tag-amazon-ec2","tag-amazon-elastic-compute-cloud","tag-apache-tomcat","tag-aws","tag-certification-authority","tag-cloud","tag-company-my-screen-mobile","tag-dns","tag-http","tag-java","tag-java-enterprise-platform","tag-java-platform","tag-linux","tag-mobile-application-software","tag-private-key","tag-public-key","tag-s3","tag-secure-site","tag-security","tag-ssl","tag-tomcat","tag-web-browser","tag-web-server","tag-web-services","tag-xml"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 4.9.10 - aioseo.com -->\n\t<meta name=\"description\" content=\"To launch an AWS\/EC2 instance, at first setting up a security group to specify what network traffic is allowed to reach the instance. Then select an AMI and launch an instance from it. And create a volume in the same zone of the instance and attach with it. Format the device and mount it to\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"bobinson\"\/>\n\t<link rel=\"canonical\" href=\"https:\/\/www.migrate2cloud.com\/blog\/ssl-for-tomcat-on-awsec2\/\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 4.9.10\" \/>\n\t\t<meta property=\"og:locale\" content=\"en_US\" \/>\n\t\t<meta property=\"og:site_name\" content=\"Migrate to Cloud - we make the clouds rain\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"SSL for Tomcat on AWS EC2 - Migrate to Cloud\" \/>\n\t\t<meta property=\"og:description\" content=\"To launch an AWS\/EC2 instance, at first setting up a security group to specify what network traffic is allowed to reach the instance. Then select an AMI and launch an instance from it. And create a volume in the same zone of the instance and attach with it. Format the device and mount it to\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/www.migrate2cloud.com\/blog\/ssl-for-tomcat-on-awsec2\/\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2011-05-23T12:58:32+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2016-03-21T07:50:22+00:00\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n\t\t<meta name=\"twitter:title\" content=\"SSL for Tomcat on AWS EC2 - Migrate to Cloud\" \/>\n\t\t<meta name=\"twitter:description\" content=\"To launch an AWS\/EC2 instance, at first setting up a security group to specify what network traffic is allowed to reach the instance. Then select an AMI and launch an instance from it. And create a volume in the same zone of the instance and attach with it. Format the device and mount it to\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"BlogPosting\",\"@id\":\"https:\\\/\\\/www.migrate2cloud.com\\\/blog\\\/ssl-for-tomcat-on-awsec2\\\/#blogposting\",\"name\":\"SSL for Tomcat on AWS EC2 - Migrate to Cloud\",\"headline\":\"SSL for Tomcat on AWS EC2\",\"author\":{\"@id\":\"https:\\\/\\\/www.migrate2cloud.com\\\/blog\\\/author\\\/bobinson\\\/#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/www.migrate2cloud.com\\\/blog\\\/#organization\"},\"datePublished\":\"2011-05-23T07:58:32-05:00\",\"dateModified\":\"2016-03-21T02:50:22-05:00\",\"inLanguage\":\"en-US\",\"commentCount\":4,\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.migrate2cloud.com\\\/blog\\\/ssl-for-tomcat-on-awsec2\\\/#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.migrate2cloud.com\\\/blog\\\/ssl-for-tomcat-on-awsec2\\\/#webpage\"},\"articleSection\":\"Amazon EC2, Cloud computing, IaaS, amazon, Amazon EC2, Amazon Elastic Compute Cloud, Apache Tomcat, aws, Certification Authority, Cloud, Company: My Screen Mobile, DNS, HTTP, Java, Java enterprise platform, Java platform, Linux, Mobile Application Software, Private Key, Public Key, S3, secure site, security, SSL, tomcat, web browser, web server, Web services, XML\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.migrate2cloud.com\\\/blog\\\/ssl-for-tomcat-on-awsec2\\\/#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.migrate2cloud.com\\\/blog#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.migrate2cloud.com\\\/blog\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.migrate2cloud.com\\\/blog\\\/category\\\/cloud-computing\\\/#listItem\",\"name\":\"Cloud computing\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.migrate2cloud.com\\\/blog\\\/category\\\/cloud-computing\\\/#listItem\",\"position\":2,\"name\":\"Cloud computing\",\"item\":\"https:\\\/\\\/www.migrate2cloud.com\\\/blog\\\/category\\\/cloud-computing\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.migrate2cloud.com\\\/blog\\\/ssl-for-tomcat-on-awsec2\\\/#listItem\",\"name\":\"SSL for Tomcat on AWS EC2\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.migrate2cloud.com\\\/blog#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.migrate2cloud.com\\\/blog\\\/ssl-for-tomcat-on-awsec2\\\/#listItem\",\"position\":3,\"name\":\"SSL for Tomcat on AWS EC2\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.migrate2cloud.com\\\/blog\\\/category\\\/cloud-computing\\\/#listItem\",\"name\":\"Cloud computing\"}}]},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.migrate2cloud.com\\\/blog\\\/#organization\",\"name\":\"Migrate to Cloud\",\"description\":\"we make the clouds rain\",\"url\":\"https:\\\/\\\/www.migrate2cloud.com\\\/blog\\\/\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.migrate2cloud.com\\\/blog\\\/author\\\/bobinson\\\/#author\",\"url\":\"https:\\\/\\\/www.migrate2cloud.com\\\/blog\\\/author\\\/bobinson\\\/\",\"name\":\"bobinson\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/www.migrate2cloud.com\\\/blog\\\/ssl-for-tomcat-on-awsec2\\\/#authorImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/75ccdce824303bc4f61f39dec0a643a767f9bda27d54a85334ab60120544971f?s=96&d=mm&r=g\",\"width\":96,\"height\":96,\"caption\":\"bobinson\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.migrate2cloud.com\\\/blog\\\/ssl-for-tomcat-on-awsec2\\\/#webpage\",\"url\":\"https:\\\/\\\/www.migrate2cloud.com\\\/blog\\\/ssl-for-tomcat-on-awsec2\\\/\",\"name\":\"SSL for Tomcat on AWS EC2 - Migrate to Cloud\",\"description\":\"To launch an AWS\\\/EC2 instance, at first setting up a security group to specify what network traffic is allowed to reach the instance. Then select an AMI and launch an instance from it. And create a volume in the same zone of the instance and attach with it. Format the device and mount it to\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.migrate2cloud.com\\\/blog\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.migrate2cloud.com\\\/blog\\\/ssl-for-tomcat-on-awsec2\\\/#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/www.migrate2cloud.com\\\/blog\\\/author\\\/bobinson\\\/#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/www.migrate2cloud.com\\\/blog\\\/author\\\/bobinson\\\/#author\"},\"datePublished\":\"2011-05-23T07:58:32-05:00\",\"dateModified\":\"2016-03-21T02:50:22-05:00\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.migrate2cloud.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.migrate2cloud.com\\\/blog\\\/\",\"name\":\"Migrate to Cloud\",\"description\":\"we make the clouds rain\",\"inLanguage\":\"en-US\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.migrate2cloud.com\\\/blog\\\/#organization\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"SSL for Tomcat on AWS EC2 - Migrate to Cloud","description":"To launch an AWS\/EC2 instance, at first setting up a security group to specify what network traffic is allowed to reach the instance. Then select an AMI and launch an instance from it. And create a volume in the same zone of the instance and attach with it. Format the device and mount it to","canonical_url":"https:\/\/www.migrate2cloud.com\/blog\/ssl-for-tomcat-on-awsec2\/","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"BlogPosting","@id":"https:\/\/www.migrate2cloud.com\/blog\/ssl-for-tomcat-on-awsec2\/#blogposting","name":"SSL for Tomcat on AWS EC2 - Migrate to Cloud","headline":"SSL for Tomcat on AWS EC2","author":{"@id":"https:\/\/www.migrate2cloud.com\/blog\/author\/bobinson\/#author"},"publisher":{"@id":"https:\/\/www.migrate2cloud.com\/blog\/#organization"},"datePublished":"2011-05-23T07:58:32-05:00","dateModified":"2016-03-21T02:50:22-05:00","inLanguage":"en-US","commentCount":4,"mainEntityOfPage":{"@id":"https:\/\/www.migrate2cloud.com\/blog\/ssl-for-tomcat-on-awsec2\/#webpage"},"isPartOf":{"@id":"https:\/\/www.migrate2cloud.com\/blog\/ssl-for-tomcat-on-awsec2\/#webpage"},"articleSection":"Amazon EC2, Cloud computing, IaaS, amazon, Amazon EC2, Amazon Elastic Compute Cloud, Apache Tomcat, aws, Certification Authority, Cloud, Company: My Screen Mobile, DNS, HTTP, Java, Java enterprise platform, Java platform, Linux, Mobile Application Software, Private Key, Public Key, S3, secure site, security, SSL, tomcat, web browser, web server, Web services, XML"},{"@type":"BreadcrumbList","@id":"https:\/\/www.migrate2cloud.com\/blog\/ssl-for-tomcat-on-awsec2\/#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/www.migrate2cloud.com\/blog#listItem","position":1,"name":"Home","item":"https:\/\/www.migrate2cloud.com\/blog","nextItem":{"@type":"ListItem","@id":"https:\/\/www.migrate2cloud.com\/blog\/category\/cloud-computing\/#listItem","name":"Cloud computing"}},{"@type":"ListItem","@id":"https:\/\/www.migrate2cloud.com\/blog\/category\/cloud-computing\/#listItem","position":2,"name":"Cloud computing","item":"https:\/\/www.migrate2cloud.com\/blog\/category\/cloud-computing\/","nextItem":{"@type":"ListItem","@id":"https:\/\/www.migrate2cloud.com\/blog\/ssl-for-tomcat-on-awsec2\/#listItem","name":"SSL for Tomcat on AWS EC2"},"previousItem":{"@type":"ListItem","@id":"https:\/\/www.migrate2cloud.com\/blog#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/www.migrate2cloud.com\/blog\/ssl-for-tomcat-on-awsec2\/#listItem","position":3,"name":"SSL for Tomcat on AWS EC2","previousItem":{"@type":"ListItem","@id":"https:\/\/www.migrate2cloud.com\/blog\/category\/cloud-computing\/#listItem","name":"Cloud computing"}}]},{"@type":"Organization","@id":"https:\/\/www.migrate2cloud.com\/blog\/#organization","name":"Migrate to Cloud","description":"we make the clouds rain","url":"https:\/\/www.migrate2cloud.com\/blog\/"},{"@type":"Person","@id":"https:\/\/www.migrate2cloud.com\/blog\/author\/bobinson\/#author","url":"https:\/\/www.migrate2cloud.com\/blog\/author\/bobinson\/","name":"bobinson","image":{"@type":"ImageObject","@id":"https:\/\/www.migrate2cloud.com\/blog\/ssl-for-tomcat-on-awsec2\/#authorImage","url":"https:\/\/secure.gravatar.com\/avatar\/75ccdce824303bc4f61f39dec0a643a767f9bda27d54a85334ab60120544971f?s=96&d=mm&r=g","width":96,"height":96,"caption":"bobinson"}},{"@type":"WebPage","@id":"https:\/\/www.migrate2cloud.com\/blog\/ssl-for-tomcat-on-awsec2\/#webpage","url":"https:\/\/www.migrate2cloud.com\/blog\/ssl-for-tomcat-on-awsec2\/","name":"SSL for Tomcat on AWS EC2 - Migrate to Cloud","description":"To launch an AWS\/EC2 instance, at first setting up a security group to specify what network traffic is allowed to reach the instance. Then select an AMI and launch an instance from it. And create a volume in the same zone of the instance and attach with it. Format the device and mount it to","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/www.migrate2cloud.com\/blog\/#website"},"breadcrumb":{"@id":"https:\/\/www.migrate2cloud.com\/blog\/ssl-for-tomcat-on-awsec2\/#breadcrumblist"},"author":{"@id":"https:\/\/www.migrate2cloud.com\/blog\/author\/bobinson\/#author"},"creator":{"@id":"https:\/\/www.migrate2cloud.com\/blog\/author\/bobinson\/#author"},"datePublished":"2011-05-23T07:58:32-05:00","dateModified":"2016-03-21T02:50:22-05:00"},{"@type":"WebSite","@id":"https:\/\/www.migrate2cloud.com\/blog\/#website","url":"https:\/\/www.migrate2cloud.com\/blog\/","name":"Migrate to Cloud","description":"we make the clouds rain","inLanguage":"en-US","publisher":{"@id":"https:\/\/www.migrate2cloud.com\/blog\/#organization"}}]},"og:locale":"en_US","og:site_name":"Migrate to Cloud - we make the clouds rain","og:type":"article","og:title":"SSL for Tomcat on AWS EC2 - Migrate to Cloud","og:description":"To launch an AWS\/EC2 instance, at first setting up a security group to specify what network traffic is allowed to reach the instance. Then select an AMI and launch an instance from it. And create a volume in the same zone of the instance and attach with it. Format the device and mount it to","og:url":"https:\/\/www.migrate2cloud.com\/blog\/ssl-for-tomcat-on-awsec2\/","article:published_time":"2011-05-23T12:58:32+00:00","article:modified_time":"2016-03-21T07:50:22+00:00","twitter:card":"summary_large_image","twitter:title":"SSL for Tomcat on AWS EC2 - Migrate to Cloud","twitter:description":"To launch an AWS\/EC2 instance, at first setting up a security group to specify what network traffic is allowed to reach the instance. Then select an AMI and launch an instance from it. And create a volume in the same zone of the instance and attach with it. Format the device and mount it to"},"aioseo_meta_data":{"post_id":"885","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":"","isEnabled":true},"graphs":[]},"schema_type":"default","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":"2022-12-27 09:16:42","updated":"2026-07-21 15:28:32","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.migrate2cloud.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.migrate2cloud.com\/blog\/category\/cloud-computing\/\" title=\"Cloud computing\">Cloud computing<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\tSSL for Tomcat on AWS EC2\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/www.migrate2cloud.com\/blog"},{"label":"Cloud computing","link":"https:\/\/www.migrate2cloud.com\/blog\/category\/cloud-computing\/"},{"label":"SSL for Tomcat on AWS EC2","link":"https:\/\/www.migrate2cloud.com\/blog\/ssl-for-tomcat-on-awsec2\/"}],"jetpack_featured_media_url":"","jetpack-related-posts":[],"jetpack_sharing_enabled":true,"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/www.migrate2cloud.com\/blog\/wp-json\/wp\/v2\/posts\/885","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.migrate2cloud.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.migrate2cloud.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.migrate2cloud.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.migrate2cloud.com\/blog\/wp-json\/wp\/v2\/comments?post=885"}],"version-history":[{"count":40,"href":"https:\/\/www.migrate2cloud.com\/blog\/wp-json\/wp\/v2\/posts\/885\/revisions"}],"predecessor-version":[{"id":2155,"href":"https:\/\/www.migrate2cloud.com\/blog\/wp-json\/wp\/v2\/posts\/885\/revisions\/2155"}],"wp:attachment":[{"href":"https:\/\/www.migrate2cloud.com\/blog\/wp-json\/wp\/v2\/media?parent=885"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.migrate2cloud.com\/blog\/wp-json\/wp\/v2\/categories?post=885"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.migrate2cloud.com\/blog\/wp-json\/wp\/v2\/tags?post=885"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}