sl@0: @rem sl@0: @rem Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). sl@0: @rem All rights reserved. sl@0: @rem This component and the accompanying materials are made available sl@0: @rem under the terms of the License "Eclipse Public License v1.0" sl@0: @rem which accompanies this distribution, and is available sl@0: @rem at the URL "http://www.eclipse.org/legal/epl-v10.html". sl@0: @rem sl@0: @rem Initial Contributors: sl@0: @rem Nokia Corporation - initial contribution. sl@0: @rem sl@0: @rem Contributors: sl@0: @rem sl@0: @rem Description: sl@0: @rem sl@0: @echo off sl@0: cls sl@0: echo Note that this file should not be run. sl@0: echo It only exists to show how the certificate extensions were created. sl@0: pause sl@0: rmdir /S /Q ca1 tmp sl@0: sl@0: mkdir ca1\private sl@0: mkdir certs sl@0: mkdir tmp sl@0: echo "01" > ca1/serial sl@0: sl@0: rem Generate root cert sl@0: 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: 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: sl@0: REM Delete all AUTO generated files (some cfg and der files are created manually) sl@0: for %%i in (ext\*.txt) do del "ext\%%~ni.cfg" /F /Q sl@0: for %%i in (ext\*.cfg) do del "certs\%%~ni.der" /F /Q sl@0: for %%i in (ext\*.txt) do del "certs\%%~ni.der" /F /Q sl@0: sl@0: for %%i in (ext\*.txt) do perl -w certextbuilder.pl "%%i" "ext\%%~ni.cfg" sl@0: for %%i in (ext\*.cfg) do call .\makecert.bat %%~ni sl@0: