POST /system/web-server/protocols/https/certificate/document
To set a custom certificate, you need to send the certificate file and the password in the same multipart. The password needs to be sent in text/plain, and the multipart name for the password is "password".
The multipart "name" field for the file can be empty.
The content-type need to be Multipart/Form-data
FROM API REVISION 2.0
The multipart can be send without the password.
The password can be set on this resource.
If this parameter is not in the request, the Application/Json will be chosen by default.
There are multiple possible values (according the resource):
The first two are the most often used.
There are multiple possible values according the resource:
If this parameter is not present during the request, and error 415 Unsupported Media Type will be thrown.
The Content-Length entity-header field indicates the size of the entity-body.
URL Example: https://0.0.0.0/api/rest/v1/system/web-server/protocols/https/certificate/document
---------------------------acebdf13572468
Content-Disposition: form-data; name=""; filename="fileNameCertificate.crt"
Content-Type: application/x-x509-ca-cert
-----BEGIN CERTIFICATE-----
MIIDizCCAnOgAwIBAgIGAU8ZHa7sMA0GCSqGSIb3DQEBCwUAMHMxCzAJBgNVBAYT
AkNBMQ8wDQYDVQQIDAZRdWViZWMxETAPBgNVBAcMCEJyb3NzYXJkMR4wHAYDVQQK
DBVEaXN0ZWNoIENvbnRyb2xzIEluYy4xIDAeBgNVBAMMF0xvY2FsIEVDTFlQU0Ug
QXV0aG9yaXR5MCAXDTE1MDgwOTE5MzY1OVoYDzIxMTUwODEwMTkzNjU5WjBzMQsw
CQYDVQQGEwJDQTEPMA0GA1UECAwGUXVlYmVjMREwDwYDVQQHDAhCcm9zc2FyZDEe
MBwGA1UECgwVRGlzdGVjaCBDb250cm9scyBJbmMuMSAwHgYDVQQDDBdMb2NhbCBF
Q0xZUFNFIEF1dGhvcml0eTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEB
AKNzXznb89iYTYHjMeflYWSHcfhcMsYbh2HnhJICx9Xf8ZaWU14Fhtbs5sawTQyl
NQzjUN8gqyGozgPOEURxGUIS9yqgJUt2415p99zUMqnD8KsVdo+nsoFiFLCcdtbE
A4nF9k0XzuRg9qd/Ybk2tzPpeLCpmiLiyd3PYVe7ZN/pr+PJCMJlMx/OtiKAcraa
7m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