|
Key Manager Plus (KMP) APIs allow other applications to connect, interact and integrate with Key Manager Plus directly. These APIs belong to the REpresentational State Transfer category and allow applications to create, fetch, associate digital keys and add, retrieve or manage users programmatically.
The first step to configure and use KMP APIs is generating the API key from the KMP user interface. Only administrator users can generate the API keys. The API keys serve as the auth token for your access purposes. The API keys are tied to the host in which they are created.
KMP provides the following APIs:
To fetch resources, user accounts, keys, account/resource details
To delete an existing key or a certificate
To create new keys, certificates or to discover resources
The APIs can be via HTTP POST, GET and PUT requests. All parameters in the request should be form-url encoded. For all the APIs you need to pass AUTH token, which is mandatory.
The URL structure for the KMP API would be as below:
https://<Host-Name-of-KMP-Server OR IP address>:6565/api/pki/restapi/ <api_name> /AUTHTOKEN=A3164150-4C15-4AA4-918E-F258F38149F8
To create a new SSH key
POST
AUTHTOKEN=99AE42A9-02E0-4638-888A-D4D19225C3FE
The following data to be passed as input
{"operation":{"Details":{"keyName":"keytest",
"passPhrase":"passPhrase",
"comment":"comment",
"length":"2048",
"keyType":"ssh-rsa"}}}
https://<Host-Name-of-KMP-Server OR IP address>:6565/api/pki/restapi/createsshkey?INPUT_DATA={"operation":{"Details":{"keyName":"keytest","passPhrase":"passPhrase","comment":"comment","length":"2048","keyType":"ssh-rsa"}}}
{ "name": "CreateSSHKey",
"result": {
"status": "Success",
"message": "New SSH key created successfully" }
}
Note:
Following are the key types that can be used to create new SSH keys:
To update credentials for the discovered resources.
POST
AUTHTOKEN=99AE42A9-02E0-4638-888A-D4D19225C3FE
The following data to be passed as input
{"operation":{"Details":{"userName":"test3",
"password":"test3",
"resourceName":"172.21.147.80",
"isAdmin":"false"}}}
https://<Host-Name-of-KMP-Server OR IP address>:6565/api/pki/restapi/applycredentials?INPUT_DATA={"operation":{"Details":{"userName":"test3","password":"test3","resourceName":"172.21.147.80","isAdmin":"false"}}}
{
"name": "ApplyCredentials",
"result": {
"status": "Success",
"message": "Credentials updated successfully"
}
}
To fetch all the discovered SSH keys
GET
AUTHTOKEN=99AE42A9-02E0-4638-888A-D4D19225C3FE
None
https://<Host-Name-of-KMP-Server OR IP address>:6565/api/pki/restapi/getAllSSHKeys
{"name": "GetAllSSHKeys",
"result": {"status": "Success","message": "All SSH Keys fetched successfully"
},"totalRows": 1,"details": [{"KeyName": "testkey","KeyType": "ssh-rsa",
"KeyLength": "2048","FingerPrint": "SHA256:v28/AlRYrpBKjAp4JoTRphLOkFdVb1ummVcyFHSfC5I",
"isPassphraseAvailable": false,"CreatedBy": "mm","CreationTime": "Today"}]}
To fetch a particular SSH keys from the discovered keys
POST
AUTHTOKEN=99AE42A9-02E0-4638-888A-D4D19225C3FE
The name of the operation and key to be passed as input
{"operation":{"Details":{"keyName":"key"}}}
https://<Host-Name-of-KMP-Server OR IP address>:6565/api/pki/restapi/getSSHKey?INPUT_DATA={"operation":{"Details":{"keyName":"key"}}}
{"name": "GetSSHKey",
"result": {"status": "Success","message": "SSH Key testkey fetched successfully"
}, "details": [{"KeyName": "testkey","KeyType": "ssh-rsa","KeyLength": "2048",
"FingerPrint": "SHA256:v28/AlRYrpBKjAp4JoTRphLOkFdVb1ummVcyFHSfC5I",
"isPassphraseAvailable": false,"CreatedBy": "mm","CreationTime": "Today"}]}
To export a particular SSH key
POST
AUTHTOKEN=99AE42A9-02E0-4638-888A-D4D19225C3FE
The name of the operation and key to be passed as input
{"operation":{"Details":{"keyName":"key"}}}
https://<Host-Name-of-KMP-Server OR IP address>:6565/api/pki/restapi/exportSSHKey?INPUT_DATA={"operation":{"Details":{"keyName":"key"}}}
Key file
To get all the SSH keys associated with a particular user
GET
AUTHTOKEN=99AE42A9-02E0-4638-888A-D4D19225C3FE
The user name and resource name to be passed as input
{"operation":{"Details":{"userName":"test","resourceName":"172.21.147.80"}}}
https://<Host-Name-of-KMP-Server OR IP address>:6565/api/pki/restapi/getSSHkeysforuser?INPUT_DATA={"operation":{"Details":{"userName":"test","resourceName":"172.21.147.80"}}}
{ "name": "GetSSHKeysForUser",
"result": {
"status": "Success","message": "SSH keys for user test of resource pmp-centos6 fetched successfully"
}, "details": "testkey,testkey1"}
To enumerate all users in a particular resource
POST
AUTHTOKEN=99AE42A9-02E0-4638-888A-D4D19225C3FE
The user name and resource name to be passed as input
{"operation":{"Details":{"userName":"test","resourceName":"172.21.147.80"}}}
https://<Host-Name-of-KMP-Server OR IP address>:6565/api/pki/restapi/enumerateusers?INPUT_DATA={"operation":{"Details":{"userName":"test","resourceName":"172.21.147.80"}}}
{
"name": "EnumerateUsers",
"result": {
"status": "Success",
"message": "User enumeration started"
}
}
To get all the discovered SSH users
GET
AUTHTOKEN=99AE42A9-02E0-4638-888A-D4D19225C3FE
None
https://<Host-Name-of-KMP-Server OR IP address>:6565/api/pki/restapi/getAllSSHUsers
{
"name": "GetAllSSHUsers",
"result": {
"status": "Success",
"message": "All SSH Users fetched successfully"
},
"totalRows": 2,
"details": [
{
"UserName": "test",
"ResourceName": "172.21.147.80"
},{
"UserName": test1,
"ResourceName": "172.21.147.80"
}]}
To fetch all the users associated with SSH keys
GET
AUTHTOKEN=99AE42A9-02E0-4638-888A-D4D19225C3FE
None
https://<Host-Name-of-KMP-Server OR IP address>:6565/api/pki/restapi/getAllAssociatedUsers
"result": { "status": "Success","message": "All associated users fetched successfully"
}, "totalRows": 1,"details": [{ "UserName": "test","ResourceName": "pmp-centos6"}]}
Keystore:Key Manager Plus provides a repository called keystore to securely store your digital keys. To fetch all the keys from keystore
GET
AUTHTOKEN=99AE42A9-02E0-4638-888A-D4D19225C3FE
None
https://<Host-Name-of-KMP-Server OR IP address>:6565/api/pki/restapi/getAllKeyStoreKeys
{
"name": "getAllKeyStoreKeys",
"result": {
"status": "Success",
"message": "All KeyStore Keys fetched successfully"
},
"totalRows": 1,
"details": [
{
"Description": "test",
"Key Name": "cert.cer",
"Created Time": "Sep 27, 2016 12:27",
"Datacenter": "Central US",
"Instance Name": "test",
"Key Type": "test",
"Created By": "admin"
}]}
To export a particular key from the keystore
POST
AUTHTOKEN=99AE42A9-02E0-4638-888A-D4D19225C3FE
The key name to be passed as input.
{"operation":{"Details":{"keyName":"cert.cer"}}}
https://<Host-Name-of-KMP-Server OR IP address>:6565/api/pki/restapi/exportKeyStoreKey?INPUT_DATA={"operation":{"Details":{"keyName":"cert.cer"}}}
Key file
To delete a key from the keystore
DELETE
AUTHTOKEN=99AE42A9-02E0-4638-888A-D4D19225C3FE
The key name to be passed as input.
{"operation":{"Details":{"keyName":"cert.cer"}}}
https://<Host-Name-of-KMP-Server OR IP address>:6565/api/pki/restapi/deleteKeyStoreKey?INPUT_DATA={"operation":{"Details":{"keyName":"cert.cer"}}}
{
"name": "DeleteKeyStoreKey",
"result": {
"status": "Success",
"message": "Key Store keys deleted successfully"
}
}
To add a new key to the keystore
POST
AUTHTOKEN=99AE42A9-02E0-4638-888A-D4D19225C3FE
The following data to be passed as input.
{"operation":{"Details":{"keyName":"brin.cer",
"description":"test",
"datacenter":"test",
"passphrase":"test",
"keyType":"test",
"instanceName":"test"}}} -F File=@E:/certs/cert.cer
curl -X POST -k -H "AUTHTOKEN=99AE42A9-02E0-4638-888A-D4D19225C3FE" -H 'Content-Type: multipart/form-data' -F INPUT_DATA={"operation":{"Details":{"keyName":"brin.cer","description":"test","datacenter":"test","passphrase":"test","keyType":"test","instanceName":"test"}}} -F File=@E:/certs/cert.cer https://<Host-Name-of-KMP-Server OR IP address>:6565/api/pki/restapi/addKeyStoreKey
{"Status":"Success","Message":"Key added to key store successfully"}
To update a particular keystore key
POST
AUTHTOKEN=99AE42A9-02E0-4638-888A-D4D19225C3FE
The following data to be passed as input.
{"operation":{"Details":{"keyName":"brin.cer",
"description":"test",
"datacenter":"test",
"passphrase":"test",
"keyType":"test",
"instanceName":"test"}}} -F File=@E:/certs/cert.cer
curl -X POST -k -H "AUTHTOKEN=99AE42A9-02E0-4638-888A-D4D19225C3FE" -H 'Content-Type: multipart/form-data' -F INPUT_DATA={"operation":{"Details":{"keyName":"brin.cer","description":"test","datacenter":"test","passphrase":"test","keyType":"test","instanceName":"test"}}} -F File=@E:/certs/cert3.cer https://<Host-Name-of-KMP-Server OR IP address>:6565/api/pki/restapi/updateKeyStoreKey
{"Status":"Success","Message":"Key Store key updated successfully"}
To obtain a certificate from KMP's certificate repository
GET
AUTHTOKEN=3E014D78-E603-413A-AC24-6392F0001283
The operation details and the name of the certificate fetched to be passed as input
{"operation":{"Details":{"common_name":"*.google.com","serial_number":"XXXXXXXXXXXXXX" }}}
Note:It is optional to provide the serial number to fetch certificate details.
https://<Host-Name-of-KMP-Server OR IP address>:6565/api/pki/restapi/getCertificate?INPUT_DATA={"operation":{"Details":{"common_name":"*.google.com","serial_number":"XXXXXXXXXXXXXX"}}}
Certificate object
To obtain all certificates from KMP's certificate repository
GET
AUTHTOKEN=3E014D78-E603-413A-AC24-6392F0001283
INPUT_DATA={"operation":{"Details":{"withExpiryDaysLessThan":"500","withKeyLength":"1024","withSignatureAlgorithm":"SHA1"}}}
https://<Host-Name-of-KMP-Server OR IP address>:6565/api/pki/restapi/getAllSSLCertificates?INPUT_DATA={"operation":{"Details":{"withExpiryDaysLessThan":"500"}}}
{ "name": "GetAllSSLCertificates","result": { "status": "Success", "message": "All SSL Certificates fetched successfully"},
"totalRows": 2,"details": [{ "CertID": 1, "DNS Name/FQDN": "paytm.com", "Port": 443,
"Common Name": "*.paytm.com", "Issuer": "GeoTrust Inc.", "FromDate": "Oct 13, 2015", "ExpiryDate": "Aug 27, 2017",
"KeyStrength": "2048","SignatureAlgorithm": "SHA256withRSA"},{ "CertID": 302,"DNS Name/FQDN": "204.141.32.155","Port": 443,
"Common Name": "*.zoho.com", "Issuer": "Sectigo Limited", "FromDate": "Jul 2, 2019", "ExpiryDate": "Apr 30, 2021",
"KeyStrength": "2048","SignatureAlgorithm": "SHA256withRSA"}]}
Note: Including the Input Data in the API request is optional. In case input data is provided, you can add any one or all of the available filters: withExpiryDaysLessThan,withKeyLength,withSignatureAlgorithm.
To get the expiry dates of all the certificates
GET
AUTHTOKEN=1B2BF6FA-8511-47A8-867D-CE7FFE4BFBD0
None
https://<Host-Name-of-KMP-Server OR IP address>:6565/api/pki/restapi/getAllSSLCertsExpiryDate
{"name": "GetAllSSLCertificatesExpiryDate","result": {"status": "Success",
"message": "Certificates expiry date fetched successfully"},"totalRows": 2,
"details": [{"Common Name": "*.paytm.com","ExpiryDate": "Aug 27, 2017"},
{"Common Name": "*.zoho.com","ExpiryDate": "Apr 30, 2021"}]}
To get the details of a particular certificate
GET
AUTHTOKEN=3E014D78-E603-413A-AC24-6392F0001283
The operation details and the name of the certificate to passed as input
{"operation": {"Details":{"common_name":"*.google.com"}}}
https://<Host-Name-of-KMP-Server OR IP address>:6565/api/pki/restapi/getCertificateDetails?INPUT_DATA={"operation": {"Details":{"common_name":"*.google.com"}}}
{ "name": "GetCertificateDetails", "result": { "status": "Success", "message": "Details of certificate *.zoho.com fetched successfully"
}, "details": [{ "certtype": "Domain", "certificateTemplate": "N/A", "endpoint": { "hostName": "*.zoho.com", "port": "443",
"expiry_date": "2021-04-30 05:29:59.0", "from_date": "2019-07-02 05:30:00.0", "certSignAlg": "SHA256withRSA",
"Sans": "*.zoho.com,zoho.com", "serial": "8c0b04e91a1796d86d1de5e89c8b3c5c",
"fingerPrint": "aeecb6227dc8adef18a8fb99465739996e2782a8", "keyalg": "RSA", "PublicKeyLength": 2048,
"PrivateKey": false, "isAWS": false}, "isCertInstalledMulipleServers": false, "issuer": {
"cname": "Sectigo RSA Domain Validation Secure Server CA", "org": "Sectigo Limited", "orgunit": "-"},
"issuedto": { "cname": "*.zoho.com", "org": "-", "orgunit": "Domain Control Validated"}, "intermediate": {},
"ipaddress": "204.141.32.155", "CertificateId": "302"}]}
To get the key store file of a particular certificate
GET
AUTHTOKEN=3E014D78-E603-413A-AC24-6392F0001283
The name of the operation and the common name of the keystore file to be passed as input
{"operation":{"Details":{"common_name":"apitest","serial_number":"XXXXXXXXXXXXXX" }}}
Note:It is optional to provide the serial number to fetch the keystore file.
https://<Host-Name-of-KMP-Server OR IP address>:6565/api/pki/restapi/getCertificateKeyStore?INPUT_DATA={"operation":{"Details":{"common_name":"apitest","serial_number":"XXXXXXXXXXXXXX"}}}
KeyStore File Object
To delete a certificate from KMP's repository
DELETE
AUTHTOKEN=3E014D78-E603-413A-AC24-6392F0001283
The operation name and the common name of the certificate to be passed as input
{"operation": {"Details":{"common_name":"apitest","serial_number":"XXXXXXXXXXXXXX"}}}
Note: It is optional to provide the serial number to fetch the keystore file.
https://<Host-Name-of-KMP-Server OR IP address>:6565/api/pki/restapi/deleteCertificate?INPUT_DATA={"operation": {"Details":{"common_name":"apitest"}}}
{"name":"DeleteCertificate","result":{"status":"Success","message":"Certificate apitest deleted successfully."}}
To discover a particular resource for SSL certificates
POST
AUTHTOKEN=3E014D78-E603-413A-AC24-6392F0001283
The name/IP address of the host and port number to be passed as input
{"operation":{"Details":{"HOST":"de-ubuntu10-1","TIMEOUT":"300","PORT":"6565"}}}
https://<Host-Name-of-KMP-Server OR IP address>:6565/api/pki/restapi/sslCertSingleDiscovery?INPUT_DATA={"operation":{"Details":{"HOST":"de-ubuntu10-1","TIMEOUT":"300","PORT":"6565"}}}
{"name": "Get SSL Discovery", "totalRows": 1,"details": {"zoho.com": ["SUCCESS", "SSL Certificate already available, *.zoho.com certificate found at port 443"]}}
To discover a set of resources for SSL certificates
POST
AUTHTOKEN=7EDC4ED5-E684-4413-9848-F0016C114874
The start and end IP addresses, port number and time-out to be passed as input
{"operation":{"Details":{"StartIpAddress":"192.168.216.0",
"EndIpAddress":"192.168.216.3",
"TIMEOUT":"3",
"PORT":"443"}}}
https://<Host-Name-of-KMP-Server OR IP address>:6565/api/pki/restapi/sslCertRangeDiscovery?INPUT_DATA={"operation":{"Details":{"StartIpAddress":"192.168.216.0","EndIpAddress":"192.168.216.3","TIMEOUT":"3","PORT":"443"}}}
{ "name": "Get SSL Discovery","totalRows": 4,"details": {
"192.168.216.1": ["FAILURE","Connection failed,no certificate found at port 443"],
"192.168.216.0": [ "FAILURE","Connection timed out,no certificate found at port 443"],
"192.168.216.2": ["FAILURE", "Connection timed out,no certificate found at port 443"],
"192.168.216.3": ["FAILURE","Connection timed out,no certificate found at port 443"]}}
To create a certificate signing request
POST
AUTHTOKEN=C6506112-6113-42C9-AD3F-4A3AEF9476C9
The following data need to be passed as input.
{"operation":{"Details":{"CNAME":"mytestcert",
"ALT_NAMES":"test",
"ORGUNIT":"hhh",
"ORG":"h",
"LOCATION":"hh",
"STATE":"h",
"COUNTRY":"hh",
"PASSWORD":"bbbbbbbb",
"VALIDITY_TYPE":"days",
"VALIDITY":"888",
"ALG":"RSA",
"LEN":"4096",
"SIGALG":"SHA256",
"StoreType":"PKCS12"}}}
Note: Validity type can be days, hours or minutes.
https://<Host-Name-of-KMP-Server OR IP address>:6565/api/pki/restapi/createCSR?INPUT_DATA={"operation":{"Details":{"CNAME":"mytestcert","ALT_NAMES":"test","ORGUNIT":
"hhh","ORG":"h","LOCATION":"hh","STATE":"h","COUNTRY":"hh","PASSWORD":"bbbbbbbb",
"VALIDITY_TYPE":"88","VALIDITY":"888","ALG":"RSA","LEN":"4096","SIGALG":"SHA256",
"StoreType":"PKCS12"}}}
{"name":"CreateCertificate","result":{"status":"Success","message":"CSR saved successfully"}}
To get CSR list
GET
AUTHTOKEN=7930AD60-B2F6-4CAA-90E5-779EDF229615
None
https://<Host-Name-of-KMP-Server OR IP address>:6565/api/pki/restapi/getCSRList
{"name": "GetCSRList",
"result": {
"status": "Success",
"message": "Fetched all CSRs successfully"
},
"totalRows": 1,
"GeneratedList": [
{"CREATED_BY": "admin",
"KEYALGORITHM": "RSA",
"KEYSTORE_TYPE": "JKS",
"isPassword": true,
"CSR_ID": 1,
"CREATED_DATE": "May 15, 2020 19:51",
"KEY_STRENGTH": 2048,
"DOMAIN_NAME": "testcsr",
"VALIDITY": "30",
"SIGNATURE_ALGORITHM": "SHA256withRSA"
}]}
To sign CSR
POST
AUTHTOKEN=7930AD60-B2F6-4CAA-90E5-779EDF229615
INPUT_DATA={"operation":{"Details":{"serverName":"kmp-w12r2-1","caName":"kmp-w12r2-1-ca","templateName":"DomainController","CSR_ID":"1"}}}
https://<Host-Name-of-KMP-Server OR IP address>:6565/api/pki/restapi/signCSR
{ "name": "SignCSR", "result": { "status": "Success", "message": "Successfully testdomain.com certificate signed" }}
To create an SSL certificate
POST
AUTHTOKEN=C6506112-6113-42C9-AD3F-4A3AEF9476C9
The following data to be passed as input.
{"operation":{"Details":{"CNAME":"mytestcert",
"ALT_NAMES":"test",
"ORGUNIT":"hhh",
"ORG":"h",
"LOCATION":"hh",
"STATE":"h",
"COUNTRY":"hh",
"PASSWORD":"bbbbbbbb",
"VALIDITY_TYPE":"days",
"VALIDITY":"888",
"ALG":"RSA",
"LEN":"4096",
"SIGALG":"SHA256",
"StoreType":"PKCS12"}}}
Note: Validity type can be days, hours or minutes.
https://<Host-Name-of-KMP-Server OR IP address>:6565/api/pki/restapi/createCertificate?INPUT_DATA={"operation":{"Details":{"CNAME":"mytestcert","ALT_NAMES":"test","ORGUNIT":
"hhh","ORG":"h","LOCATION":"hh","STATE":"h",
"COUNTRY":"hh",
"PASSWORD":"bbbbbbbb","VALIDITY_TYPE":"88",
"VALIDITY":"888","ALG":"RSA","LEN":"4096","SIGALG":"SHA256","StoreType":"PKCS12"}}}
{"name":"CreateCertificate","result":{"status":"Success","message":"Certificate saved successfully"}}
To import an SSH key
POST
AUTHTOKEN=A3164150-4C15-4AA4-918E-F258F38149F8
The following data to be passed as input.
{"operation":{"Details":{"keyName":"testkey","passphrase":"passtrix"}}}
curl -X POST -k -H "AUTHTOKEN=A3164150-4C15-4AA4-918E-F258F38149F8" -H 'Content-Type: multipart/form-data' -F INPUT_DATA={"operation":{"Details":{"keyName":"testkey","passphrase":"passtrix" }}} -F File=@D:/certs/keys/test1-passtrix/test1_Jul-21-2017-15_56.key
https://<Host-Name-of-KMP-Server OR IP address>:6565/api/pki/restapi/addSSHKey
{"name":"addSSHKey","result":{"status":"SUCCESS","message":"Key imported
successfully"}}
To associate an SSH key
POST
AUTHTOKEN=A3164150-4C15-4AA4-918E-F258F38149F8
The following data to be passed as input.
{"operation":{"Details":{"keyName":"testkey","resourceName":"test.csez.zohocorpi
n.com","userName":"test"}}}
https://<Host-Name-of-KMP-Server OR IP address>:6565/api/pki/restapi/associateKey?INPUT_DATA={"operation":{"Details":{"keyName":"te
stkey","resourceName":"test.csez.zohocorpin.com","userName":"test"}}}
{
"name": "associateKey",
"result": {
"status": "Success",
"message": "Key associated successfully "
}
}
To dissociate an SSH key
POST
AUTHTOKEN=A3164150-4C15-4AA4-918E-F258F38149F8
The following data to be passed as input.
{"operation":{"Details":{"keyName":"testkey","resourceName":"test.csez.zohocorpi
n.com","userName":"test"}}}
https://<Host-Name-of-KMP-Server OR IP address>:6565/api/pki/restapi/dissociateKey?INPUT_DATA={"operation":{"Details":{"keyName":"te
stkey","resourceName":"test.csez.zohocorpin.com","userName":"test"}}}
{
"name": "dissociateKey",
"result": {
"status": "SUCCESS",
"message": "Key dissociated successfully."
}
}
To add an SSL certificate to Key Manager Plus certificate repository.
https://<Host-Name-of-KMP-Server OR IP
address>:6565/api/pki/restapi/addCertificate
POST
AUTHTOKEN=A3164150-4C15-4AA4-918E-F258F38149F8
The following data to be passed as input.
input data: {"operation":{"Details":{"fileType":"KEYSTORE","PASSWORD":"PASSWORD"}}}
Note: The fileType specified in the input data can be either CERTFILE or KEYSTORE. For CERTFILE fileType, the PASSWORD field need not be specified.
curl -X POST -k -H "AUTHTOKEN=A3164150-4C15-4AA4-918E-F258F38149F8" -H 'Content-Type: multipart/form-data' -F INPUT_DATA={"operation":{"Details":{"fileType":"KEYSTORE","PASSWORD":"PASSWORD"}}} -F File=@D:/certs/newcert.keystore https://<Host-Name-of-KMP-Server OR IP address>:6565/api/pki/restapi/addCertificate
{ "name": "AddCertificate",
"result":
{{"Status":"Success",
"Message": "Certificate newcert.com added successfully"} } }
To delete a particular SSH key.
https://< Host-Name-of-KMP-Server OR IP address>:6565/api/pki/restapi/deleteSSHKey
DELETE
AUTHTOKEN=A3164150-4C15-4AA4-918E-F258F38149F8
The following data to be passed as input.
{"operation":{"Details":{"key_name":"newkey1","withoutDisassociation":"true"}}}
https://< Host-Name-of-KMP-Server OR IP address
>:6565/api/pki/restapi/deleteSSHKey?INPUT_DATA={"operation":{"Details":{"key_name":"newkey1","withoutDisassociation":"true"}}}
{ "name": "DeleteSSHKey",
"result": { "status": "Success",
"message": "SSH keys newkey1 deleted successfully"}}
To view the passphrase of a certificate private key
https://<Host-Name-of-KMP-Server OR IP address>:6565/api/pki/restapi/getCertificatePassphrase
GET
AUTHTOKEN=894241B8-C361-4E30-B467-0AF9AAA00011
The following data is to be passed as input:
{"operation":{"Details":{"common_name":"mycert","serial_number":"XXXXXXXXXXXXXX"}}}
https://<Host-Name-of-KMP-Server OR IP address>:6565/api/pki/restapi/getCertificatePassphrase?INPUT_DATA={"operation":{"Details":{"common_name":"mycert","serial_number":"XXXXXXXXXXXXXX"}}}
"name": "GetCertificatePassphrase", "result": { "status": "Success", "message": "Private key passphrase of certificate mycert is 123456789" } }