收藏 分销(赏)

五政府凭证管理中心相关规范.doc

上传人:w****g 文档编号:2785318 上传时间:2024-06-05 格式:DOC 页数:31 大小:419.50KB
下载 相关 举报
五政府凭证管理中心相关规范.doc_第1页
第1页 / 共31页
五政府凭证管理中心相关规范.doc_第2页
第2页 / 共31页
五政府凭证管理中心相关规范.doc_第3页
第3页 / 共31页
五政府凭证管理中心相关规范.doc_第4页
第4页 / 共31页
五政府凭证管理中心相关规范.doc_第5页
第5页 / 共31页
点击查看更多>>
资源描述

1、五、政府憑證管理中心相關規範(一)技術標準政府憑證管理中心(Government Certificate Authority, GCA)有關電子憑證之命名、加密演算、數位簽章演算、憑證格式、憑證編碼、私密金鑰加密格式等所採用之標準與格式如下:、命名(Naming):採X.509命名方式。其他標準包括電子郵件E-mail(RFC 822)、網域名稱服務Domain Name Service Name(RFC 1035)、Originator/Recipient Address O/R Address(X.400, 1988)、 目錄名稱Directory Name(X.501,1993)、電子文

2、件交換EDI part Name、 全球資訊網網址Uniform Resource Locator URL(RFC 1630)、網際網路位址IP address(RFC 791)及註冊識別碼Registered ID(X.660)等。、加密演算法 :採Triple DES CBC 112 bits演算法。、憑證的數位簽章演算法:採RSA演算法,其金鑰長度為1024 bits,並配合雜湊函數SHA-1作訊息摘要,補白(padding)方法採SET規範。、憑證公佈(Certificate Distribution):採用HTTP協定。、憑證格式(Certificate Format):採用X.50

3、9(V3,1993)標準。、廢止清冊(CRL):採用X.509(V2,1993)標準。、憑證編碼方式。()Abstract Syntax Notation One( ASN.1):描述資料欄位的形態與數值(定義在 CCITTT X.208, 1988)()Basic Encoding Rule(BER):描述資料標碼規則(定義在 CCITT X.209, 1988)()Distinguish Encoding Rule(DER):對 ASN.1提供唯一編碼方式,DER是 BER的 Subset(定義在 ITU-T X.690, 1994)、個人密鑰: 採用 PKCS#5 (PKCS: Publ

4、ic Key Cryptographic Standard)公開金鑰密碼標準格式加密格式。、通信協定:()TCP/IP()HTTP(二)政府機關憑證格式有關GCA的憑證格式及其ASN.1的格式如下說明、GCA 憑證格式(X.509 v3)擴充欄位憑證格式版本憑證序號簽章演算法簽發者名稱憑證有效期限持有者識別名稱(Subject Name)持有者公鑰簽發者唯一識別碼持有者唯一識別碼(Subject Unique ID)金鑰用途憑證政策持有者別名基本限制 CA 簽章 憑證管理中心所使用之公開金鑰憑證內容敘述如下:(1)版本:該憑證製作所依據的X.509版序(V3)(2)序號:由憑證管理中心所給定的

5、唯一憑證序號(3)數位簽章演算法:憑證管理中心簽署該憑證所用的演算法(4)簽發單位名稱:簽署該憑證之憑證管理中心名稱(5)憑證有效期限:該憑證生效日期與截止日期(6)用戶名稱:依據X.500命名方式所命名的用戶名稱(7)公開金鑰資料:公開金鑰的值與演算法名稱(8)簽發者識別號:簽署該憑證之憑證管理中心獨有的識別號碼(9)用戶識別號:用戶獨有唯一識別碼(10)X.509 擴充欄位(V3):憑證管理中心的政策與金鑰名稱補充(11)數位簽章演算法:憑證管理中心簽章所用的演算法(12)數位簽章:憑證管理中心對以上資料作數位簽章公鑰憑證擴充欄位(Certificate Extensions) 敘述如下:

6、(1)金鑰的用途(Key Usage)(2)憑證簽發原則與政策(Certificate Policies)(3)替代名稱(Alternative Name)(4)基本限制(Basic Constraints)、憑證的ASN.1格式說明憑證的ASN.1格式詳細如下所列:Certificate:= SEQUENCE tbsCertificate TBSCertificate,signatureAlgorithmAlgorithmIdentifier,signature BIT STRINGTBSCertificate:= SEQUENCE version0 EXPLICIT Version,ser

7、ialNumberCertificateSerialNumber,signatureAlgorithmIdentifier,issuerName,validity Validity,subjectName,subjectPublicKeyInfoSubjectPublicKeyInfo,issuerUniqueID 1 IMPLICIT UniqueIdentifier OPTIONAL,SubjectUniqueID 2 IMPLICIT UniqueIdentifier OPTIONAL,extensions 3 EXPLICIT Extensions OPTIONAL Version:=

8、 INTEGER v3(2) CertificateSerialNumber := INTEGER Validity:= SEQUENCE notBeforeTime,notAfterTimeTime:= CHOICEutcTimeUTCTime,generalTimeGerneralizedTimeUniqueIdentifier:= BIT STRINGSubjectPublicKeyInfo:= SEQUENCE algorithmAlgorithmIdentifier,subjectPublicKeyBIT STRINGExtensions:= SEQUENCE SIZE (1.MAX

9、) OF EXTENSIONExtension:= SEQUENCEexnIDOBJECT IDENTIFIER,criticalBOOLEAN DEFAULT FALSE,extnValue OCTET STRINGAlgorithmIdentifier:=SEQUENCE algorithmOBJECT IDENTIFIER,parametersANY DEFINED BY algorithm OPTIONAL Name:=CHOICERDNSequence RDNSequence:=SEQUENCE OF RelativeDistinguishedNameRelativeDistingu

10、ishedName:=SET OF AttributeTypeAndValueAttributeTypeAndValue:= SEQUENCE typeAttributeType,valueAttributeValueAttributeTypeOBJECT IDENTIFIER := joint-iso-ccitt (2) ds(5) attributeType (4) AttributeValue:= ANY DEFINED BY AttribeType- country typecountryNameATTRIBUTEWITH ATTRIBUTE-SYNTAXPrintableString

11、 (SIZE(2) )- IS 3166 codes onlyMATCHES FOR EQUALITYSINGLEVALUE := attributeType 6 - organization typeorganizationNameATTRIBUTEWITH ATTRIBUTE-SYNTAXcaseIgnoreStringSyntax(SIZE(1.ub-organization-Name) ):= attributeType 10 - organization unit typeorganizationUnitNameATTRIBUTEWITH ATTRIBUTE-SYNTAXcaseIg

12、noreStringSyntax(SIZE(1.ub-organizational-unit-Name) ):= attributeType 11 - common name typecommonNameATTRIBUTEWITH ATTRIBUTE-SYNTAXcaseIgnoreStringSyntax(SIZE(1.ub-common-Name) ):= attributeType 3 - extensions- key usage extensionid-ce-keyUsageOBJECT IDENTIFIER := id-ce 15 KeyUsage:= BIT STRINGDigi

13、talSignature(0)NonRepudiation(1)keyEncipherment(2)dataEncryption(3)keyAgreement(4)keyCertSign(5)cRLSign(6)encipherOnly(7)decipherOnly(8)- policy extensionid-ce-certificatePoliciesOBJECT IDENTIFIER:= id-ce 32 certificatePolicies:=SEQUENCE SIZE (1.MAX) OF PolicyInformationPolicyInformation:= SEQUENCE

14、policyIdentifierCertPolicyId,policyQualifiersSEQUENCE SIZE (1.MAX) OFPolicyQualifierInfo OPTIONAL CertPolicyIdOBJECT IDENTIFIER id-cht-cp-1OBJECT IDENTIFIER := 1 2 tw(886) cht(1) cp(2) policy-1(1)PolicyQualifierInfo:=SEQUENCE policyQualifierIdPolicyQualifierId,qualifierANY DEFUNED BY policyQualifier

