os/security/cryptoservices/certificateandkeymgmt/tder/example/makeexamples.bat
author sl
Tue, 10 Jun 2014 14:32:02 +0200
changeset 1 260cb5ec6c19
permissions -rw-r--r--
Update contrib.
     1 @rem
     2 @rem Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
     3 @rem All rights reserved.
     4 @rem This component and the accompanying materials are made available
     5 @rem under the terms of the License "Eclipse Public License v1.0"
     6 @rem which accompanies this distribution, and is available
     7 @rem at the URL "http://www.eclipse.org/legal/epl-v10.html".
     8 @rem
     9 @rem Initial Contributors:
    10 @rem Nokia Corporation - initial contribution.
    11 @rem
    12 @rem Contributors:
    13 @rem
    14 @rem Description: 
    15 @rem
    16 @echo off
    17 @echo This script requries OpenSSL which may be freely downloaded from www.openssl.org
    18 pause
    19 
    20 rem Create the files
    21 ..\dergen.pl --in pkcs12simple.txt				--out pkcs12simple.p12
    22 ..\dergen.pl --in pkcs12_certonly.txt 			--out pkcs12_certonly.p12
    23 ..\dergen.pl --in pkcs12_crl.txt 				--out pkcs12_crl.p12
    24 ..\dergen.pl --in pkcs12_keyonly.txt 			--out pkcs12_keyonly.p12
    25 ..\dergen.pl --in pkcs12_nomaciter.txt 	 		--out pkcs12_nomaciter.p12
    26 ..\dergen.pl --in pkcs12_secret.txt 		 	--out pkcs12_secret.p12
    27 ..\dergen.pl --in pkcs12_twocerts.txt		 	--out pkcs12_twocerts.p12
    28 ..\dergen.pl --in pkcs12_unencrypted.txt 		--out pkcs12_unencrypted.p12
    29 
    30 rem Parse the files using openssl
    31 openssl pkcs12 -info -nodes -password pass:password -in pkcs12simple.p12 		> pkcs12simple.out 2<&1
    32 openssl pkcs12 -info -nodes -password pass:password -in pkcs12_certonly.p12 	> pkcs12_certonly.out 2<&1
    33 openssl pkcs12 -info -nodes -password pass:password -in pkcs12_crl.p12 			> pkcs12_crl.out 2<&1
    34 openssl pkcs12 -info -nodes -password pass:password -in pkcs12_keyonly.p12 		> pkcs12_keyonly.out 2<&1
    35 openssl pkcs12 -info -nodes -password pass:password -in pkcs12_nomaciter.p12 	> pkcs12_nomaciter.out 2<&1
    36 openssl pkcs12 -info -nodes -password pass:password -in pkcs12_secret.p12 		> pkcs12_secret.out 2<&1
    37 openssl pkcs12 -info -nodes -password pass:password -in pkcs12_twocerts.p12 	> pkcs12_twocerts.out 2<&1
    38 openssl pkcs12 -info -nodes -password pass:password -in pkcs12_unencrypted.p12 	> pkcs12_unencrypted.out 2<&1
    39 
    40 rem Create files that are not supported by OpenSSL
    41 ..\dergen.pl --in pkcs12_nested.txt				--out pkcs12_nested.p12
    42 ..\dergen.pl --in pkcs12_publickeyintegrity.txt --out pkcs12_publickeyintegrity.p12