{"id":56313,"date":"2020-07-22T16:04:08","date_gmt":"2020-07-22T21:04:08","guid":{"rendered":"https:\/\/blog.cpanel.com\/?p=56313"},"modified":"2020-07-22T16:04:08","modified_gmt":"2020-07-22T21:04:08","slug":"and-you-get-a-hostname-and-you-get-a-hostname-and-you-get-a-hostname","status":"publish","type":"post","link":"https:\/\/devel.www.cpanel.net\/blog\/products\/and-you-get-a-hostname-and-you-get-a-hostname-and-you-get-a-hostname\/","title":{"rendered":"… and you get a hostname! And you get a hostname! And you get a hostname!"},"content":{"rendered":"\n
The first time a user tries to log in to WHM on a newly-installed server, they see a security warning. It can be scary, especially for users on a trial license running cPanel & WHM for the first time.<\/p>\n\n\n\n
This happens because most modern browsers display a warning whenever a user tries to visit a site or domain with an invalid or self-signed certificate.<\/p>\n\n\n\n
cPanel & 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\n\n\n
However, sometimes a user does not set a resolving fully-qualified domain name<\/a> (FQDN) as the server’s hostname. So, the Certificate Authority cannot 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\n\n\n To allow the Certificate Authority to issue a certificate, we will automatically issue hostnames to newly-installed servers without a resolving hostname.<\/p>\n\n\n\n The installer script checks the hostname of a newly-installed server. If the hostname does not resolve to the server’s IP address, the script requests an automatically-issued hostname<\/a> from “cprapid.com” domain. The “cprapid.com” nameservers assign a subdomain and point it at the server’s 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\n\n\n How soon the certificate will be available post-install depends on a lot of factors. It may be a few seconds to a few minutes. By the time the user logs in to WHM for the first time, the certificate should be installed and ready, so no security warning appears.<\/p>\n\n\n\n The auto-issued hostname only issues an FQDN under the cprapid.com domain and points it to the main IP address of the server.<\/p>\n\n\n\n You cannot manage the subdomain or delegate the subdomain to any other server. The subdomains are stateless and reference the IP address of the server. If the IP address is 192.0.2.25, the hostname will be 192-0-2-25.cprapid.com. You are not able to manage or change where the subdomain points.<\/p>\n\n\n\n To create subdomains for DNS servers and other services, such as nameservers and FTP servers, you must set the server to use a hostname at a domain that you control.<\/p>\n\n\n\n We strongly 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’s brand.<\/p>\n\n\n\n To change the server’s hostname, use WHM’s Change Hostname<\/a><\/em> interface (WHM >> Home >> Networking Setup >> Change Hostname<\/em>).<\/p>\n\n\n\n After a user changes the server’s 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\n\n\n Depending on your hostname configuration settings and installation scripts, there are a few scenarios where users will still experience issues.<\/p>\n\n\n\n These changes are designed to improve the onboarding experience for new users. If you’d like to share your thoughts about this update, we’d love to hear them. To contact us with your feedback or to ask any questions you might have, please join us on our official Discord<\/a> channel, our subreddit<\/a>, or our Forums!<\/a><\/p>\n","protected":false},"excerpt":{"rendered":" Solving a hostname security warning: The first time a user tries to log in to WHM on a newly-installed server, they see a security warning. It can be scary, especially for users on a trial license running cPanel & WHM for the first time. This happens because most modern browsers display a warning whenever a […]<\/p>\n","protected":false},"author":85,"featured_media":65441,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":false,"footnotes":""},"categories":[49],"tags":[],"class_list":["post-56313","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-products"],"acf":[],"yoast_head":"\nUpdating a hostname with an invalid or self-signed certificate:<\/h2>\n\n\n\n
Free Hostname limitations and solutions:<\/h2>\n\n\n\n
How to change a server’s hostname:<\/h2>\n\n\n\n
Caveats of auto-issued hostnames:<\/h2>\n\n\n\n