os/security/cryptoservices/certificateandkeymgmt/tder/example/pkcs12_certonly.txt
author sl
Tue, 10 Jun 2014 14:32:02 +0200
changeset 1 260cb5ec6c19
permissions -rw-r--r--
Update contrib.
sl@0
     1
// PKCS#12 file that contains a single certificate
sl@0
     2
sl@0
     3
SEQUENCE
sl@0
     4
	// Version
sl@0
     5
	INTEGER=3
sl@0
     6
sl@0
     7
	// authSafe - PFX
sl@0
     8
	SEQUENCE
sl@0
     9
		OID=PKCS7_DATA
sl@0
    10
		EXPLICIT		
sl@0
    11
			OCTETSTRING
sl@0
    12
				OUTPUT_BINARY_FILE=authsafecontents.der,1
sl@0
    13
					// First PDU
sl@0
    14
					SEQUENCE
sl@0
    15
						INCLUDE=encrypted_contentinfo.txt,83:8C:73:5E:D5:8F:75:82,1,PKCS12_PBEIDS_SHAAND40BITRC2CBC,rc2-40-cbc,f249eb73d2,ad9c6049b06d1215,safecontents.txt,safebag_certbag.txt,root5ca.der,Root5 CA
sl@0
    16
					END
sl@0
    17
				END
sl@0
    18
			END
sl@0
    19
		END
sl@0
    20
	END
sl@0
    21
sl@0
    22
	// macData
sl@0
    23
	SEQUENCE
sl@0
    24
		// DigestInfo
sl@0
    25
		SEQUENCE
sl@0
    26
			SEQUENCE
sl@0
    27
				OID=SHA1
sl@0
    28
				NULL
sl@0
    29
			END
sl@0
    30
			// DIGEST		
sl@0
    31
			OCTETSTRING
sl@0
    32
				HMAC=SHA1,15846aede455bf914245a79718ac1addb0b86ca3
sl@0
    33
					INCLUDE_BINARY_FILE=authsafecontents.der
sl@0
    34
				END
sl@0
    35
			END		
sl@0
    36
		END		
sl@0
    37
		// macSalt
sl@0
    38
		OCTETSTRING
sl@0
    39
			RAW=95:5D:62:99:D3:31:50:57
sl@0
    40
		END
sl@0
    41
		// iterations
sl@0
    42
		INTEGER=2048	
sl@0
    43
	END
sl@0
    44
END