os/security/cryptoservices/certificateandkeymgmt/tx509/Data/extensions/makeall.bat
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/os/security/cryptoservices/certificateandkeymgmt/tx509/Data/extensions/makeall.bat Fri Jun 15 03:10:57 2012 +0200
1.3 @@ -0,0 +1,39 @@
1.4 +@rem
1.5 +@rem Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
1.6 +@rem All rights reserved.
1.7 +@rem This component and the accompanying materials are made available
1.8 +@rem under the terms of the License "Eclipse Public License v1.0"
1.9 +@rem which accompanies this distribution, and is available
1.10 +@rem at the URL "http://www.eclipse.org/legal/epl-v10.html".
1.11 +@rem
1.12 +@rem Initial Contributors:
1.13 +@rem Nokia Corporation - initial contribution.
1.14 +@rem
1.15 +@rem Contributors:
1.16 +@rem
1.17 +@rem Description:
1.18 +@rem
1.19 +@echo off
1.20 +cls
1.21 +echo Note that this file should not be run.
1.22 +echo It only exists to show how the certificate extensions were created.
1.23 +pause
1.24 +rmdir /S /Q ca1 tmp
1.25 +
1.26 +mkdir ca1\private
1.27 +mkdir certs
1.28 +mkdir tmp
1.29 +echo "01" > ca1/serial
1.30 +
1.31 +rem Generate root cert
1.32 +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
1.33 +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
1.34 +
1.35 +REM Delete all AUTO generated files (some cfg and der files are created manually)
1.36 +for %%i in (ext\*.txt) do del "ext\%%~ni.cfg" /F /Q
1.37 +for %%i in (ext\*.cfg) do del "certs\%%~ni.der" /F /Q
1.38 +for %%i in (ext\*.txt) do del "certs\%%~ni.der" /F /Q
1.39 +
1.40 +for %%i in (ext\*.txt) do perl -w certextbuilder.pl "%%i" "ext\%%~ni.cfg"
1.41 +for %%i in (ext\*.cfg) do call .\makecert.bat %%~ni
1.42 +