ch.othello.openscep.internal.commands
Class certRequest
java.lang.Object
|
+--ch.othello.openscep.internal.commands.certRequest
- All Implemented Interfaces:
- ScepCommand
- public class certRequest
- extends Object
- implements ScepCommand
$Id: certRequest.java,v 1.36 2002/02/27 06:53:19 urut Exp $
$Log: certRequest.java,v $
Revision 1.36 2002/02/27 06:53:19 urut
modified setting of subject in Signed structure
Revision 1.35 2002/02/27 04:21:27 urut
first working spkac version
Revision 1.34 2002/02/25 04:23:39 urut
first working version for MS browsers
there is still a problem in here as subjectSCEP needs to be set to the subject
of the actual PKCS#10 request. seems to be a bug in OpenScep.
Revision 1.33 2002/02/24 05:18:56 urut
write pkcs#10 to file
Revision 1.32 2002/02/23 23:00:27 alani
improved error handling
Revision 1.31 2002/02/23 00:01:35 alani
new asserts
Revision 1.30 2002/02/22 13:40:00 urut
v2 with spkac (sending)
Revision 1.29 2002/02/22 10:35:31 urut
first v2 working release (pkcs#10 only)
major mods,in particular:
- md5 hash calculation for proxyIdentifier
- requestPayload, Attributes is tagged object
Revision 1.26 2002/02/22 03:18:07 urut
adjusted scep library to openscep 0.4.0:
-proxyIdentification Envelope Removed
-calculation of hash for requestPayload changed
-messageTyp in v2 is different
Revision 1.25 2002/02/16 01:14:45 urut
replaced all read-only accessed files with URL's file:///......
removed option caCert , only caCertURL is available now
Revision 1.24 2002/02/16 00:40:20 urut
awfull lot of fixes,among them:
- computation of transactionID for v2
- spkac processing in cmd line client
- new filetyp unknown for debug files
- subject in cmd client
- lots of fixes for v2 protocoll handling
Revision 1.23 2002/02/15 13:21:12 urut
first complete implementation of scep v2
Revision 1.22 2002/02/15 10:12:20 urut
changed endEntityxxxx -> scepxxxx (because of v2 scep)
Revision 1.21 2002/02/12 19:33:23 urut
replaced all println statements
Revision 1.20 2002/02/12 14:01:17 urut
cmd client improved
Revision 1.19 2002/02/07 17:08:50 urut
ability to send scep request over http added
Revision 1.18 2002/01/31 14:07:32 urut
adjustments for new SignedData (that takes certificates as Sequences)
Revision 1.17 2002/01/24 22:18:11 urut
lots of modifications; read response (CertRep), RSA decrypt, DES-cbc decrypt,
bouncy fix for reading SET/SEQUENCE with length=0
Revision 1.16 2002/01/23 13:31:26 urut
transactionID modified. ID is MD5 fingerprint of SubjectPublicKeyInfo of PKCS#10 request, converted to (uppercase) HEX
Revision 1.15 2002/01/17 19:48:17 urut
various bug fixes:
-padding for DES encryption
-OID for cbc-des
-padding for contentkey-encryption
-message digest generation for SignerInfo
-ContentInfo for SignedData
-use original DERObject instead of CertificationRequest for PKCS#10
-issuer=subject in self-signed certificate
-lots of small fixes
Revision 1.14 2002/01/15 21:20:11 urut
Modified EvelopedData: is now embedded in a ContentInfo structure (required by PKCS7)
Modified transactionID (set to fix id for testing because it needs to be printable)
added missing attributes to signerInfo
added messageTyp=19 for PKCSReq
ScepClient uses now DERObject as attribute type to store envelope.
Revision 1.13 2002/01/15 13:58:43 urut
Fixed AuthenticatedAttributes (each value of an attribute has to be in a SET)
Fixed subjectPublicKeyInfo - includes now public key of PKCS#10 request
Fixed issuerAndSerialNumber - was missing due to bug in SignerInfo
introduced unstructuredName as additional attribute
Revision 1.12 2002/01/14 18:31:44 urut
Envelope is now a OctetString
Revision 1.11 2002/01/10 20:22:01 urut
bug fixing
Revision 1.10 2002/01/10 16:17:40 urut
fixed some bugs
Revision 1.9 2002/01/10 15:51:13 alani
fixed PKCS10Generate, removed generation of PKCS10 in certReq
Revision 1.8 2002/01/10 15:33:43 urut
merge
Revision 1.7 2002/01/10 15:31:25 urut
pkcs10 generate
Revision 1.5 2002/01/10 14:49:51 alani
fixed errors from merge
- Since:
- $Date: 2002/02/27 06:53:19 $
- Version:
- $Revision: 1.36 $
- Author:
- alani
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
client
ScepClient client
certRequest
public certRequest()
generateTransactionId
private void generateTransactionId()
throws IOException
IOException
createSigned
private org.bouncycastle.asn1.pkcs.SignedData createSigned()
throws IOException,
ScepError
IOException
ScepError
createEnvelope
private org.bouncycastle.asn1.DERObject createEnvelope()
Assert
public boolean Assert(ScepClient theClient)
throws IOException
- Specified by:
Assert
in interface ScepCommand
IOException
createPKIMessage
public org.bouncycastle.asn1.pkcs.ContentInfo createPKIMessage(org.bouncycastle.asn1.pkcs.SignedData data)
generateProxyIdentification
public org.bouncycastle.asn1.DEROctetString generateProxyIdentification()
generateRequestPayload
public org.bouncycastle.asn1.DERObject generateRequestPayload()
Execute
public boolean Execute(ScepClient theClient)
throws IOException,
ScepError,
ScepPending
- Specified by:
Execute
in interface ScepCommand
IOException
ScepError
ScepPending
ScepClient is copyright by Ueli Rutishauser + Alain Schaefer