public String installCertificate( String pemCertificates, String pemPrivateKey, String passPhrase ) throws CertificateStoreConfigException
    {
        final String alias = generateUniqueAlias();

        // Perform the installation using the generated alias.
        installCertificate( alias, pemCertificates, pemPrivateKey, passPhrase );

        return alias;
    }
Imports a certificate and the private key that was used to generate the certificate.

This method will import the certificate and key in the store using a unique alias. This alias is returned.

This method will fail when the provided certificate does not match the domain of this XMPP service.

@param pemCertificates a PEM representation of the certificate or certificate chain (cannot be null or empty).
@param pemPrivateKey   a PEM representation of the private key (cannot be null or empty).
@param passPhrase      optional pass phrase (must be present if the private key is encrypted).
@return The alias that was used (never null).
@throws CertificateStoreConfigException if there was a problem installing the certificate
xmppserver/src/main/java/org/jivesoftware/openfire/keystore/IdentityStore.java