{"id":5509,"date":"2023-09-13T22:41:00","date_gmt":"2023-09-14T03:41:00","guid":{"rendered":"https:\/\/www.incredigeek.com\/home\/?p=5509"},"modified":"2023-09-13T22:35:55","modified_gmt":"2023-09-14T03:35:55","slug":"how-to-create-a-self-signed-tls-certificate-in-linux","status":"publish","type":"post","link":"https:\/\/www.incredigeek.com\/home\/how-to-create-a-self-signed-tls-certificate-in-linux\/","title":{"rendered":"How to Create a Self Signed TLS Certificate in Linux"},"content":{"rendered":"\n<p>Here is a quick way to create a self signed certificate in Linux.<\/p>\n\n\n\n<p>Run the following command.  Fill out the required info.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">openssl req -x509 -sha256 -nodes -days 3652 -newkey rsa:4096 -keyout \/etc\/pki\/tls\/private\/localhost.key -out \/etc\/pki\/tls\/certs\/localhost.crt<\/pre>\n\n\n\n<pre class=\"wp-block-preformatted\">chmod 400 \/etc\/pki\/tls\/private\/localhost.key<\/pre>\n\n\n\n<p>Now in your Apache or Nginx files, specify the path to the Key and the Certificate.<\/p>\n\n\n\n<p>Note that if you&#8217;ll need to add the <\/p>\n\n\n\n<p><a href=\"https:\/\/www.linode.com\/docs\/guides\/create-a-self-signed-tls-certificate\/\">https:\/\/www.linode.com\/docs\/guides\/create-a-self-signed-tls-certificate\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Here is a quick way to create a self signed certificate in Linux. Run the following command. Fill out the required info. openssl req -x509 -sha256 -nodes -days 3652 -newkey rsa:4096 -keyout \/etc\/pki\/tls\/private\/localhost.key -out \/etc\/pki\/tls\/certs\/localhost.crt chmod 400 \/etc\/pki\/tls\/private\/localhost.key Now in &hellip; <a href=\"https:\/\/www.incredigeek.com\/home\/how-to-create-a-self-signed-tls-certificate-in-linux\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[1575,359,391,1574,357,7,1576,390,356],"class_list":["post-5509","post","type-post","status-publish","format-standard","hentry","category-linux","tag-apache","tag-certificate","tag-http","tag-httpd","tag-https","tag-linux-2","tag-nginx","tag-openssl","tag-ssl"],"_links":{"self":[{"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/posts\/5509","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/comments?post=5509"}],"version-history":[{"count":3,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/posts\/5509\/revisions"}],"predecessor-version":[{"id":5512,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/posts\/5509\/revisions\/5512"}],"wp:attachment":[{"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/media?parent=5509"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/categories?post=5509"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/tags?post=5509"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}