public static boolean isSigningRequestPending(X509Certificate certificate) {
        // Verify that this is a self-signed certificate
        if (!isSelfSignedCertificate(certificate)) {
            return false;
        }
        // Verify that the issuer information has been entered
        Matcher matcher = valuesPattern.matcher(certificate.getIssuerDN().toString());
        return matcher.find() && matcher.find();
    }
Returns true if the specified certificate is ready to be signed by a Certificate Authority. Self-signed
certificates need to get their issuer information entered to be able to generate a Certificate
Signing Request (CSR).

@param certificate the certificate to check
@return true if the specified certificate is ready to be signed by a Certificate Authority.
xmppserver/src/main/java/org/jivesoftware/util/CertificateManager.java