Following are the detailed steps to setup wild card SSL Certificate with your domain and Sub domains:
First of all we should have wild card SSL certificate purchased from CA. I have purchased SSL and hosting from godaddy : Please check properly few registrar provide SSL for their own server if you have hosting with them. Godaddy provide SSL Certificate for their hosing as well as if you have hosting with other provider. It depend on your requirements.
You can check other ssl provider below:
Login into your godaddy account and next Select your Purchased certificate I have (Standard UCC SSL Certificate) ==> Click on Manage :
Generate CSR request to submit Certificate Signing Request (CSR). and Click on Re-Key certificate to submit CSR Request with CA for their approval.
Online and offline tool or utility can also help you to generate CSR Request
CSR generation Example with online tools you can fill your certificate see the details in below image :
openssl req -new -newkey rsa:2048 -nodes -out www_example_com.csr -keyout www_example_com.key -subj “/C=IN/ST=23/L=Chandigarh/O=Example Org/OU=Sales Dept./CN=www.example.com”
It will create www_example_com.csr and www_example_com.key file on your desire location.
Copy www_example_com.csr file or by editing its content to paste in the Certificate Signing Request (CSR) Box:
———BEGIN CERTIFICATE REQUEST—–
—–END CERTIFICATE REQUEST—–
Save and submit all Changes. Once CA will approve the Certificate it will be available for downloading. Click on Download and select your file for IIS/Apache or any other As i have selected for IIS. and extract the zip in your desired location. It has 2 files 1 like 755fadc3.crt and second has gd-g2_iis_intermediates (PKCS #7 Certificates (.p7b) file.
Next use convert gd-g2_iis_intermediates to .pem format $ openssl pkcs7 -in gd-g2_iis_intermediates -print_certs -out renderwebsols.pem
If Not then you will get the error:
Error: Unable to set the certificate: Invalid certificate format
Solutions: openssl pkcs7 -in gd-g2_iis_intermediates -print_certs -out renderwebsols.pem
Next Login into your Control Penal to setup SSL with your domain and go the Website & Domains
Select the website and click on “Secure Site with SSL” :
Now you have to “enable SSL support ” in your Plesk for your desired website.
Godaddy Instruction here for the Wild Card SSL:
Give try with to test SSL certificate with great tools:
renderwebsolutoin.com Check SSL
Then click on Submit button.
Error & Solutions:
Unable to set the certificate: Invalid certificate format
$ openssl pkcs7 -in gd-g2_iis_intermediates -print_certs -out myssl.pem
Now upload the files now the issue resolved for me: