os/security/cryptoservices/certificateandkeymgmt/tx509/Data/extensions/makeall.bat
author sl@SLION-WIN7.fritz.box
Fri, 15 Jun 2012 03:10:57 +0200
changeset 0 bde4ae8d615e
permissions -rw-r--r--
First public contribution.
sl@0
     1
@rem
sl@0
     2
@rem Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
sl@0
     3
@rem All rights reserved.
sl@0
     4
@rem This component and the accompanying materials are made available
sl@0
     5
@rem under the terms of the License "Eclipse Public License v1.0"
sl@0
     6
@rem which accompanies this distribution, and is available
sl@0
     7
@rem at the URL "http://www.eclipse.org/legal/epl-v10.html".
sl@0
     8
@rem
sl@0
     9
@rem Initial Contributors:
sl@0
    10
@rem Nokia Corporation - initial contribution.
sl@0
    11
@rem
sl@0
    12
@rem Contributors:
sl@0
    13
@rem
sl@0
    14
@rem Description: 
sl@0
    15
@rem
sl@0
    16
@echo off
sl@0
    17
cls
sl@0
    18
echo Note that this file should not be run.
sl@0
    19
echo It only exists to show how the certificate extensions were created.
sl@0
    20
pause
sl@0
    21
rmdir /S /Q ca1 tmp
sl@0
    22
sl@0
    23
mkdir ca1\private 
sl@0
    24
mkdir certs 
sl@0
    25
mkdir tmp 
sl@0
    26
echo "01" > ca1/serial
sl@0
    27
sl@0
    28
rem Generate root cert
sl@0
    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
sl@0
    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 
sl@0
    31
sl@0
    32
REM Delete all AUTO generated files (some cfg and der files are created manually)
sl@0
    33
for %%i in (ext\*.txt) do del "ext\%%~ni.cfg" /F /Q
sl@0
    34
for %%i in (ext\*.cfg) do del "certs\%%~ni.der" /F /Q
sl@0
    35
for %%i in (ext\*.txt) do del "certs\%%~ni.der" /F /Q
sl@0
    36
sl@0
    37
for %%i in (ext\*.txt) do perl -w certextbuilder.pl "%%i" "ext\%%~ni.cfg"
sl@0
    38
for %%i in (ext\*.cfg) do call .\makecert.bat %%~ni
sl@0
    39