{"id":28,"date":"2009-08-21T23:04:00","date_gmt":"2009-08-21T23:04:00","guid":{"rendered":"http:\/\/localhost\/word\/uncategorized\/how-to-install-self-signed-ssl-certificate-in-apache-with-openssl"},"modified":"2009-08-21T23:04:00","modified_gmt":"2009-08-21T23:04:00","slug":"how-to-install-self-signed-ssl-certificate-in-apache-with-openssl","status":"publish","type":"post","link":"https:\/\/targetintegration.com\/en_ie\/how-to-install-self-signed-ssl-certificate-in-apache-with-openssl\/","title":{"rendered":"How to install Self Signed SSL Certificate in Apache with OpenSSL"},"content":{"rendered":"<div>\n<p>&nbsp;<\/p>\n<div style=\"border-width: 0px; margin: 0px; padding: 3px; width: auto; font: 100% Georgia,serif; text-align: left;\">An SSL certificate secures the communication between the user and the web server. For commercial reasons it is required to use an SSL certificate from a Certificate Authority but if you would like to secure the data transfer on a personal application, you can do so by using a self signed SSL certificate. The following steps will help you to create a Certificate Signing Request (CSR) and then sign the certificate yourself or send it to the CA to sign it.<\/div>\n<div style=\"border-width: 0px; margin: 0px; padding: 3px; width: auto; font: 100% Georgia,serif; text-align: left;\">\n<div>So let&#8217;s get started. You need to install OpenSSL. I am using Ubuntu 8.04 with Apache ver 2.<\/div>\n<div>If you haven&#8217;t yet installed OpenSSL, you can do so by typing the following on your command prompt:<\/div>\n<div>\n<p>&nbsp;<\/p>\n<blockquote><p>apt-get install openssl<\/p><\/blockquote>\n<p>&nbsp;<\/p>\n<\/div>\n<div>Most of the steps require administrator access so make sure that you have made yourself administrator using su or you are using sudo in front of all of the commands.<\/div>\n<div>Now create your server.key file using the following command:<\/div>\n<div>\n<blockquote><p><em>openssl genrsa -des3 -out server.key 4096<\/em><\/p><\/blockquote>\n<\/div>\n<div>Now create a Certificate Signing Request (CSR) using the following command<\/div>\n<div>\n<blockquote><p><em>openssl req -new -key server.key -out server.csr<\/em><\/p><\/blockquote>\n<\/div>\n<div>This certificate signing request can now be sent together with the server.key file to the Certificate Authority (CA)<\/div>\n<div>If you are only going to use an SSL certificate internally or for testing purposes, you can sign the certificate yourself, these certificates are called Self Signed Certificates. Follow the following steps to sign the certificate yourself:<\/div>\n<div>\n<blockquote><p><em>openssl x509 -req -days 365 -in server.csr -signkey server.key -out server.crt<\/em><\/p><\/blockquote>\n<\/div>\n<div>The above command creates server.crt which is the certificate signed by yourself. You can use it to secure all the data transfer between your server and client. But your server.key still uses a password (passphrase that you provided while creating the server.key file). Let&#8217;s create a version of the key which doesn&#8217;t need a password:<\/div>\n<div>\n<blockquote><p><em>openssl rsa -in server.key -out server.key.insecure<\/em><\/p><\/blockquote>\n<\/div>\n<div>Copy the original server.key file as server.key.secure to keep it safe.<\/div>\n<div>\n<blockquote><p><em>mv server.key server.key.secure<\/em><\/p><\/blockquote>\n<\/div>\n<div>Now rename server.key.insecure (the one which doesn&#8217;t require any password) as server.key<\/div>\n<div>\n<blockquote><p><em>mv server.key.insecure server.key<\/em><\/p><\/blockquote>\n<\/div>\n<div>Now, you are ready to use the server.key and server.crt to secure your web applications. If you don&#8217;t know how to use it, check out the next article on how to use Webmin to setup SSL for your website.<\/div>\n<\/div>\n<p>&nbsp;<\/p>\n<\/div>","protected":false},"excerpt":{"rendered":"<p>&nbsp; An SSL certificate secures the communication between the user and the web server. For commercial reasons it is required&#8230;<\/p>","protected":false},"author":4,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"inline_featured_image":false,"footnotes":""},"categories":[1],"tags":[44,48,49],"class_list":["post-28","post","type-post","status-publish","hentry","category-article","tag-online-services","tag-performance","tag-personal-finance"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.7 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to install Self Signed SSL Certificate in Apache with OpenSSL -<\/title>\n<meta name=\"description\" content=\"&nbsp; An SSL certificate secures the communication between the user and the web server.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/targetintegration.com\/en_ie\/how-to-install-self-signed-ssl-certificate-in-apache-with-openssl\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to install Self Signed SSL Certificate in Apache with OpenSSL -\" \/>\n<meta property=\"og:description\" content=\"&nbsp; An SSL certificate secures the communication between the user and the web server.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/targetintegration.com\/en_ie\/how-to-install-self-signed-ssl-certificate-in-apache-with-openssl\/\" \/>\n<meta property=\"og:site_name\" content=\"Target Integration\" \/>\n<meta property=\"article:published_time\" content=\"2009-08-21T23:04:00+00:00\" \/>\n<meta name=\"author\" content=\"Aman Thakral\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Aman Thakral\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/targetintegration.com\/en_in\/how-to-install-self-signed-ssl-certificate-in-apache-with-openssl\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/targetintegration.com\/en_in\/how-to-install-self-signed-ssl-certificate-in-apache-with-openssl\/\"},\"author\":{\"name\":\"Aman Thakral\",\"@id\":\"https:\/\/targetintegration.com\/#\/schema\/person\/9956d46591619b474ed534d4bae9a37d\"},\"headline\":\"How to install Self Signed SSL Certificate in Apache with OpenSSL\",\"datePublished\":\"2009-08-21T23:04:00+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/targetintegration.com\/en_in\/how-to-install-self-signed-ssl-certificate-in-apache-with-openssl\/\"},\"wordCount\":417,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/targetintegration.com\/#organization\"},\"keywords\":[\"online services\",\"performance\",\"personal finance\"],\"articleSection\":[\"Article\"],\"inLanguage\":\"en-ie\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/targetintegration.com\/en_in\/how-to-install-self-signed-ssl-certificate-in-apache-with-openssl\/\",\"url\":\"https:\/\/targetintegration.com\/en_in\/how-to-install-self-signed-ssl-certificate-in-apache-with-openssl\/\",\"name\":\"How to install Self Signed SSL Certificate in Apache with OpenSSL -\",\"isPartOf\":{\"@id\":\"https:\/\/targetintegration.com\/#website\"},\"datePublished\":\"2009-08-21T23:04:00+00:00\",\"description\":\"&nbsp; An SSL certificate secures the communication between the user and the web server.\",\"breadcrumb\":{\"@id\":\"https:\/\/targetintegration.com\/en_in\/how-to-install-self-signed-ssl-certificate-in-apache-with-openssl\/#breadcrumb\"},\"inLanguage\":\"en-ie\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/targetintegration.com\/en_in\/how-to-install-self-signed-ssl-certificate-in-apache-with-openssl\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/targetintegration.com\/en_in\/how-to-install-self-signed-ssl-certificate-in-apache-with-openssl\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/targetintegration.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to install Self Signed SSL Certificate in Apache with OpenSSL\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/targetintegration.com\/#website\",\"url\":\"https:\/\/targetintegration.com\/\",\"name\":\"Target Integration\",\"description\":\"Empowering You!\",\"publisher\":{\"@id\":\"https:\/\/targetintegration.com\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/targetintegration.com\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-ie\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/targetintegration.com\/#organization\",\"name\":\"Target Integration\",\"url\":\"https:\/\/targetintegration.com\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-ie\",\"@id\":\"https:\/\/targetintegration.com\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/targetintegration.com\/wp-content\/uploads\/\/2021\/05\/ti-logo2-2.svg\",\"contentUrl\":\"https:\/\/targetintegration.com\/wp-content\/uploads\/\/2021\/05\/ti-logo2-2.svg\",\"width\":172,\"height\":65,\"caption\":\"Target Integration\"},\"image\":{\"@id\":\"https:\/\/targetintegration.com\/#\/schema\/logo\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\/\/targetintegration.com\/#\/schema\/person\/9956d46591619b474ed534d4bae9a37d\",\"name\":\"Aman Thakral\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-ie\",\"@id\":\"https:\/\/targetintegration.com\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/5d3832136f194dc02b46be42471b0a19833e6a89e0c27d4f36549afb93d2a431?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/5d3832136f194dc02b46be42471b0a19833e6a89e0c27d4f36549afb93d2a431?s=96&d=mm&r=g\",\"caption\":\"Aman Thakral\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to install Self Signed SSL Certificate in Apache with OpenSSL -","description":"&nbsp; An SSL certificate secures the communication between the user and the web server.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/targetintegration.com\/en_ie\/how-to-install-self-signed-ssl-certificate-in-apache-with-openssl\/","og_locale":"en_US","og_type":"article","og_title":"How to install Self Signed SSL Certificate in Apache with OpenSSL -","og_description":"&nbsp; An SSL certificate secures the communication between the user and the web server.","og_url":"https:\/\/targetintegration.com\/en_ie\/how-to-install-self-signed-ssl-certificate-in-apache-with-openssl\/","og_site_name":"Target Integration","article_published_time":"2009-08-21T23:04:00+00:00","author":"Aman Thakral","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Aman Thakral","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/targetintegration.com\/en_in\/how-to-install-self-signed-ssl-certificate-in-apache-with-openssl\/#article","isPartOf":{"@id":"https:\/\/targetintegration.com\/en_in\/how-to-install-self-signed-ssl-certificate-in-apache-with-openssl\/"},"author":{"name":"Aman Thakral","@id":"https:\/\/targetintegration.com\/#\/schema\/person\/9956d46591619b474ed534d4bae9a37d"},"headline":"How to install Self Signed SSL Certificate in Apache with OpenSSL","datePublished":"2009-08-21T23:04:00+00:00","mainEntityOfPage":{"@id":"https:\/\/targetintegration.com\/en_in\/how-to-install-self-signed-ssl-certificate-in-apache-with-openssl\/"},"wordCount":417,"commentCount":0,"publisher":{"@id":"https:\/\/targetintegration.com\/#organization"},"keywords":["online services","performance","personal finance"],"articleSection":["Article"],"inLanguage":"en-ie"},{"@type":"WebPage","@id":"https:\/\/targetintegration.com\/en_in\/how-to-install-self-signed-ssl-certificate-in-apache-with-openssl\/","url":"https:\/\/targetintegration.com\/en_in\/how-to-install-self-signed-ssl-certificate-in-apache-with-openssl\/","name":"How to install Self Signed SSL Certificate in Apache with OpenSSL -","isPartOf":{"@id":"https:\/\/targetintegration.com\/#website"},"datePublished":"2009-08-21T23:04:00+00:00","description":"&nbsp; An SSL certificate secures the communication between the user and the web server.","breadcrumb":{"@id":"https:\/\/targetintegration.com\/en_in\/how-to-install-self-signed-ssl-certificate-in-apache-with-openssl\/#breadcrumb"},"inLanguage":"en-ie","potentialAction":[{"@type":"ReadAction","target":["https:\/\/targetintegration.com\/en_in\/how-to-install-self-signed-ssl-certificate-in-apache-with-openssl\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/targetintegration.com\/en_in\/how-to-install-self-signed-ssl-certificate-in-apache-with-openssl\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/targetintegration.com\/"},{"@type":"ListItem","position":2,"name":"How to install Self Signed SSL Certificate in Apache with OpenSSL"}]},{"@type":"WebSite","@id":"https:\/\/targetintegration.com\/#website","url":"https:\/\/targetintegration.com\/","name":"Target Integration","description":"Empowering You!","publisher":{"@id":"https:\/\/targetintegration.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/targetintegration.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-ie"},{"@type":"Organization","@id":"https:\/\/targetintegration.com\/#organization","name":"Target Integration","url":"https:\/\/targetintegration.com\/","logo":{"@type":"ImageObject","inLanguage":"en-ie","@id":"https:\/\/targetintegration.com\/#\/schema\/logo\/image\/","url":"https:\/\/targetintegration.com\/wp-content\/uploads\/\/2021\/05\/ti-logo2-2.svg","contentUrl":"https:\/\/targetintegration.com\/wp-content\/uploads\/\/2021\/05\/ti-logo2-2.svg","width":172,"height":65,"caption":"Target Integration"},"image":{"@id":"https:\/\/targetintegration.com\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/targetintegration.com\/#\/schema\/person\/9956d46591619b474ed534d4bae9a37d","name":"Aman Thakral","image":{"@type":"ImageObject","inLanguage":"en-ie","@id":"https:\/\/targetintegration.com\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/5d3832136f194dc02b46be42471b0a19833e6a89e0c27d4f36549afb93d2a431?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/5d3832136f194dc02b46be42471b0a19833e6a89e0c27d4f36549afb93d2a431?s=96&d=mm&r=g","caption":"Aman Thakral"}}]}},"_links":{"self":[{"href":"https:\/\/targetintegration.com\/en_ie\/wp-json\/wp\/v2\/posts\/28","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/targetintegration.com\/en_ie\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/targetintegration.com\/en_ie\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/targetintegration.com\/en_ie\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/targetintegration.com\/en_ie\/wp-json\/wp\/v2\/comments?post=28"}],"version-history":[{"count":0,"href":"https:\/\/targetintegration.com\/en_ie\/wp-json\/wp\/v2\/posts\/28\/revisions"}],"wp:attachment":[{"href":"https:\/\/targetintegration.com\/en_ie\/wp-json\/wp\/v2\/media?parent=28"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/targetintegration.com\/en_ie\/wp-json\/wp\/v2\/categories?post=28"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/targetintegration.com\/en_ie\/wp-json\/wp\/v2\/tags?post=28"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}