ANS Documentation

Improve This Doc
  • Cloud
  • Domains and DNS management
    • Domain Name Management
    • SafeDNS
    • SSL Certificates
      • Purchasing and Renewing
      • Generating A CSR (Certificate Sigining Request)
      • Validating your Certificate
      • ANS SSL Types
      • Self Signed Certificates
      • Using Server Name Indication (SNI)
      • Extended Validation Certificates
      • Generating a PFX file
      • Handling Private Keys
      • Let’s Encrypt
    • Reverse DNS Records
  • Backup and High Availability
  • eCommerce Stacks
  • Security
  • Email
  • Monitoring and usage management
  • Networking
  • Operating systems
  • Webcelerator
  • MyUKFast
  • Home >
  • Domains and DNS management >
  • SSL Certificates >
  • Generating A CSR (Certificate Sigining Request)

How to Generate a CSR File¶

This guide will help you generate a Certificate Signing Request (CSR) on different operating systems.

Pre-requisite reading¶

On SSL certificates that protect a single hostname/domain, your primary hostname is the hostname/domain you have chosen.

For multi-domain SSL certificates, the primary hostname is the first hostname that is listed on your SSL certificate inside ANS Glass.

You should also ensure to make sure your key and CSR are in a safe folder, as you’ll need the the key to install the SSL certificate and the CSR to generate your SSL Certificate.

Generate a CSR on Linux¶

First, check if OpenSSL is installed:

openssl version

If OpenSSL is not installed, you will see an error message. In that case, install OpenSSL:

Ubuntu¶

sudo apt install openssl

RHEL/AlmaLinux¶

sudo yum install openssl

Now you can generate the CSR. You need to replace yourhostname with your primary hostname (Common Name) that the SSL will protect.

openssl req -new -newkey rsa:2048 -nodes -keyout /path/to/yourhostname.key -out /path/to/yourhostname.csr

Generate a CSR on Windows¶

  1. Open IIS Manager.

  2. Select the server in the Connections pane.

  3. Double-click the Server Certificates icon.

  4. Click the Create Certificate Request link in the Actions pane.

  5. Fill out the Distinguished Name Properties form with the required information (Common Name (primary hostname), Organization, City/locality, State/province, Country/region).

  6. Set the Cryptographic Service Provider Properties (Microsoft RSA Schannel Cryptographic Provider and a bit length of 2048).

  7. Create a file name for your CSR and click the Finish button.

Next Article > Validating your SSL certificate via File Upload

  • Useful Links
  • SMB
  • Enterprise
  • Channel
  • Public Sector
  • ANS Data Centres
  • About ANS
  • Careers
  • Blog
  • Get in touch
  •  
  • Sales 0800 458 4545
  • Support 0800 230 0032
  • Get in touch

© ANS Group Limited | Terms and Conditions | Corporate Guidance | Sitemap
ANS Group Limited, registered in England and Wales, company registration number 03176761, registered office 1 Archway, Birley Fields, Manchester M15 5QJ