To complete domain control validation (DCV) for your SSL certificate, follow these organized steps:
- Create the Validation File:
- Use a text editor like Nano to create the file
AN2D4C5H7F01823KRIDHJ.txt. - Open Nano with
Ctrl + O, paste the content, and save usingCtrl + X.
- Use a text editor like Nano to create the file
- Place the File on Your Server:
- Ensure the directory
/Library/WebServer/Documents/.well-known/pki-validation/exists. - Use the command
mkdir -p /Library/WebServer/Documents/.well-known/pki-validation/to create necessary directories if they don't exist.
- Ensure the directory
- Set Permissions and Ownership:
- Set file permissions using
chmod 644 /path/to/file. - Ensure ownership is set to your user ID using
chown username:group /path/to/file.
- Set file permissions using
- Upload the File:
- Use SCP:
scp AN2D4C5H7F01823KRIDHJ.txt username@hostname.tld:/Library/WebServer/Documents/.well-known/pki-validation/. - Alternatively, use FTP or SFTP to transfer the file.
- Use SCP:
- Verify Web Server Configuration:
- Ensure your web server can serve files from the
.well-knowndirectory. - Restart or reload your web server if necessary.
- Ensure your web server can serve files from the
- Test DCV File Accessibility:
- Access a page like
https://example.com/.well-known/pki-validation/AN2D4C5H7F01823KRIDHJ.txtto ensure the file is accessible.
- Access a page like
- Monitor Validation Status:
- Check the CA's status page for validation progress.
- Consider setting up a cron job or script to monitor and update the status periodically.
- Consider Additional Requirements:
- Ensure the filename matches exactly what your CA expects.
- Verify that the file content meets specific formatting or metadata requirements of the CA.
- Check if any headers, like
Link: <file>; rel=validation-data, are needed on your site.
- Follow Up with CA:
- If validation is delayed, contact the CA for updates or assistance.
