On a web server serving https://www.example.com (just an example) I have generated a private key and got corresponding SSL certificate from a CA. The certificate is a wildcard certificate valid for *.example.com.
Is it possible to import such SSL certificate and the private key to RouterOS 6.29 to be used for its www-ssl service with FQDN gw.example.com (just an example)?
If anyone has done it, please describe the procedure.
Undoubtedly you can secure multiple sub-domains under common CSR (Certificate Signing Request) & Private key using the wildcard SSL Certificate.
The common CSR & private key will work single server only. If you are securing your domain on multiple servers you need to create new CSR & private for each single server.
Make sure the sub-domain should be first-level.If your domain is (www.example.com), you can secure any number of (*.example.com) sub-domains, but not (..example.com) domains.
But, you can also copy the private key and the certificate files to another web server (www2.example.com) provided that you change its configuration options accordingly.
In that way I was able to copy the certificate from Apache 2.2 on a Linux server to a Apache Tomcat 6 on a Windows server and it is working fine.
No, I’d like to do use the same certificate on the RouterOS 6.29 (gw.example.com).
I’ve found a solution to this – here are the steps (on RouterOS 6.29):
In Files remove old files used to install a previous certificate (certificate-request_key.pem and *.cer).
Prepare the files for new certificate(s): gw.example.com.cer – the wildcard certificate issued by your CA (e.g. GeoTrust) for *.example.com domain you want to use on the router. certificate-request_key.pem – the private key of the certificate. GeoTrust_SSL_CA-G3.pem – intermediate certificate of your CA (GeoTrust SSL CA - G3 in this example) needed for validating the wildcard certificate.
Upload the files to the router root directory with Files → Upload.
Import the certificate(s) from the files with the following command: