Created
September 22, 2009 20:16
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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