DrConfigSetKeyCertificate
This method sets a new key and certificate, reconfigures Site Recovery Manager if
already configured and then restarts the proxy service. If you encounter an error while
using this method, ignore the error and then reconnect to the management
service.
This method does not allow you to password protect the private key. Consider
using the following methods to set the key and certificate:
- generateCSR()method with thesetCertificate()method.
- installCertificate()method
Synopsis
void setKeyCertificate(String key, String certificate, @optional String[] caChain)
setKeyCertificate
has the following parameters:
Parameter | Description |
---|---|
key | New server private key to use in PEM
format. |
certificate | New server certificate to use in PEM
format. |
caChain | List of intermediate CA certificates, used to
sign the server certificate in PEM format. During connect in
'Certificate' message, the server sends this chain and server
certificate. The chain may or may not include the root
CA. |
Faults
- CertificateBadKeyPair
- CertificateCaNotAllowed
- CertificateDnsMismatch
- CertificateHasExpired
- CertificateInvalidKeyLength
- CertificateMd5NotAllowed
- CertificateNotYetValid
- InvalidArgument
- RuntimeFault
- SystemError
For more information about the faults, see
Faults in Site Recovery Manager Appliance Management API.