private static X509Certificate generateCertificate(String dn,int days,String applicationUri,KeyPair keys,org.opcfoundation.ua.transport.security.KeyPair issuerKeys,String... hostNames) throws GeneralSecurityException, IOException {
  PrivateKey privkey=keys.getPrivate();
  PublicKey publicKey=keys.getPublic();
  return generateCertificate(dn,days,applicationUri,publicKey,privkey,issuerKeys,hostNames);
}

private static X509Certificate generateCertificate ( String dn , int days , String applicationUri , KeyPair keys , org . opcfoundation . ua . transport . security . KeyPair issuerKeys , String ... hostNames ) throws GeneralSecurityException , IOException { PrivateKey privkey = keys . getPrivate ( ) ; PublicKey publicKey = keys . getPublic ( ) ; return generateCertificate ( dn , days , applicationUri , publicKey , privkey , issuerKeys , hostNames ) ; }
create a x . 509 v3 certificate .
