Skip to content

Instantly share code, notes, and snippets.

@jonkarna
Created September 22, 2009 20:16
Show Gist options
  • Save jonkarna/191373 to your computer and use it in GitHub Desktop.
Save jonkarna/191373 to your computer and use it in GitHub Desktop.
script that I made to simplify the openssl process of taking a pem from FirstData and creating a p12
@echo off
cd C:\OpenSSL\bin
:: inputting store number
:inputStoreNumber
set sStoreNumber=
set /P sStoreNumber=Store #: %=%
if "%sStoreNumber%"=="" goto inputStoreNumber
:: inputting store password
:inputPassword
set sPassword=
set /P sPassword=Password: %=%
if "%sPassword%"=="" goto inputPassword
echo Your input was
echo Store #: %sStoreNumber%
echo Password: %sPassword%
@echo on
:: executing ssl command
openssl pkcs12 -export -passout pass:"%sPassword%" -in c:\%sStoreNumber%.pem -out c:\%sStoreNumber%.p12 -name "%sStoreNumber%"
pause
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment