Package org.ejbca.ui.web

Examples of org.ejbca.ui.web.RequestHelper.nsCertRequest()


    }

    RequestHelper helper = new RequestHelper(admin, debug);
    try {
        if (type == 1) {
              byte[] certs = helper.nsCertRequest(signSession, reqBytes, username, password);
              RequestHelper.sendNewCertToNSClient(certs, response);
        }
        if (type == 2) {
              byte[] b64cert=helper.pkcs10CertRequest(signSession, reqBytes, username, password, RequestHelper.ENCODED_PKCS7);
              debug.ieCertFix(b64cert);
View Full Code Here


        // first check if it is a Firefox request,
        if (getParameter("keygen") != null) {
          byte[] reqBytes=getParameter("keygen").getBytes();
          if ((reqBytes != null) && (reqBytes.length>0)) {
            log.debug("Received NS request: "+new String(reqBytes));
            byte[] certs = helper.nsCertRequest(signSession, reqBytes, username, password);
            RequestHelper.sendNewCertToNSClient(certs, response);
          } else {
            throw new SignRequestException("No request bytes received.");
          }
        } else if ( getParameter("iidPkcs10") != null && !getParameter("iidPkcs10").equals("")) {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.