* the new key and certificate
*
* @return The Certificate chain
*/
public CertificateChain setKeyAndCertificateChain(KeyAndCertificateChain keyAndCert) {
RotateKeyAndCertParam rotateKeyAndCertParam = new RotateKeyAndCertParam();
rotateKeyAndCertParam.setSystemSelfSigned(false);
rotateKeyAndCertParam.setKeyCertChain(keyAndCert);
return client.put(CertificateChain.class, rotateKeyAndCertParam, KEYSTORE_URL);
}