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: echo Create a certificate with the specified extension sl@0: sl@0: SET CERT_PATH=%SECURITYSOURCEDIR%\os\security\cryptomgmtlibs\securitytestfw\testcertificates\certman\tx509\Data\extensions sl@0: rem Create certificate request sl@0: openssl req -newkey rsa:1024 -keyout %CERT_PATH%\tmp\key.pem -out %CERT_PATH%\tmp\%1_req.pem -subj "/O=Symbian/CN=Entity Cert 1 (%1)" -nodes -config openssl.cfg sl@0: sl@0: rem Sign the request using the CA key and add the extension sl@0: openssl x509 -req -in %CERT_PATH%\tmp\%1_req.pem -inform pem -out %CERT_PATH%\certs\%1.der -outform DER -extfile ext\%1.cfg -CAkey %CERT_PATH%\ca1\private\cakey.pem -CA %CERT_PATH%\ca1\cacert.pem