{"id":36948,"date":"2024-12-11T00:26:00","date_gmt":"2024-12-11T00:26:00","guid":{"rendered":"https:\/\/www.wpstaq.com\/?post_type=knowledgebase&#038;p=36948"},"modified":"2024-12-11T00:32:18","modified_gmt":"2024-12-11T00:32:18","slug":"how-to-create-a-custom-ssl-certificate","status":"publish","type":"knowledgebase","link":"https:\/\/www.wpstaq.com\/nz\/knowledgebase\/how-to-create-a-custom-ssl-certificate\/","title":{"rendered":"How to create a custom SSL certificate"},"content":{"rendered":"<p>This guide explains how to create a custom SSL certificate that can be uploaded to your Staq-hosted WordPress website. By the end of this process, you will have the following files ready for upload:<\/p>\n<ul>\n<li><strong>ca_bundle.crt<\/strong><\/li>\n<li><strong>certificate.crt<\/strong><\/li>\n<li><strong>private.key<\/strong><\/li>\n<\/ul>\n<p>Follow these steps to generate your SSL certificate files:<\/p>\n<h2>Step 1: Generate a Private Key<\/h2>\n<p>The private key is used to encrypt data and is essential for generating a Certificate Signing Request (CSR).<\/p>\n<ol>\n<li>To generate a private key, open\u00a0<strong>Terminal<\/strong> on your Mac or\u00a0<strong>Command Prompt\u00a0<\/strong>on your Windows computer.<\/li>\n<li>Inside Terminal or Command Prompt, open the directory where you want to save the file i.e. Downloads folder:\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-36949\" src=\"https:\/\/www.wpstaq.com\/wp-content\/uploads\/2024\/12\/cd-downloads-ssl-private-key-install.png\" alt=\"\" width=\"601\" height=\"241\" srcset=\"https:\/\/www.wpstaq.com\/wp-content\/uploads\/2024\/12\/cd-downloads-ssl-private-key-install.png 601w, https:\/\/www.wpstaq.com\/wp-content\/uploads\/2024\/12\/cd-downloads-ssl-private-key-install-300x120.png 300w\" sizes=\"auto, (max-width: 601px) 100vw, 601px\" \/><\/li>\n<li>Run the following command to generate a private key:\n<pre><code>openssl genrsa -out private.key 2048<\/code><\/pre>\n<ul>\n<li>This command generates a 2048-bit RSA private key and saves it as <code>private.key<\/code> in your current directory i.e. Downloads folder.<\/li>\n<li>Keep this file secure as it is critical for your SSL certificate.\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-36951\" src=\"https:\/\/www.wpstaq.com\/wp-content\/uploads\/2024\/12\/Downloads-folder-1.png\" alt=\"\" width=\"708\" height=\"212\" srcset=\"https:\/\/www.wpstaq.com\/wp-content\/uploads\/2024\/12\/Downloads-folder-1.png 708w, https:\/\/www.wpstaq.com\/wp-content\/uploads\/2024\/12\/Downloads-folder-1-300x90.png 300w\" sizes=\"auto, (max-width: 708px) 100vw, 708px\" \/><\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<h2>Step 2: Create a Certificate Signing Request (CSR)<\/h2>\n<p>The CSR contains your domain and organization details, which are used to generate the SSL certificate.<\/p>\n<ol>\n<li>Run the following command to generate the CSR:\n<pre><code>openssl req -new -key private.key -out certificate.csr<\/code><\/pre>\n<\/li>\n<li>You will be prompted to enter details for the CSR. Fill in the fields as follows:\n<ul>\n<li><strong>Country Name<\/strong>: Enter the two-letter country code (e.g., <code>US<\/code> for the United States).<\/li>\n<li><strong>State or Province Name<\/strong>: Enter your state or province.<\/li>\n<li><strong>Locality Name<\/strong>: Enter your city.<\/li>\n<li><strong>Organization Name<\/strong>: Enter your company or organization name.<\/li>\n<li><strong>Organizational Unit Name<\/strong>: Enter your department (e.g., <code>IT<\/code> or <code>Web Security<\/code>).<\/li>\n<li><strong>Common Name<\/strong>: Enter your domain name (e.g., <code>example.com<\/code>).<\/li>\n<li><strong>Email Address<\/strong>: Enter your contact email address.\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-36953\" src=\"https:\/\/www.wpstaq.com\/wp-content\/uploads\/2024\/12\/generate-certificate-csr.png\" alt=\"\" width=\"744\" height=\"545\" srcset=\"https:\/\/www.wpstaq.com\/wp-content\/uploads\/2024\/12\/generate-certificate-csr.png 744w, https:\/\/www.wpstaq.com\/wp-content\/uploads\/2024\/12\/generate-certificate-csr-300x220.png 300w\" sizes=\"auto, (max-width: 744px) 100vw, 744px\" \/><\/li>\n<\/ul>\n<p>After completing these steps, the CSR will be saved as <code>certificate.csr<\/code> in your current directory.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-36952\" src=\"https:\/\/www.wpstaq.com\/wp-content\/uploads\/2024\/12\/Downloads-folder-2.png\" alt=\"\" width=\"708\" height=\"284\" srcset=\"https:\/\/www.wpstaq.com\/wp-content\/uploads\/2024\/12\/Downloads-folder-2.png 708w, https:\/\/www.wpstaq.com\/wp-content\/uploads\/2024\/12\/Downloads-folder-2-300x120.png 300w\" sizes=\"auto, (max-width: 708px) 100vw, 708px\" \/><\/li>\n<\/ol>\n<h2>Step 3: Submit the CSR to an SSL Provider<\/h2>\n<ol>\n<li>Choose an SSL certificate provider (e.g., GoDaddy, DigiCert, Let\u2019s Encrypt, ZeroSSL).<\/li>\n<li>Log in to your account on the provider\u2019s website.<\/li>\n<li>Follow their process to submit the CSR for validation. For example, this is how to do on ZeroSSL (open file and copy\/paste):\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-36954\" src=\"https:\/\/www.wpstaq.com\/wp-content\/uploads\/2024\/12\/paste-CSR-ZeroSSL.png\" alt=\"\" width=\"994\" height=\"774\" srcset=\"https:\/\/www.wpstaq.com\/wp-content\/uploads\/2024\/12\/paste-CSR-ZeroSSL.png 994w, https:\/\/www.wpstaq.com\/wp-content\/uploads\/2024\/12\/paste-CSR-ZeroSSL-300x234.png 300w, https:\/\/www.wpstaq.com\/wp-content\/uploads\/2024\/12\/paste-CSR-ZeroSSL-768x598.png 768w\" sizes=\"auto, (max-width: 994px) 100vw, 994px\" \/><\/li>\n<li>Once the CSR is validated, the SSL provider will issue the following files:\n<ul>\n<li><strong>certificate.crt<\/strong>: The primary certificate for your domain.<\/li>\n<li><strong>ca_bundle.crt<\/strong>: The Certificate Authority bundle used to validate the SSL chain.<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<h2>Step 4: Upload Your SSL Certificate to Staq<\/h2>\n<p>Once you have obtained the required files, follow this guide on <a href=\"https:\/\/www.wpstaq.com\/knowledgebase\/how-to-add-a-custom-ssl\/\">how to install your custom SSL on Staq<\/a>.<\/p>\n","protected":false},"featured_media":0,"parent":0,"template":"","class_list":["post-36948","knowledgebase","type-knowledgebase","status-publish","hentry","categories-ssl"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.8 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How to create a custom SSL certificate - Managed Hosting Platform for WordPress<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wpstaq.com\/knowledgebase\/how-to-create-a-custom-ssl-certificate\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to create a custom SSL certificate - Managed Hosting Platform for WordPress\" \/>\n<meta property=\"og:description\" content=\"This guide explains how to create a custom SSL certificate that can be uploaded to your Staq-hosted WordPress website. By the end of this process, you will have the following files ready for upload: ca_bundle.crt certificate.crt private.key Follow these steps to generate your SSL certificate files: Step 1: Generate a Private Key The private key&hellip;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wpstaq.com\/knowledgebase\/how-to-create-a-custom-ssl-certificate\/\" \/>\n<meta property=\"og:site_name\" content=\"Managed Hosting Platform for WordPress\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/staqhosting\/\" \/>\n<meta property=\"article:modified_time\" content=\"2024-12-11T00:32:18+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wpstaq.com\/wp-content\/uploads\/2024\/12\/cd-downloads-ssl-private-key-install.png\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.wpstaq.com\\\/knowledgebase\\\/how-to-create-a-custom-ssl-certificate\\\/\",\"url\":\"https:\\\/\\\/www.wpstaq.com\\\/knowledgebase\\\/how-to-create-a-custom-ssl-certificate\\\/\",\"name\":\"How to create a custom SSL certificate - Managed Hosting Platform for WordPress\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.wpstaq.com\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.wpstaq.com\\\/knowledgebase\\\/how-to-create-a-custom-ssl-certificate\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.wpstaq.com\\\/knowledgebase\\\/how-to-create-a-custom-ssl-certificate\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.wpstaq.com\\\/wp-content\\\/uploads\\\/2024\\\/12\\\/cd-downloads-ssl-private-key-install.png\",\"datePublished\":\"2024-12-11T00:26:00+00:00\",\"dateModified\":\"2024-12-11T00:32:18+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.wpstaq.com\\\/knowledgebase\\\/how-to-create-a-custom-ssl-certificate\\\/#breadcrumb\"},\"inLanguage\":\"en-nz\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.wpstaq.com\\\/knowledgebase\\\/how-to-create-a-custom-ssl-certificate\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-nz\",\"@id\":\"https:\\\/\\\/www.wpstaq.com\\\/knowledgebase\\\/how-to-create-a-custom-ssl-certificate\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.wpstaq.com\\\/wp-content\\\/uploads\\\/2024\\\/12\\\/cd-downloads-ssl-private-key-install.png\",\"contentUrl\":\"https:\\\/\\\/www.wpstaq.com\\\/wp-content\\\/uploads\\\/2024\\\/12\\\/cd-downloads-ssl-private-key-install.png\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.wpstaq.com\\\/knowledgebase\\\/how-to-create-a-custom-ssl-certificate\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.wpstaq.com\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to create a custom SSL certificate\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.wpstaq.com\\\/#website\",\"url\":\"https:\\\/\\\/www.wpstaq.com\\\/\",\"name\":\"Managed Hosting Platform for WordPress\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.wpstaq.com\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.wpstaq.com\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-nz\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.wpstaq.com\\\/#organization\",\"name\":\"Staq\",\"alternateName\":\"WPStaq\",\"url\":\"https:\\\/\\\/www.wpstaq.com\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-nz\",\"@id\":\"https:\\\/\\\/www.wpstaq.com\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.wpstaq.com\\\/wp-content\\\/uploads\\\/2023\\\/05\\\/cropped-LogoNoText.png\",\"contentUrl\":\"https:\\\/\\\/www.wpstaq.com\\\/wp-content\\\/uploads\\\/2023\\\/05\\\/cropped-LogoNoText.png\",\"width\":512,\"height\":512,\"caption\":\"Staq\"},\"image\":{\"@id\":\"https:\\\/\\\/www.wpstaq.com\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/staqhosting\\\/\",\"https:\\\/\\\/www.linkedin.com\\\/company\\\/wpstaq\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to create a custom SSL certificate - Managed Hosting Platform for WordPress","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:\/\/www.wpstaq.com\/knowledgebase\/how-to-create-a-custom-ssl-certificate\/","og_locale":"en_US","og_type":"article","og_title":"How to create a custom SSL certificate - Managed Hosting Platform for WordPress","og_description":"This guide explains how to create a custom SSL certificate that can be uploaded to your Staq-hosted WordPress website. By the end of this process, you will have the following files ready for upload: ca_bundle.crt certificate.crt private.key Follow these steps to generate your SSL certificate files: Step 1: Generate a Private Key The private key&hellip;","og_url":"https:\/\/www.wpstaq.com\/knowledgebase\/how-to-create-a-custom-ssl-certificate\/","og_site_name":"Managed Hosting Platform for WordPress","article_publisher":"https:\/\/www.facebook.com\/staqhosting\/","article_modified_time":"2024-12-11T00:32:18+00:00","og_image":[{"url":"https:\/\/www.wpstaq.com\/wp-content\/uploads\/2024\/12\/cd-downloads-ssl-private-key-install.png","type":"","width":"","height":""}],"twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wpstaq.com\/knowledgebase\/how-to-create-a-custom-ssl-certificate\/","url":"https:\/\/www.wpstaq.com\/knowledgebase\/how-to-create-a-custom-ssl-certificate\/","name":"How to create a custom SSL certificate - Managed Hosting Platform for WordPress","isPartOf":{"@id":"https:\/\/www.wpstaq.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.wpstaq.com\/knowledgebase\/how-to-create-a-custom-ssl-certificate\/#primaryimage"},"image":{"@id":"https:\/\/www.wpstaq.com\/knowledgebase\/how-to-create-a-custom-ssl-certificate\/#primaryimage"},"thumbnailUrl":"https:\/\/www.wpstaq.com\/wp-content\/uploads\/2024\/12\/cd-downloads-ssl-private-key-install.png","datePublished":"2024-12-11T00:26:00+00:00","dateModified":"2024-12-11T00:32:18+00:00","breadcrumb":{"@id":"https:\/\/www.wpstaq.com\/knowledgebase\/how-to-create-a-custom-ssl-certificate\/#breadcrumb"},"inLanguage":"en-nz","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wpstaq.com\/knowledgebase\/how-to-create-a-custom-ssl-certificate\/"]}]},{"@type":"ImageObject","inLanguage":"en-nz","@id":"https:\/\/www.wpstaq.com\/knowledgebase\/how-to-create-a-custom-ssl-certificate\/#primaryimage","url":"https:\/\/www.wpstaq.com\/wp-content\/uploads\/2024\/12\/cd-downloads-ssl-private-key-install.png","contentUrl":"https:\/\/www.wpstaq.com\/wp-content\/uploads\/2024\/12\/cd-downloads-ssl-private-key-install.png"},{"@type":"BreadcrumbList","@id":"https:\/\/www.wpstaq.com\/knowledgebase\/how-to-create-a-custom-ssl-certificate\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.wpstaq.com\/"},{"@type":"ListItem","position":2,"name":"How to create a custom SSL certificate"}]},{"@type":"WebSite","@id":"https:\/\/www.wpstaq.com\/#website","url":"https:\/\/www.wpstaq.com\/","name":"Managed Hosting Platform for WordPress","description":"","publisher":{"@id":"https:\/\/www.wpstaq.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wpstaq.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-nz"},{"@type":"Organization","@id":"https:\/\/www.wpstaq.com\/#organization","name":"Staq","alternateName":"WPStaq","url":"https:\/\/www.wpstaq.com\/","logo":{"@type":"ImageObject","inLanguage":"en-nz","@id":"https:\/\/www.wpstaq.com\/#\/schema\/logo\/image\/","url":"https:\/\/www.wpstaq.com\/wp-content\/uploads\/2023\/05\/cropped-LogoNoText.png","contentUrl":"https:\/\/www.wpstaq.com\/wp-content\/uploads\/2023\/05\/cropped-LogoNoText.png","width":512,"height":512,"caption":"Staq"},"image":{"@id":"https:\/\/www.wpstaq.com\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/staqhosting\/","https:\/\/www.linkedin.com\/company\/wpstaq"]}]}},"_links":{"self":[{"href":"https:\/\/www.wpstaq.com\/nz\/wp-json\/wp\/v2\/knowledgebase\/36948","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wpstaq.com\/nz\/wp-json\/wp\/v2\/knowledgebase"}],"about":[{"href":"https:\/\/www.wpstaq.com\/nz\/wp-json\/wp\/v2\/types\/knowledgebase"}],"wp:attachment":[{"href":"https:\/\/www.wpstaq.com\/nz\/wp-json\/wp\/v2\/media?parent=36948"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}