public X509Certificate generateSelfSignedCertificate ( String subjectDN , KeyPair pair , int days , String algorithm ) throws CertificateException { return generateCertificate ( subjectDN , null , pair , null , days , algorithm ) ; }
Create a self - signed X . 509 Certificate