Toon posts:

[W98] Batched certificates installeren in IE5.5

Pagina: 1
Acties:

Verwijderd

Topicstarter
Ik moet een applicaties scripten op het werk

dit is een java applicatie via Ie5.5 en heeft 3 security certificates nodig
via een batch kunnen we deze geautomatiseerd laten invoegen
bij NT4 gaat het goed, maar bij W98 geeft ie aan dat het goed gaat, maar het programma geeft aan dat ze niet geinstalleerd zijn. Omdat ik de installatie volledige wil automatiseren is het niet wenselijk als het toch handmatig zou moeten. Ik weet niet wat het bestaande batch bestand precies doet dus ik weet niet wat er fout gaat bij W98.. mijn vraag is dus, gaat het gewoon niet, of moet er een ander batch bestand gebruikt worden bij W98?

het batch bestand:
------------------------------------
@echo off
setlocal

echo Imports certificate in a keystore when using JDK 1.2 with Security Solutions
echo If necessary Change the default path to point out the certificate cifmgmt.cer and secmgmt.cer.
echo If necessary Change the default path to the Java PlugIn keystore cacerts.
echo If necessary Change the default path to the Java PlugIn program keytool.exe
echo ____________________________________________________________________________

set JDK_PATH=C:\Program Files\JavaSoft\JRE\1.2
set CER_PATH=C:\Program Files\JavaSoft\JRE\1.2
set CACERTS_PATH=C:\Program Files\JavaSoft\JRE\1.2

xcopy *.cer C:\Progra~1\JavaSoft\JRE\1.2\lib\security

rem Test that JavaPlugIn is installed on the computer

if not exist "%JDK_PATH%\lib\security\cacerts" goto noplugin

rem Tests if cif certificate alias already exist. In that case delete the old version of cifmgmt
echo Adding cifmgmt.cer

"%JDK_PATH%\bin\keytool.exe" -delete -alias cif -storepass changeit -keystore "%CACERTS_PATH%\lib\security\cacerts" > nul

"%JDK_PATH%\bin\keytool.exe" -import -noprompt -trustcacerts -alias cif -file "%CER_PATH%\lib\security\cifmgmt.cer" -keystore "%CACERTS_PATH%\lib\security\cacerts" -storepass changeit


rem Tests if secmgmt certificate alias already exist. In that case delete the old version of secmgmt
echo Adding secmgmt.cer