Changing SSL/TLS Certificate Seller’s URLs¶
You can change the SSL/TLS certificate seller’s URLs only through the command line interface.
To change the URLs of the Buy SSL/TLS Certificate and View Certificates buttons to “https://www.example.com”, run the following command:
- Plesk for Linux
plesk bin panel_gui -p -cert_purchasing_url https://www.example.com
- Plesk for Windows
"%plesk_dir%\bin\panel_gui.exe" -p -cert_purchasing_url https://www.example.com
The Format of a POST Request¶
Note that buttons used to buy or view SSL/TLS certificates do not just lead to a URL specified with the command above. Actually, Plesk sends a POST request to this URL. The format of the POST request body varies depending on a button function. For example, if a button is used to buy SSL/TLS certificates, the request body contains such CSR parameters as a domain name, business name, country, and so on.
The table below provides the details on the parameters which are sent in POST requests.
Button location | Parameters in the POST request body | Example |
---|---|---|
|
csr = <encoded request> csr_domain = <domain name> csr_bits = <key size> csr_email = <administrator’s email> csr_company = <company name> csr_department = <organization department name> csr_state = <state> csr_city = <city> csr_country = <country> action = CREATE_CERT |
csr = —–BEGIN CERTIFICATE REQUEST—– MIICyTCCAbE CAQAwgYMxCzA JBgNVBAYTAlJVMQww CgYDVQQIEwNOc2sx DDAKBgNV … —–END CERTIFICATE REQUEST—– csr_domain = example.com csr_bits = 2048 csr_email = admin@example.com csr_company = ACME csr_department = IT csr_state = Illinois csr_city = Chicago csr_country = US action = CREATE_CERT |
|
action = MODIFY_CERT |
Reverting the URL to the Default Value¶
To restore the default URL, issue the following SQL query:
delete from misc where param='cert_purchasing_url';