public interface KeygenService
Modifier and Type | Method and Description |
---|---|
Certificate |
createFromCRMF(String crmfReq)
CRMF requests are produced by the javascript generateCRMFRequest()
method in Netscape and are documented by RFC 2511.
|
Certificate |
createFromPEM(String csr)
|
Certificate |
createFromSpkac(String spkac)
|
static final String issuer
Certificate createFromPEM(String csr)
csr
- a PEM Certificate Signing RequestCertificate createFromSpkac(String spkac)
<keygen>
element an SPKAC request
(see the specification in html5)spkac
- a SPKAC Certificate Signing RequestCertificate createFromCRMF(String crmfReq)
CRMF requests are produced by the javascript generateCRMFRequest() method in Netscape and are documented by RFC 2511.
Using this method may be needed when the server has to produce XHTML (should be rare!) as the keygen
tag in Netscape browsers is only supported by html. This should be fixed soon, now that html5 supports the keygen
element. For progress on this issue check bug report 101019.
A CRMF request can contain more details about the certificate, but those would better be passed using a form, as in the keygen examples, the server then setting those fields directly on the returned request. Currently we extract only the public key to generate the returned Certificate.
crmfReq
- the requestCopyright © 2014 The Apache Software Foundation. All Rights Reserved.