rfc3126.txt
来自「RFC 的详细文档!」· 文本 代码 · 共 1,554 行 · 第 1/5 页
TXT
1,554 行
* The identification of signer's certificate used to create the
signature is always present as a signed attribute.
* The degenerate case where there are no signers is not valid in
this document.
3.5 EncapsulatedContentInfo Type
The syntax of the EncapsulatedContentInfo a type of the ES is as
defined in [CMS].
For the purpose of long term validation as defined by this document,
it is advisable that either the eContent is present, or the data
which is signed is archived in such as way as to preserve the any
data encoding. It is important that the OCTET STRING used to generate
the signature remains the same every time either the verifier or an
arbitrator validates the signature.
The degenerate case where there are no signers is not valid in this
document.
3.6 SignerInfo Type
The syntax of the SignerInfo a type of the ES is as defined in [CMS].
Per-signer information is represented in the type SignerInfo. In the
case of multiple independent signatures, there is an instance of this
field for each signer.
The fields of type SignerInfo have the meanings defined in [CMS]
except that signedAttributes must, as a minimum, contain the
following attributes:
* ContentType as defined in clause 3.7.1.
* MessageDigest as defined in clause 3.7.2.
* SigningTime as defined in clause 3.7.3.
* SigningCertificate as defined in clause 3.8.1.
* SignaturePolicyId as defined in clause 3.9.1.
3.6.1 Message Digest Calculation Process
The message digest calculation process is as defined in [CMS].
Pinkas, et al. Informational [Page 23]
RFC 3126 Electronic Signature Formats September 2001
3.6.2 Message Signature Generation Process
The input to the digital signature generation process is as defined
in [CMS].
3.6.3 Message Signature Verification Process
The procedures for CMS signed data validation are as defined in [CMS]
and enhanced in this document.
The input to the signature verification process includes the signer's
public key verified as correct using either the ESS Signing
Certificate attribute or the Other Signing Certificate attribute.
3.7 CMS Imported Mandatory Present Attributes
The following attributes MUST be present with the signed-data defined
by this document. The attributes are defined in [CMS].
3.7.1 Content Type
The syntax of the content-type attribute type of the ES is as defined
in [CMS].
3.7.2 Message Digest
The syntax of the message-digest attribute type of the ES is as
defined in [CMS].
3.7.3 Signing Time
The syntax of the message-digest attribute type of the ES is as
defined in [CMS] and further qualified by this document.
The signing-time attribute type specifies the time at which the
signer claims to have performed the signing process.
This present document recommends the use of GeneralizedTime.
3.8 Alternative Signing Certificate Attributes
One, and only one, of the following two alternative attributes MUST
be present with the signed-data defined by this document to identify
the signing certificate. Both attributes include an identifier and a
hash of the signing certificate. The first, which is adopted in
existing standards, may be only used with the SHA-1 hashing
algorithm. The other shall be used when other hashing algorithms are
to be supported.
Pinkas, et al. Informational [Page 24]
RFC 3126 Electronic Signature Formats September 2001
The signing certificate attribute is designed to prevent the simple
substitution and re-issue attacks, and to allow for a restricted set
of authorization certificates to be used in verifying a signature.
3.8.1 ESS Signing Certificate Attribute Definition
The syntax of the signing certificate attribute type of the ES is as
defined in [ESS], and further qualified and profile in this document.
The ESS signing certificate attribute must be a signed attribute.
This document mandates the presence of this attribute as a signed CMS
attribute, and the sequence must not be empty. The certificate used
to verify the signature must be identified in the sequence, the
Signature Validation Policy may mandate other certificate references
to be present, that may include all the certificates up to the point
of trust. The encoding of the ESSCertID for this certificate must
include the issuerSerial field.
The issuerAndSerialNumber present in the SignerInfo must be
consistent with issuerSerial field. The certificate identified must
be used during the signature verification process. If the hash of
the certificate does not match the certificate used to verify the
signature, the signature must be considered invalid.
The sequence of policy information field is not used in this
document.
NOTE: Where an attribute certificate is used by the signer to
associate a role, or other attributes of the signer, with the
electronic signature this is placed in the Signer Attribute attribute
as defined in clause 3.12.3.
3.8.2 Other Signing Certificate Attribute Definition
The following attribute is identical to the ESS SigningCertificate
defined above except that this attribute can be used with hashing
algorithms other than SHA-1.
This attribute must be used in the same manner as defined above for
the ESS SigningCertificate attribute.
The following object identifier identifies the signing certificate
attribute:
id-aa-ets-otherSigCert OBJECT IDENTIFIER ::= { iso(1)
member-body(2) us(840) rsadsi(113549) pkcs(1) pkcs9(9)
smime(16) id-aa(2) 19 }
Pinkas, et al. Informational [Page 25]
RFC 3126 Electronic Signature Formats September 2001
The signing certificate attribute value has the ASN.1 syntax
OtherSigningCertificate
OtherSigningCertificate ::= SEQUENCE {
certs SEQUENCE OF OtherCertID,
policies SEQUENCE OF PolicyInformation OPTIONAL
-- NOT USED IN THIS DOCUMENT
}
OtherCertID ::= SEQUENCE {
otherCertHash OtherHash,
issuerSerial IssuerSerial OPTIONAL
}
OtherHash ::= CHOICE {
sha1Hash OtherHashValue, -- This contains a SHA-1 hash
otherHash OtherHashAlgAndValue
}
OtherHashValue ::= OCTET STRING
OtherHashAlgAndValue ::= SEQUENCE {
hashAlgorithm AlgorithmIdentifier,
hashValue OtherHashValue
}
3.9 Additional Mandatory Attributes
3.9.1 Signature policy Identifier
This document mandates that a reference to the signature policy, is
included in the signedData, this reference is either explicitly
identified or implied by the semantics of the signed content and
other external data. A signature policy defines the rules for
creation and validation of an electronic signature, is included as a
signed attribute with every signature. The signature policy
identifier must be a signed attribute.
The following object identifier identifies the signature policy
identifier attribute:
id-aa-ets-sigPolicyId OBJECT IDENTIFIER ::= { iso(1)
member-body(2) us(840) rsadsi(113549) pkcs(1) pkcs9(9)
smime(16) id-aa(2) 15 }
Signature-policy-identifier attribute values have ASN.1 type
SignaturePolicyIdentifier.
Pinkas, et al. Informational [Page 26]
RFC 3126 Electronic Signature Formats September 2001
SignaturePolicyIdentifier ::= CHOICE{
SignaturePolicyId SignaturePolicyId,
SignaturePolicyImplied SignaturePolicyImplied }
SignaturePolicyId ::= SEQUENCE {
sigPolicyIdentifier SigPolicyId,
sigPolicyHash SigPolicyHash,
sigPolicyQualifiers SEQUENCE SIZE (1..MAX) OF
SigPolicyQualifierInfo OPTIONAL
}
SignaturePolicyImplied ::= NULL
The presence of the NULL type indicates that the signature policy is
implied by the semantics of the signed data and other external data.
The sigPolicyId field contains an object-identifier which uniquely
identifies a specific version of the signature policy. The syntax of
this field is as follows:
SigPolicyId ::= OBJECT IDENTIFIER
The sigPolicyHash field contains the identifier of the hash algorithm
and the hash of the value of the signature policy.
If the signature policy is defined using a computer processable
notation like ASN.1, then the hash is calculated on the value without
the outer type and length fields and the hashing algorithm must be as
specified in the field signPolicyHshAlg.
If the signature policy is defined using another structure, the type
of structure and the hashing algorithm must be either specified as
part of the signature policy, or indicated using a signature policy
qualifier.
SigPolicyHash ::= OtherHashAlgAndValue
A signature policy identifier may be qualified with other information
about the qualifier. The semantics and syntax of the qualifier is as
associated with the object-identifier in the sigPolicyQualifierId
field. The general syntax of this qualifier is as follows:
SigPolicyQualifierInfo ::= SEQUENCE {
sigPolicyQualifierId SigPolicyQualifierId,
sigQualifier ANY DEFINED BY sigPolicyQualifierId
}
Pinkas, et al. Informational [Page 27]
RFC 3126 Electronic Signature Formats September 2001
This document specifies the following qualifiers:
* spuri: This contains the web URI or URL reference to the
signature policy
* spUserNotice: This contains a user notice which should be
displayed whenever the signature is validated.
-- sigpolicyQualifierIds defined in this document
SigPolicyQualifierId ::= OBJECT IDENTIFIER
id-spq-ets-uri OBJECT IDENTIFIER ::= { iso(1)
member-body(2) us(840) rsadsi(113549) pkcs(1) pkcs9(9)
smime(16) id-spq(5) 1 }
SPuri ::= IA5String
id-spq-ets-unotice OBJECT IDENTIFIER ::= { iso(1)
member-body(2) us(840) rsadsi(113549) pkcs(1) pkcs9(9)
smime(16) id-spq(5) 2 }
SPUserNotice ::= SEQUENCE {
noticeRef NoticeReference OPTIONAL,
explicitText DisplayText OPTIONAL
}
NoticeReference ::= SEQUENCE {
organization DisplayText,
noticeNumbers SEQUENCE OF INTEGER
}
DisplayText ::= CHOICE {
visibleString VisibleString (SIZE (1..200)),
bmpString BMPString (SIZE (1..200)),
utf8String UTF8String
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?