docs: public X509Certificate generateSelfSignedCertificate(String subjectDN, KeyPair pair, int days, String algorithm) throws CertificateException
      {
          return generateCertificate(subjectDN, null, pair, null, days, algorithm);
      }