code: public void generateCA(String prettyName)
      {
          this.prettyName = prettyName;
  
          Subject = "CN=JQM-CA,OU=ServerProducts,O=Oxymores,C=FR";
          size = 4096;
  
          EKU = new KeyPurposeId[4];
          EKU[0] = KeyPurposeId.id_kp_codeSigning;
          EKU[1] = KeyPurposeId.id_kp_serverAuth;
          EKU[2] = KeyPurposeId.id_kp_clientAuth;
          EKU[3] = KeyPurposeId.id_kp_emailProtection;
  
          keyUsage = KeyUsage.cRLSign | KeyUsage.keyCertSign;
  
          generateAll();
      }
docs: Public API