15、Id- subject alternative name extensionid-ce-subjectAltNameOBJECT IDENTIFIER := id-ce 17 SubjectAltName:=GeneralNamesGeneralNames:= SEQUENCE SIZE (1.MAX) OF GernalNameGernalName:= CHOICE otherName 0 OtherName,rfc822Name 1 IA5String,dNSName 2 IA5String,x400Name 3 ORAddress,directoryName 4 Name,ediPart

16、yName 5 EDIPartyName,uniformResourceIdentifier6IA5String,iPAddress 7 OCTET STRING,reqisterdID 8 OBJECT IDENTIFIER OtherName:=SEQUENCEtype-idOBJECTIDENTIFIER,value0EXPLICIT ANY DEFIED BY type-id id-taiwanPersonalIDOBJECT IDENTIFIER:= 1 2 tw(886) cht(1) id(1) TaiwanPersonIDIA5String- basic constraints

17、 entensionsid-ce-basicConstraintsOBJECT IDENTIFIER:= id-ce 19 BasicConstraints:=SEQUENCE cABOOLEAN DEFAULT FALSE,pathConstraintINTEGER (.MAX) OPTIONAL (三)政府機關憑證內容及查詢說明GCA所核發政府機構憑證有兩項資料內容說明:、持有者識別名稱 (Subject Name)c=tw,o=行政院,ou=主管機關註冊窗口,cn=單位全名、持有者唯一識別碼 (Subject Unique ID)依據“全國公務人員人事資訊統一代碼管理要點“規定、憑證查詢

18、時輸入全國公務人員人事資訊統一代碼單位全名註: country(c), organization(o), organization unit(ou), common name(cn)(四)GCA本身憑證以及簽章格式本簽章的內容分成A,B兩部分其依循的標準為X.509v3 PKCS#1 v1.5參照的實際憑證為VeriSign(1998)和SET(1998)的憑證中的簽章格式。Part A, Algorithm ID of RSAwithSHA_1含DER的Tag及Length(各為一位元組)和OID:sha-1WithRSAEncryption的資料則總長度為11位元組。即: 30 09 -

19、signature algorithm OID 06 05 - OBJECT IDENTIFIER sha- 1WithRSAEncryption (1 3 14 3 2 29) 2b 0e 03 02 1d - NULL 05 00 Part B, Signature of data of signed by RSA private key 因key length為128位元組再加上Bit string ”00”的一個位元組, 所以總長度為129位元組。名稱AppendingAlgorithm IDHash value內容說明 PKCS#1 formatSHA_1Hash of X.509v

20、3 to be signed data以RSA public key解密後得原來實際的資料內容00:01:ff:ff:.ff:00:30:21 30:09 06:05 2b:0e:03:02:1a 05:00 04:14SHA_1 output資料長度(位元組)93152003 81 81 - signature tag and length- signature(BIT STRING) 00 42 2e 40 ef 3c b8 cb a4 2b c8 b4 60 4c 7e 0c d5 57 f3 8d 74 09 2b 說明: bit string data必須補成8的倍數, 所以會多加一

21、個byte來記錄所補充的位元數, 而本列中為128bytes的資料, 所以所補的長度為0GCA 憑證 DER code範例以下描述某一份GCA憑證的DER編碼:30 82 02 93 - certificate tag and length 30 82 02 00 - tag and length of to-be-signed part a0 03 - tag and length of certificate version 02 01 - integer with 1-byte length for version 3 02 - version 3 02 04 - integer wit

22、h 4-byte length for serial number 0f 7f 49 02 - serial number 30 09 - signature algorithm OID 06 05 ( 1 3 14 3 2 29 ) 2b 0e 03 02 1d 05 00 30 57- (issuer) tag and length of Name 31 0b 30 09 06 03 - (issuer) countryName OID ( 2 5 4 6 ) 55 04 06 13 02 TW 54 57 31 0f 30 0d 06 03 - (issuer) localityName

