os/security/cryptoservices/certificateandkeymgmt/tder/example/safebag_keybag.txt
author sl
Tue, 10 Jun 2014 14:32:02 +0200
changeset 1 260cb5ec6c19
permissions -rw-r--r--
Update contrib.
     1 // SafeContents
     2 // PARAM1: The filename of the DER encoded keyfile
     3 // PARAM2: The name of the associated certificate file
     4 // PARAM3: The 'friendly' name of the certificate
     5 // SafeBag
     6 SEQUENCE
     7 	OID=PKCS12_BAGTYPES_KEYBAG
     8 	EXPLICIT
     9 		INCLUDE_BINARY_FILE=$1
    10 	END
    11 	// Attributes
    12 	SET
    13 		SEQUENCE
    14 			OID=PKCS9_LOCAL_KEYID
    15 			SET				
    16 				OCTETSTRING
    17 					HASH=sha1
    18 						INCLUDE_BINARY_FILE=$2
    19 					END
    20 				END
    21 			END
    22 		END 
    23 		SEQUENCE
    24 			OID=PKCS9_FRIENDLY_NAME
    25 			SET
    26 				BMPSTRING=$3
    27 			END
    28 		END	
    29 	END
    30 END
    31 
    32