Help with proper FQDN naming

We have purchased an SSL certificate and need to provide the CSR. From reading earlier postings, I believe I have the correct command for doing that. However, I am confused as to what to use for the Common Name. It says “server FQDN or YOUR name”. I don’t know what they mean by YOUR name (if someone cares to explain, i’ll be happy to read it), so I’ll focus on the FQDN.

I am running Ubuntu 14.04. For this question, I will use as our domain name.

When I run hostname, I get “mydomain” as the response. the /etc/hostname file looks like: localhost mydomain

When I enter ‘hostname -f’, I get ‘localhost’. Should I set my FQDN to or (or something else)?


Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

I got no idea what is the ‘earlier posting’ you read. But if your ssl certificate is for, then you will have to input

  • No, you cannot use a cert for with
  • Yes, a single cert can represent multiple DN. (subjectAltName)
  • Yes, there is a ‘wild-card’ cert, which can fit *

if you dns is setup correctly a host lookup for your domain name should come back with

# host has address of

IP address is just representative of your IP. If the dns is set up properly then put in your FQDN for the common name.