MOM registering to ETC fails. Invalid Security Token error message.

Document ID : KB000004234
Last Modified Date : 29/03/2018
Show Technical Document Details
Issue:

In Team Center Registration, when trying to "Test Configuration", getting the error message "Configuration test failed. Security token is invalid".

The Enterprise Team Center(ETC)'s IntroscopeEnterpriseManager.log shows:

[ERROR] [btpool0-4] [Manager.AppMap] Internal Server Error happend during controller invocation! 

com.ca.apm.crypto.InvalidConfigurationException: Given final block not properly padded 

at com.ca.apm.crypto.SecureCryptImpl.decrypt(SecureCryptImpl.java:160) 

at com.wily.introscope.appmap.crypto.SecureStoreImpl.fetchDecrypted(SecureStoreImpl.java:211) 

at com.wily.introscope.appmap.crypto.SecureStoreImpl.fetchDecrypted(SecureStoreImpl.java:216) 

at com.wily.introscope.appmap.rest.controllers.TokenController.decryptToken(TokenController.java:250) 

at com.wily.introscope.appmap.rest.controllers.TokenController.getAllTokens(TokenController.java:222) 

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 

at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) 

at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) 

at java.lang.reflect.Method.invoke(Unknown Source)
 

Also,  the Messages link shows

 "Error Retrieving tokens: Status code 500"

Environment:
CA APM 10.3 and above on Linux/Windows.
Cause:

 Selecting "Public API" type when generating a security token in WebView.
"System" type should be used instead.

Resolution:

Make sure to select "System", NOT "Public API" as shown in the picture below when generating a security token.

 

etc_generate_token_in_webview.png