Kemp Support, how can we help?

The latest application delivery knowledge and expertise at your fingertips.

How to upload a SSL certificate by API

 

Information

 

Summary:

What is the curl command to upload a SSL to the kemp

How do I assign the uploaded SSL certificate directly to a VS?

Environment:

Product: Loadmaster

Version: Any

Platform: Any

Application: Any

Question/Problem Description:

Example of the command to use to upload a SSL cert to the kemp

Assign the newly uploaded certificate to VS for use

Steps to Reproduce:  
Error Message:  
Defect Number:  
Enhancement Number:  
Cause:  
Resolution:
curl -F "cert=@vsftpd.pem" -F "key=@vsftpd.key"  -k "https://bal:Kemp1tech@10.1.204.14/access/addcert?cert=acert"


where vsftpd.pem is the pathname of the cert
vsftpd.key is pathname of private key
bal:Kemp1tech is the credentials of Kemp,
10.1.204.14 is IP of kemp
acert is the name of the certificate identifier on the Kemp WUI.

 

Here is an example to direct assign a cert to an existing VS. VS need to be created first

curl -k "https://bal:Kemp1tech@10.1.204.10/access/modvs?vs=10.1.204.3&port=443&prot=tcp&CertFile=vsftpd"

Where bal is the login username
Kemp1tech is the password
10.1.204.10 is the shared IP of kemp
10.1.204.3 is VIP IP
443 is the port
tcp is the protocol of VIP
vsftpd is the name of the cert created in previous step on KEMP WUI

curl -F "cert=@vsftpd.pem" -F "key=@vsftpd.key"  -k "https://bal:Kemp1tech@10.1.204.14/access/addcert?cert=acert&replace=1"


where vsftpd.pem is the pathname of the cert
vsftpd.key is pathname of private key
bal:Kemp1tech is the credentials of Kemp,
10.1.204.14 is IP of kemp
acert is the name of the certificate identifier on the Kemp WUI.
you need to put &replace=1 at the end so the existing cert is replaced with the new one.

https://support.kemptechnologies.com/hc/en-us/articles/4423898554381-RESTful-API#MadCap_TOC_4_4_..9

You can use the following command to apply admin WUI cert by API without rebooting/failover

https://support.kemptechnologies.com/hc/en-us/articles/7298919533325-How-to-apply-the-administrative-cert-to-both-machines-in-HA-without-failover?source=search&auth_token=eyJhbGciOiJIUzI1NiJ9.eyJhY2NvdW50X2lkIjoyMjE4ODcsInVzZXJfaWQiOjM4NjM3MTU5MzQ5MSwidGlja2V0X2lkIjoxNzU4NjksImNoYW5uZWxfaWQiOjYzLCJ0eXBlIjoiU0VBUkNIIiwiZXhwIjoxNjYyODgxODIyfQ.aIeZe9fem3RpbwGnP6DNye0HbLTYS-sNNqsM9xqGp_E

 

Workaround:  
Notes:  

Was this article helpful?
0 out of 0 found this helpful

Comments