{"id":364,"date":"2021-07-23T12:28:32","date_gmt":"2021-07-23T12:28:32","guid":{"rendered":"https:\/\/ssdsunucum.com\/blog\/automatically-issued-hostnames\/"},"modified":"2021-07-23T12:28:32","modified_gmt":"2021-07-23T12:28:32","slug":"automatically-issued-hostnames","status":"publish","type":"post","link":"https:\/\/ssdsunucum.com\/blog\/automatically-issued-hostnames\/","title":{"rendered":"Automatically-Issued Hostnames"},"content":{"rendered":"<\/p>\n<div class=\"col-md-9\">\n<div class=\"flex-column flex-md-row article-header\"><\/div>\n<hr>\n<h2 id=\"overview\">Overview<\/h2>\n<p>First-time users who try to log in to WHM on newly-installed servers will frequently see a security warning. Newly-installed servers without a fully-qualified domain name (FQDN) as a hostname will automatically receive one from cPanel, L.L.C. The hostname will be a subdomain of <code>cprapid.com<\/code>.<\/p>\n<h2 id=\"why-do-you-need-an-automatically-issued-hostname\">Why do you need an automatically-issued hostname?<\/h2>\n<p>The first time a user tries to log in to WHM on a newly-installed server, they will see a security warning. It can be scary, especially for users on a trial license running cPanel &#038; WHM for the first time.<\/p>\n<p>This happens because most modern browsers will display a warning whenever a user tries to visit a site or domain with an invalid or self-signed certificate.<\/p>\n<p>cPanel &#038; WHM attempts to secure your server immediately after installation. First, it installs a self-signed certificate to secure the server. Then, it requests a free hostname certificate from our Certificate Authority to secure the server.<\/p>\n<p>However, sometimes a user does not set a resolvable FQDN as the server\u2019s hostname. So, the Certificate Authority <strong>cannot<\/strong> issue a certificate for the server. The self-signed certificate remains on the server, and the new user will see a warning when they try to log in to WHM.<\/p>\n<h2 id=\"how-it-works\">How it works<\/h2>\n<p>To allow the Certificate Authority to issue a certificate, we will automatically issue hostnames to newly-installed servers without a valid FQDN hostname.<\/p>\n<p>The installer script check the hostname of a newly-installed server. If the hostname does not resolve to the server\u2019s IP address, the script requests an automatically-issued hostname from <code>cprapid.com<\/code> domain. The <code>cprapid.com<\/code> nameservers will generate a new subdomain and point it at the server\u2019s primary IP address. The server will use that subdomain as a hostname to request a certificate from the Certificate Authority and install it.<\/p>\n<p>By the time the user logs in to WHM for the first time, the certificate is installed and ready, so no security warning appears.<\/p>\n<h2 id=\"limitations\">Limitations<\/h2>\n<ul>\n<li>\n<p>The auto-issued hostname only issues a FQDN under the <code>cprapid.com<\/code> domain and points it to the main IP address of the server.<\/p>\n<\/li>\n<li>\n<p>You <strong>cannot<\/strong> manage the subdomain or delegate the subdomain to any other server.<\/p>\n<\/li>\n<li>\n<p>To create subdomains for nameservers, you <strong>must<\/strong> set the server to use a hostname from a domain that you control. Nameservers under the <code>cprapid.com<\/code> domain will <strong>not<\/strong> be fully functional.<\/p>\n<\/li>\n<\/ul>\n<h2 id=\"taking-flight\">Taking flight<\/h2>\n<p>We encourage users to replace the auto-issued hostname with an existing domain or purchase a new domain to generate a hostname. Using your own domain name and hostname will help establish your company\u2019s brand.<\/p>\n<p>To change the server\u2019s hostname, use WHM\u2019s <em>Change Hostname<\/em> interface (<em>WHM &gt;&gt; Home &gt;&gt; Networking Setup &gt;&gt; Change Hostname<\/em>).<\/p>\n<p>After a user changes the server\u2019s auto-issued hostname to their new hostname, the Certificate Authority will issue a new certificate for the server and the change should be seamless.<\/p>\n<h2 id=\"caveats\">Caveats<\/h2>\n<p>If a partner disables the free hostname certificate service for their customers Manage2\u2019s Update Company Information interface (<em>Manage2 &gt;&gt; Dashboard &gt;&gt; Company &gt;&gt; Update Company Information<\/em>), the server will still use the self-signed certificate. Because of this, they will see the security warning when they try to log in to WHM.<\/p>\n<p>Also, if a partner uses a post-installation script to assign a hostname to the server, the script will continue to work as expected. If partners use a pre-installation script to assign a hostname to the server, that hostname must be a FQDN that resolves to the server or it will be replaced by an auto-issued hostname.<\/p>\n<\/p><\/div>\n","protected":false},"excerpt":{"rendered":"<p>Overview First-time users who try to log in to WHM on newly-installed servers will frequently see a security warning. Newly-installed servers without a fully-qualified domain name (FQDN) as a hostname will automatically receive one from cPanel, L.L.C. The hostname will be a subdomain of cprapid.com. Why do you need an automatically-issued hostname? The first time &hellip;<\/p>\n","protected":false},"author":1,"featured_media":365,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/ssdsunucum.com\/blog\/wp-json\/wp\/v2\/posts\/364"}],"collection":[{"href":"https:\/\/ssdsunucum.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ssdsunucum.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ssdsunucum.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ssdsunucum.com\/blog\/wp-json\/wp\/v2\/comments?post=364"}],"version-history":[{"count":0,"href":"https:\/\/ssdsunucum.com\/blog\/wp-json\/wp\/v2\/posts\/364\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/ssdsunucum.com\/blog\/wp-json\/wp\/v2\/media\/365"}],"wp:attachment":[{"href":"https:\/\/ssdsunucum.com\/blog\/wp-json\/wp\/v2\/media?parent=364"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ssdsunucum.com\/blog\/wp-json\/wp\/v2\/categories?post=364"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ssdsunucum.com\/blog\/wp-json\/wp\/v2\/tags?post=364"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}