23、 OID ( 2 5 4 8 ) 55 04 08 14 06 臺灣省 bb 4f c6 57 ac d9 31 0f 30 0d 06 03 - (issuer) organizationName OID ( 2 5 4 10 ) 55 04 0a 14 06 行政院 a6 e6 ac 46 b0 7c 31 0f 30 0d 06 03 - (issuer) organizationUnitName OID ( 2 5 4 11 ) 55 04 0b 14 06 研考會 ac e3 a6 d2 b7 7c 31 15 30 13 06 03 - (issuer) commonName OI

24、D ( 2 5 4 3 ) 55 04 03 14 0c 憑證管理中心 be cc c3 d2 ba de b2 7a a4 a4 a4 df 30 1e - Validity tag and length 17 0d 980219091852Z 39 38 30 32 31 39 30 39 31 38 35 32 5a - NotBefore 17 0d 000219091852Z 30 30 30 32 31 39 30 39 31 38 35 32 5a- NotAfter 30 5d- (Subject) tag and length 31 0b 30 09 06 03- (Subj

25、ect) countryName OID ( 2 5 4 6 ) 55 04 06 13 02 TW 54 57 31 0f 30 0d 06 03 - (Subject) localityName OID ( 2 5 4 8 ) 55 04 08 14 06 臺灣省 bb 4f c6 57 ac d9 31 17 30 15 06 03 - (Subject) organizationName OID ( 2 5 4 10 ) 55 04 0a 14 0e 中華電信研究所 a4 a4 b5 d8 b9 71 ab 48 ac e3 a8 73 a9 d2 31 13 30 11 06 03

26、- (Subject) OrganizationUnitName OID ( 2 5 4 11 ) 55 04 0b 14 0a 應用科技室 c0 b3 a5 ce ac ec a7 de ab c7 31 0f 30 0d 06 03 - (Subject) commonName OID ( 2 5 4 3 ) 55 04 03 14 06 王上安 a7 f5 ab d8 bd f7 30 81 9e - Subject PubliceKeyInfo tag and length 30 0d - Algorithm OID 06 09 ( 1 2 840 113549 1 1 1 ) 2a

27、86 48 86 f7 0d 01 01 01 05 00 03 81 8c - Public Key:參照X.509規範存入 128byte的n以及3 byte的e 00 30 81 88 02 81 80 16 91 e0 a7 b6 52 f5 d0 5f b4 c2 00 bd bd 18 b7 8c e7 67 a0 65 d2 4e 42 1c c2 66 c2 1e cb e6 20 70 93 00 ab c8 14 f0 6d fc 17 40 6e 90 ba 51 37 d3 2f 7a 07 98 87 79 89 90 98 99 d4 42 6a ef 07 d2

28、9a 08 11 82 ae 56 a5 16 f4 d5 14 1b a4 60 7e e3 81 f1 70 2c bd de c1 9d 4b 4b 24 0d db 50 3a c8 ea e8 c6 8a d0 86 cf 74 b6 ea 6d 3c e7 9a 60 fb eb a5 17 a3 09 b2 04 ad bf ea c9 a2 bd 09 6d 02 03 01 00 01 82 1a - UniqueIdentifier tag and length 03 18 00 30 15 06 05 - id-taiwanPersonalID OID 2a 86 76

29、01 01 a0 0c 16 0a 55 31 32 30 30 39 37 36 37 38 - ID Number a3 53 30 51 30 0b 06 03 - keyUsage OID ( 2 5 29 15 ) 55 1d 0f 04 04 - KeyUsage(BIT STRING) 03 02 07 80 30 09 06 03- basicConstraints OID ( 2 5 29 19 ) 55 1d 13 04 02 30 00 30 22 06 03 - subjectAltName OID ( 2 5 29 17 ) 55 1d 11 04 1b 30 19

30、a0 17 30 15 06 05 2a 86 76 01 01 a0 0c 16 0a 55 31 32 30 30 39 37 36 37 38 30 13 06 03- certificatePolicy OID ( 2 5 29 32 ) 55 1d 20 04 0c - id-cht-cp-1 tag and length 30 0a 30 08 06 06 2a 86 76 01 02 01 - id-cht-cp-1 30 09 06 05 - signature Algorithm OID ( 1 3 14 3 2 29 ) 2b 0e 03 02 1d 05 00 03 81

31、 81 - signature tag and length- signature(BIT STRING)00 42 2e 40 ef 3c b8 cb a4 2b c8 b4 60 4c 7e 0c d5 57 f3 8d 74 09 2b 4a 73 02 cf dd 06 0a da 85 90 ec 78 6a 6f 06 c5 70 1d 1c b3 6f bd d8 34 11 49 e6 40 9d dc 35 e7 18 5b 43 7d 98 93 0a e5 fc e2 66 5e 48 22 16 8a 99 a3 25 bd 76 da c8 f9 e2 92 15 1

32、e 5b ad 42 4e f7 77 d3 ed 1b 21 ee c8 fb ee 9d d6 4c 38 1b 6b a2 b9 33 36 09 85 93 fb ca de 4b 37 8e 6b 6f e7 d2 99 18 1c 70 3b 71 b8 84 37 簽章中取hash的範圍及內容以下描述憑證中簽章的資料範圍:由30 82 02 00 - tag and length of to-be-signed part到30 0a 30 08 06 06 2a 86 76 01 02 01 - id-cht-cp-1之DER code(五)憑證廢止清冊 憑證廢止清冊(Certi

33、ficate Revocation List, CRL)係在某些金鑰已經有安全顧慮時,用來通知各相關單位,以避免使用該有疑慮的金鑰。本憑證管理中心之目錄伺服器會依作業準則,傳播憑證廢止清冊,以便降低有安全顧慮的金鑰遭冒用的機會。、本憑證管理中心所使用之憑證廢止清冊內容大致如下:(1) 版序(2) 簽章演算法(3) 憑證管理中心名稱(4) 本次發佈時間(5) 下次發佈時間(6) 廢止憑證串列: 憑證序號、廢止時間、廢止憑證串列項目之擴充資料(廢止原因)(7) 廢止憑證清冊擴充資料(8) 簽章方法(9) 數位簽章:憑證管理中心對以上資料,使用其私密金鑰做數位簽章運算所得的數位簽章(a) Versi

34、on: Indicator of Version 1 or 2 format.(b) Signature: Indicator of the algorithm used in signing this CRL.(c) Issuer: Name of the authority that issued this CRL and whose signature on this CRL.(d) This Update: Date and time of issue of this CRL.(e) Next Update: Date and time of issue of next CRL(f)

35、User Certificate: Certificate serial number of a revoked or suspended certificate.(g) Revocation Date: Effective date of revocation or suspension of a particular certificate.(h) CRL Entry Extensions: Additional fields,the types of which must be registered,and that may be attached to each revocation

36、entry.(I) CRL Extensions: Additional fields,the types of which must be registered,and that may be attached to the full CRL.註:l CRL:Certificate Revocation Listl 過期的憑證其序號是不刊在CRL中的圖一、CRL格式、憑證廢止清冊的ASN.1說明憑證廢止清冊的ASN.1格式,詳如下所列:CertificateRevokationList := SIGNED SEQUENCE versionVersion OPTIONAL- if present, must be v2 signature

展开阅读全文
相似文档                                   自信AI助手自信AI助手
猜你喜欢                                   自信AI导航自信AI导航
搜索标签

当前位置:首页 > 品牌综合 > 行业标准/行业规范

移动网页_全站_页脚广告1

关于我们      便捷服务       自信AI       AI导航        获赠5币

©2010-2024 宁波自信网络信息技术有限公司  版权所有

客服电话:4008-655-100  投诉/维权电话:4009-655-100

gongan.png浙公网安备33021202000488号   

icp.png浙ICP备2021020529号-1  |  浙B2-20240490  

关注我们 :gzh.png    weibo.png    LOFTER.png 

客服