@ECHO OFF

REM Script to create new test certificate.

REM Please run  this BAT from command prompt

REM Windows SDK Tools 

makecert -r -n "CN=Lizard Labs Test Certificate" -a "sha1" -b 01/01/2008 -e 01/01/2099 -sv lizardlabstest.pvk lizardlabstest.cer

cert2spc lizardlabstest.cer lizardlabstest.spc

pvk2pfx  -pvk lizardlabstest.pvk -spc lizardlabstest.spc -pfx lizardlabstest.pfx

REM Other Tools

REM Win32OpenSSL (from http://www.slproweb.com/products/Win32OpenSSL.html), to create PEM certificate

REM C:\OpenSSL\bin\openssl pkcs12 -in lizardlabstest.pfx -out lizardlabstest.pem  -nodes

REM Export only publik key in PEM

REM C:\OpenSSL\bin\openssl pkcs12 -in lizardlabstest.pfx -out lizardlabstest.public.pem -nokeys



