Anaplan Connect - Java Keystore Authentication Failure
Hi Everyone,
I am currently trying to get past the authentication stage of Anaplan connect using a batch file with java keystore. However I am unable to get past the authentication stage, below is the screenshot of the error:
Was wondering if it was an error on the or my batch file (and not the authentication details)
The sample script (note I tried removing the certificate as mentioned in another post, but it returned the same results):
@Echo off
set KeyStorePath="...jks"
set KeyStorePass="...."
set KeyStoreAlias="...."
set WorkspaceId="...."
set ModelID="..."
set CACertPath= "...crt"
set DumpName=""
set Chunksize=1
set Operation=-debug -service "https://api.anaplan.com" -auth "https://auth.anaplan.com" -workspace %WorkspaceId% -model %ModelId% -chunksize %Chunksize% -file %FileName1% -put %FilePath1% -output %DumpName%
rem *** End of settings - Do not edit below this line ***
setlocal enableextensions enabledelayedexpansion || exit /b 1
cd %~dp0
set Credentials=-certificate %CACertPath% -keystore %KeyStorePath% -keystorepass %KeyStorePass% -keystorealias %KeyStoreAlias%
set Command=.\AnaplanClient.bat %Credentials% -workspace %WorkspaceId% -model %ModelId% %Operation%
@Echo %Command%
cmd /c %Command%
pause
Thanks in advance for your time.
Answers
-
I can't see anything obviously wrong with your batch file - the server just doesn't like your certificate for some reason.
https://help.anaplan.com/23410167-f022-41fb-9f77-93c66e8e409f-Administration:-Security---Certificates has information about the certificate you need to install,
0 -
Hello there!
Can you double check to see if the account associated with the Keystore has access to the model? As a non-SSO WSA?
Also I noticed an issue with your script. I have removed the -certificate %CACertPath% as the script does not require this parameter for Keystore authentication. Let me know if this helps @weemengism
@Echo off
set KeyStorePath="...jks"
set KeyStorePass="...."
set KeyStoreAlias="...."
set WorkspaceId="...."
set ModelID="..."
set CACertPath= "...crt"set DumpName=""
set Chunksize=1
set Operation=-debug -service "https://api.anaplan.com" -auth "https://auth.anaplan.com" -workspace %WorkspaceId% -model %ModelId% -chunksize %Chunksize% -file %FileName1% -put %FilePath1% -output %DumpName%
rem *** End of settings - Do not edit below this line ***
setlocal enableextensions enabledelayedexpansion || exit /b 1
cd %~dp0
set Credentials= -keystore %KeyStorePath% -keystorepass %KeyStorePass% -keystorealias %KeyStoreAlias%
set Command=.\AnaplanClient.bat %Credentials% -workspace %WorkspaceId% -model %ModelId% %Operation%
@Echo %Command%
cmd /c %Command%
pausecc: @ben_speight
1