Session_Cert_Import
This API imports certificate and its private Key, if required.
URL
./Session_Cert_Import
Input Parameters
Parameter | Description |
---|---|
certname | Name of the certificate to be imported. |
certisdeletable | Sets whether the certificate can be deleted via the API, default is false. |
certisexportable | Sets whether the certificate can be exported via the API, default is false. |
certificate | Certificate to be imported, in PKCS1, PKCS#8, or PKCS#12 format. |
certpassword | Optional, if password provided certificate must be Hex encoded. |
Sample SOAP Parameters
<prot:Session_Cert_Import>
<certname>pkcs1samplevtN</certname>
<certisdeletable>true</certisdeletable>
<certisexportable>true</certisexportable>
<certificate>-----BEGIN CERTIFICATE-----
MIIDvzCCAqegAwIBAgIDAJ5EMA0GCSqGSIb3DQEBCwUAMIGbMQswCQYDVQQGEwJV
[… sample truncated for brevity … ]
OcqQnevrP4rbUC/5W6+gO0m5ZjMDKryAyW4RiNCboGKtVTVcz68J0+75RTvycjWKibEI
-----END CERTIFICATE-----
-----BEGIN RSA PRIVATE KEY-----
MIIEowIBAAKCAQEAhLItSYS7WHe22H+VOyj5GlAkwcylRsCAl/kbLBUW5adSB5K3
[… sample truncated for brevity … ]
mzXC86k6UN7ya29wDFuWwLK+gnwD2THORrdk5U+1B0PywK4JdDOR
-----END RSA PRIVATE KEY-----
</certificate>
<!--Optional:-->
<certpassword></certpassword>
</prot:Session_Cert_Import>
Output
boolean – indicates import success.
<ns1:Session_Cert_ImportResponse xmlns:ns1="http://dsws.org/protectappws/">true</ns1:Session_Cert_ImportResponse>
Note
To import a PKCS12 certificate using web , you must provide the certpassword field in import request. In this case, certificate data