cryptoservices/certificateandkeymgmt/tder/example/safebag_keybag.txt
author asimpson@symbian.org
Thu, 15 Oct 2009 17:48:29 +0100
branchRCL_1
changeset 13 e60b2dbc57a0
parent 0 2c201484c85f
child 8 35751d3474b7
permissions -rw-r--r--
Added tag PDK_2.0.0 for changeset 1d329321bec7

// SafeContents
// PARAM1: The filename of the DER encoded keyfile
// PARAM2: The name of the associated certificate file
// PARAM3: The 'friendly' name of the certificate
// SafeBag
SEQUENCE
	OID=PKCS12_BAGTYPES_KEYBAG
	EXPLICIT
		INCLUDE_BINARY_FILE=$1
	END
	// Attributes
	SET
		SEQUENCE
			OID=PKCS9_LOCAL_KEYID
			SET				
				OCTETSTRING
					HASH=sha1
						INCLUDE_BINARY_FILE=$2
					END
				END
			END
		END 
		SEQUENCE
			OID=PKCS9_FRIENDLY_NAME
			SET
				BMPSTRING=$3
			END
		END	
	END
END