Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save shalintj/a8dcc12c7eedae49418e to your computer and use it in GitHub Desktop.
Save shalintj/a8dcc12c7eedae49418e to your computer and use it in GitHub Desktop.
cd /etc/nginx-sp
mkdir certs/yourdomain.com
cd certs/yourdomain.com
@DenMurphy
Copy link

I wasn't able to create a new "yourdomain.com" directory using this code, only the "cert" directory was created. I was able to get it working with the following:

cd /etc/nginx-sp
mkdir -p certs/yourdomain.com
cd certs/yourdomain.com

The -p will create nested directories, but only if it doesn't exist already.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment