cryptoservices/certificateandkeymgmt/tpkcs12intgrtn/testdatainput/ct001/safebag_certbag.txt
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Fri, 16 Apr 2010 16:52:34 +0300
changeset 56 c11c717470d0
parent 8 35751d3474b7
permissions -rw-r--r--
Revision: 201015 Kit: 201015

// SafeBag: CertBag
// PARAM1: The name of the certificate file
// PARAM2: The 'friendly' name of the certificate
SEQUENCE
	OID=PKCS12_BAGTYPES_CERTBAG
	EXPLICIT
		// CertBag
		SEQUENCE
			OID=PKCS9_CERTTYPES_PKCS12_SDSI
			EXPLICIT
				OCTETSTRING
					INCLUDE_BINARY_FILE=$1
				END
			END
		END
	END
	// Attributes
	SET
		SEQUENCE
			OID=PKCS9_LOCAL_KEYID
			SET
				OUTPUT_BINARY_FILE=localkeyid_ct001.der,1				
					OCTETSTRING
						HASH=sha1
							INCLUDE_BINARY_FILE=$1
						END
					END
				END
			END
		END 
		SEQUENCE
			OID=PKCS9_FRIENDLY_NAME
			SET
				OUTPUT_BINARY_FILE=friendlyname_ct001.der,1
					BMPSTRING=symbian
				END
			END
		END	
	END
END