public class CertUtil
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static org.slf4j.Logger |
logger |
Constructor and Description |
---|
CertUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
addUserCertificate(org.mozilla.jss.netscape.security.x509.X509CertImpl cert) |
static java.lang.String |
buildSANSSLserverURLExtension(IConfigStore config) |
static void |
createCertRecord(IRequest request,
CertInfoProfile profile,
org.mozilla.jss.crypto.X509Certificate cert) |
static void |
createCertRecord(IRequest request,
CertInfoProfile profile,
org.mozilla.jss.netscape.security.x509.X509CertImpl cert) |
static org.mozilla.jss.netscape.security.x509.X509CertImpl |
createLocalCert(IConfigStore config,
org.mozilla.jss.netscape.security.x509.X509Key x509key,
java.lang.String prefix,
java.lang.String certTag,
java.lang.String type) |
static IRequest |
createLocalRequest(IConfigStore cs,
IRequestQueue queue,
java.lang.String tag,
CertInfoProfile profile,
org.mozilla.jss.netscape.security.x509.X509CertInfo info,
org.mozilla.jss.netscape.security.x509.X509Key x509key) |
static org.mozilla.jss.netscape.security.x509.X509CertImpl |
createRemoteCert(java.lang.String hostname,
int port,
javax.ws.rs.core.MultivaluedMap<java.lang.String,java.lang.String> content) |
static void |
deleteCert(java.lang.String tokenname,
org.mozilla.jss.crypto.X509Certificate cert) |
static org.mozilla.jss.crypto.X509Certificate |
findCertificate(java.lang.String fullnickname) |
static java.lang.String |
fingerPrintFormat(java.lang.String content) |
static java.lang.String |
getAdminProfileAlgorithm(IConfigStore config)
reads from the admin cert profile caAdminCert.profile and determines the algorithm as follows:
1.
|
static org.mozilla.jss.netscape.security.pkcs.PKCS10 |
getPKCS10(IConfigStore config,
java.lang.String prefix,
Cert certObj) |
static void |
injectSANextensionIntoRequest(IConfigStore config,
IRequest req) |
static boolean |
privateKeyExistsOnToken(java.lang.String certTag,
java.lang.String tokenname,
java.lang.String nickname) |
static void |
updateLocalRequest(IConfigStore config,
java.lang.String certTag,
byte[] certReq,
java.lang.String reqType,
java.lang.String subjectName)
update local cert request with the actual request
called from CertRequestPanel.java
|
public static org.mozilla.jss.netscape.security.x509.X509CertImpl createRemoteCert(java.lang.String hostname, int port, javax.ws.rs.core.MultivaluedMap<java.lang.String,java.lang.String> content) throws java.lang.Exception
java.lang.Exception
public static org.mozilla.jss.netscape.security.pkcs.PKCS10 getPKCS10(IConfigStore config, java.lang.String prefix, Cert certObj) throws java.lang.Exception
java.lang.Exception
public static void injectSANextensionIntoRequest(IConfigStore config, IRequest req) throws java.lang.Exception
java.lang.Exception
public static java.lang.String buildSANSSLserverURLExtension(IConfigStore config) throws java.lang.Exception
java.lang.Exception
public static IRequest createLocalRequest(IConfigStore cs, IRequestQueue queue, java.lang.String tag, CertInfoProfile profile, org.mozilla.jss.netscape.security.x509.X509CertInfo info, org.mozilla.jss.netscape.security.x509.X509Key x509key) throws java.lang.Exception
java.lang.Exception
public static void updateLocalRequest(IConfigStore config, java.lang.String certTag, byte[] certReq, java.lang.String reqType, java.lang.String subjectName) throws java.lang.Exception
EBaseException
EPropertyNotFound
java.lang.Exception
public static java.lang.String getAdminProfileAlgorithm(IConfigStore config) throws EBaseException, java.io.FileNotFoundException, java.io.IOException
EBaseException
java.io.IOException
java.io.FileNotFoundException
public static org.mozilla.jss.netscape.security.x509.X509CertImpl createLocalCert(IConfigStore config, org.mozilla.jss.netscape.security.x509.X509Key x509key, java.lang.String prefix, java.lang.String certTag, java.lang.String type) throws java.lang.Exception
java.lang.Exception
public static void createCertRecord(IRequest request, CertInfoProfile profile, org.mozilla.jss.crypto.X509Certificate cert) throws java.lang.Exception
java.lang.Exception
public static void createCertRecord(IRequest request, CertInfoProfile profile, org.mozilla.jss.netscape.security.x509.X509CertImpl cert) throws java.lang.Exception
java.lang.Exception
public static void addUserCertificate(org.mozilla.jss.netscape.security.x509.X509CertImpl cert)
public static java.lang.String fingerPrintFormat(java.lang.String content)
public static boolean privateKeyExistsOnToken(java.lang.String certTag, java.lang.String tokenname, java.lang.String nickname)
public static org.mozilla.jss.crypto.X509Certificate findCertificate(java.lang.String fullnickname) throws java.lang.Exception
java.lang.Exception
public static void deleteCert(java.lang.String tokenname, org.mozilla.jss.crypto.X509Certificate cert) throws java.lang.Exception
java.lang.Exception