cryptoservices/certificateandkeymgmt/tder/example/safebag_certbag.txt
author andy simpson <andrews@symbian.org>
Fri, 20 Nov 2009 14:25:08 +0000
changeset 18 538fe06033d7
parent 8 35751d3474b7
permissions -rw-r--r--
merged 200945 drop

// 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_X509
			EXPLICIT
				OCTETSTRING
					INCLUDE_BINARY_FILE=$1
				END
			END
		END
	END
	// Attributes
	SET
		SEQUENCE
			OID=PKCS9_LOCAL_KEYID
			SET				
				OCTETSTRING
					HASH=sha1
						INCLUDE_BINARY_FILE=$1
					END
				END
			END
		END 
		SEQUENCE
			OID=PKCS9_FRIENDLY_NAME
			SET
				BMPSTRING=$2
			END
		END	
	END
END