DrConfigSetCertificate

This method sets a new certificate. It reconfigures the Site Recovery Manager if already configured and restarts the proxy service. If you encounter an error while using this method, ignore the error and then reconnect to the management service.

Synopsis

void setCertificate(String certificate, @optional String[] caChain)
setCertificate
has the following parameters:
Parameter
Description
certificate
New server certificate that must be used. It should be in PEM format.
caChain
List of intermediate CA certificates used to sign the server certificate. It should be in PEM format.

Faults

  • CertificateBadKeyPair
  • CertificateCaNotAllowed
  • CertificateDnsMismatch
  • CertificateHasExpired
  • CertificateInvalidKeyLength
  • CertificateMd5NotAllowed
  • CertificateNotYetValid
  • InvalidArgument
  • PrivateKeyNotFound
  • RuntimeFault
  • SystemError
For more information about the faults, see Faults in Site Recovery Manager Appliance Management API.