Knowledge base

1000 FAQs, 500 tutorials and instructional videos. Here, there are only solutions!

Import a custom SSL certificate

This guide explains how…

  1. … generate a CSR and private key to request a third-party certificate from a Certification Authority (CA),
  2. import this certificate for your Infomaniak site, using the CRT obtained from the CA.

 

Preamble

  • Although Infomaniak offers all the SSL certificates you might need…
    • free Let's Encrypt certs for personal sites (only possible with sites hosted at Infomaniak),
    • DV certs from Sectigo for professional/private sites that are not registered in the trade register,
    • EV certs from Sectigo for companies registered in the trade register,
  • It is also possible to install an SSL certificate obtained elsewhere (intermediate certificate from a certification authority of your choice), custom or self-signed certificates.

 

1. Generate a CSR (Certificate Signing Request)

A CSR (Certificate Signing Request or Certificate Signing Request) is an encoded file containing the information necessary to request an SSL/TLS certificate.

It must be generated on your side to ensure that the private key remains under your control, using for example OpenSSL.

Adapt and run the following command from a terminal application (command line interface, CLI) on your device:

openssl req -utf8 -nodes -sha256 -newkey rsa:2048 -keyout domain.xyz.key -out domain.xyz.csr -addext "subjectAltName = DNS:domain.xyz, DNS:www.domain.xyz"


Explanations

  • newkey rsa:2048: Generates a new 2048-bit RSA key.
  • keyout domain.xyz.key: Specifies the file where the private key will be saved.
  • out domain.xyz.csr: Specifies the file where the CSR will be saved.
  • addext “subjectAltName = ...”: Adds additional domains via the SAN (Subject Alternative Name) extension, necessary to include all desired domains in the certificate (the main domain domain.xyz + any other associated domain or subdomain, such as www.domain.xyz).

After generation, you can check the contents of the CSR with the following command:

openssl req -in domain.xyz.csr -noout -text

This allows you to verify that all domains listed in subjectAltName are correctly included.

Once the CSR is generated, you can send it to the certification authority (CA) to obtain your SSL/TLS certificate.

 

2. Import the external certificate

Once validated, the CA issues a certificate (domain.xyz.crt) and sometimes an intermediate certificate (ca_bundle.crt). To access SSL certificate management:

  1. Click here to access the management of your product on the Infomaniak Manager (need help?).
  2. Click directly on the name assigned to the relevant product.
  3. Click on SSL Certificates in the left sidebar.
  4. Click the blue Install a certificate button:
  5. Choose the custom certificate.
  6. Click on the Next button:
  7. Import your certificate and private key, either by importing the .crt and .key files or by copy-pasting.
  8. Click on Complete:

 

Alternative command to generate a self-signed certificate (optional)

If you want a local certificate for testing purposes only or without going through a CA (not recommended for production), you can use this command:

 
openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout domain.xyz.key -out domain.xyz.crt -addext “subjectAltName = DNS:domain.xyz, DNS:www.domain.xyz”

This generates both a self-signed certificate (domain.xyz.crt) and a private key (domain.xyz.key). However, self-signed certificates are not recognized as valid by public browsers or systems. They are only suitable for internal or development environments.

 

Import an intermediate certificate

When adding a custom SSL certificate, it is possible to import the intermediate certificate (by importing the .crt file or pasting the data provided by the certification authority):


Has this FAQ been helpful?