os/security/cryptoservices/certificateandkeymgmt/tx509/Data/extensions/makeall.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 cls
    18 echo Note that this file should not be run.
    19 echo It only exists to show how the certificate extensions were created.
    20 pause
    21 rmdir /S /Q ca1 tmp
    22 
    23 mkdir ca1\private 
    24 mkdir certs 
    25 mkdir tmp 
    26 echo "01" > ca1/serial
    27 
    28 rem Generate root cert
    29 openssl req -x509 -newkey rsa:1024 -keyout %SECURITYSOURCEDIR%\os\security\cryptomgmtlibs\securitytestfw\testcertificates\certman\tx509\Data\extensions\ca1\private\cakey.pem -out ca1\cacert.pem -subj "/O=Symbian/CN=CA Root Cert" -nodes -config openssl.cfg
    30 openssl x509 -in %SECURITYSOURCEDIR%\os\security\cryptomgmtlibs\securitytestfw\testcertificates\certman\tx509\Data\extensions\ca1\cacert.pem -outform DER -out %SECURITYSOURCEDIR%\os\security\cryptomgmtlibs\securitytestfw\testcertificates\certman\tx509\Data\extensions\certs\ca1-root.der 
    31 
    32 REM Delete all AUTO generated files (some cfg and der files are created manually)
    33 for %%i in (ext\*.txt) do del "ext\%%~ni.cfg" /F /Q
    34 for %%i in (ext\*.cfg) do del "certs\%%~ni.der" /F /Q
    35 for %%i in (ext\*.txt) do del "certs\%%~ni.der" /F /Q
    36 
    37 for %%i in (ext\*.txt) do perl -w certextbuilder.pl "%%i" "ext\%%~ni.cfg"
    38 for %%i in (ext\*.cfg) do call .\makecert.bat %%~ni
    39