cryptoservices/certificateandkeymgmt/tder/example/safebag_keybag.txt
author Santosh V Patil <santosh.v.patil@nokia.com>
Mon, 28 Jun 2010 09:47:25 +0530
branchRCL_3
changeset 56 831589831d04
parent 8 35751d3474b7
permissions -rw-r--r--
Made additional changes for bug 1170

// 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