123456789101112131415161718192021222324252627282930313233343536373839404142 |
- @echo off
- rem *********************************************************************************************************************************
- rem * Licensed Materials - Property of IBM *
- rem * *
- rem * IBM Cognos Products: DLS *
- rem * *
- rem * (C) Copyright IBM Corp. 2005, 2021 *
- rem * *
- rem * US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp. *
- rem *********************************************************************************************************************************
- rem *************** DLS SSL certificate import tool *********************
- rem ** This tool is designed to import a SSL certificate in IBM Cognos Java Keystore
- rem **
- rem ********************************************************************
- rem NOTE:
- rem if successful this message will be shown: Certificate was added to keystore
- rem if already imported keytool error: java.lang.Exception: Certificate not imported, alias <DLSKeystore> already exists
- CLS
- if [%1]==[] goto usage
- cd ..\ibm-jre\jre\bin
- echo importing certificate from %1
- keytool -import -alias DLSKeystore -file %1 -keystore ..\lib\security\cacerts -storepass changeit -noprompt
- cd ..\..\..\bin
- echo Done.
- goto :eof
- :usage
- echo --------------------------------------------------------------
- echo Usage: %0 SSL_Certificate_PATH
- echo.
- echo e.g.
- echo.
- echo %0 C:\mailserver_ssl_keys\certificate.crt
- echo --------------------------------------------------------------
- exit /B 1
|