Symantec Access Management

  • 1.  CA SiteMinder SPS Login issue

    Posted Nov 02, 2017 06:54 PM

    Hi,

     

    I have installed the CA SiteMinder Secure Proxy Server on sandbox server. Here are the infrastructure details -

     

    Operating System – Microsoft Windows Server 2012 R2 Standard (64 bit)

    CA SPS Installable used – ca-proxy-12.52-sp01-cr02-win32

    Java Version on machine – 1.8.0_92

    CA SiteMinder Server version – R12.52 SP02

     

    Installation & configuration is successful. I didn’t enable Federation Gateway.

     

    However, I am getting issue while accessing Secure Proxy Server’s Admin UI - http://<ServerHostname>:8080/proxyui/ .

    Error – Page can’t be displayed

     

    Even though I turned on the trace logging, I don’t see it creates any trace file in configured location.

     

    -------------------------- nohup.out logs----------------------------------------------------------------------------------------------

    Nov 02, 2017 3:38:21 PM org.apache.catalina.util.LifecycleBase start

    INFO: The start() method was called on component [StandardServer[8005]] after start() had already been called. The second call will be ignored.

    #

    # A fatal error has been detected by the Java Runtime Environment:

    #

    #  EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x731761e0, pid=5888, tid=0x000011ac

    #

    # JRE version: Java(TM) SE Runtime Environment (8.0_92-b14) (build 1.8.0_92-b14)

    # Java VM: Java HotSpot(TM) Client VM (25.92-b14 mixed mode windows-x86 )

    # Problematic frame:

    # V  [jvm.dll+0x1e61e0]

    #

    # Core dump written. Default location: C:\Program Files (x86)\CA\secure-proxy\proxy-engine\hs_err_pid5888.mdmp

    #

    # An error report file with more information is saved as:

    # C:\Program Files (x86)\CA\secure-proxy\proxy-engine\hs_err_pid5888.log

    Compiled method (c1)   22878  470  s          java.lang.Throwable::fillInStackTrace (29 bytes)

     total in heap  [0x00c76548,0x00c768c4] = 892

     relocation     [0x00c76618,0x00c76648] = 48

     main code      [0x00c76650,0x00c76830] = 480

     stub code      [0x00c76830,0x00c7685c] = 44

     metadata       [0x00c7685c,0x00c76860] = 4

     scopes data    [0x00c76860,0x00c76880] = 32

     scopes pcs     [0x00c76880,0x00c768c0] = 64

     dependencies   [0x00c768c0,0x00c768c4] = 4

    #

    # If you would like to submit a bug report, please visit:

    #   http://bugreport.java.com/bugreport/crash.jsp

    #

    Java HotSpot(TM) Client VM warning: ignoring option MaxPermSize=256M; support was removed in 8.0

    Nov 02, 2017 3:38:23 PM org.apache.catalina.core.StandardContext setPath

    WARNING: A context path must either be an empty string or start with a '/' and do not end with a '/'. The path [/] does not meet these criteria and has been changed to []

     

     

    At the same time, CA SiteMinder Policy server log says :-

    [5924/2180][Thu Nov 02 2017 15:38:22][CServer.cpp:2045][ERROR][sm-Tunnel-00010] Bad security handshake attempt. Handshake error: 3152

    [5924/2180][Thu Nov 02 2017 15:38:22][CServer.cpp:2052][ERROR][sm-Tunnel-00030] Handshake error: Failed to receive client hello. Socket error 0

    [5924/2180][Thu Nov 02 2017 15:38:22][CServer.cpp:2217][ERROR][sm-Server-01070] Failed handshake with <IP address of server on which SPS installed>:65324

     

    Questions –

     

    1. Is this issue because of JVM crash as mentioned in first set of logs?
    2. We are not pretty sure on the Encryption key used while installing the SPS. Looking at SMPS, I am afraid that incorrect EncryptionKey might be causing the issue. Is there any way to validate it?
    3. Is there any way to validate the encryption key which we are using for SPS installation/configuration is same as of Encryption key used while installing the SiteMinder Policy server?

     

    I tried almost every configuration to make this work, however no luck.

     

    Can you please help me here?



  • 2.  Re: CA SiteMinder SPS Login issue

    Posted Nov 02, 2017 07:08 PM

    I believe we are talking about the MasterKey and not the encryptionKey.  EncryptionKey and MasterKey serves two different purpose. Here in context of CA AG, it is the MasterKey. This set of configuration is needed only if you need to enable session assurance feature. If you do not intend to use DeviceDNA / Session Assurance feature, you can disable the feature in server.conf (Reference : https://communities.ca.com/message/241898457).

     

    It looks like CA AG crashed.

     

    If CA AG starts successfully, then in the server.log we should have the following lines.

     

    <SPS_HOME>/secure-proxy/proxy-engine/logs/server.log
    [01/Nov/2017:23:33:58-923] [INFO] - proxy: Initializing proxy communication module com.ca.proxy.apache.httpclient.SPSClient
    [01/Nov/2017:23:33:58-924] [INFO] - Forward Service started.
    [01/Nov/2017:23:35:00-493] [INFO] - Successfully loaded SPS60Agent library
    [01/Nov/2017:23:35:03-276] [INFO] - Initialize: [Agent Configuration = /spsadmin_HomeDir/programfiles/CA/secure-proxy/proxy-engine/conf/defaultagent/WebAgent.conf][Single Process Mode = true][retcode = 1][Initialized = true]
    [01/Nov/2017:23:35:03-295] [INFO] - omitheaders_without_smsession: sending all headers
    [01/Nov/2017:23:35:03-300] [INFO] - Custom Error Pages : Custom error pages is disabled
    [01/Nov/2017:23:35:03-301] [INFO] - Custom Error Pages : Using default implementation.
    [01/Nov/2017:23:35:03-312] [INFO] - ProxyValve::startMonitoring: SPS_Data_Collection_and_Monitoring: No metric-reporter has been configured
    [01/Nov/2017:23:35:12-695] [INFO] - Reading standard config org/apache/myfaces/resource/standard-faces-config.xml
    [01/Nov/2017:23:35:12-788] [INFO] - Reading config jar:file:/spsadmin_HomeDir/programfiles/CA/secure-proxy/Tomcat/webapps/proxyui/WEB-INF/lib/cawcom_r5.1.3.jar!/META-INF/faces-config.xml
    [01/Nov/2017:23:35:12-891] [INFO] - Reading config jar:file:/spsadmin_HomeDir/programfiles/CA/secure-proxy/Tomcat/webapps/proxyui/WEB-INF/lib/tomahawk-1.1.5.jar!/META-INF/faces-config.xml
    [01/Nov/2017:23:35:12-945] [INFO] - Reading config /WEB-INF/faces-config.xml
    [01/Nov/2017:23:35:12-996] [INFO] - Starting up MyFaces-package : myfaces-api in version : 1.1.5 from path : file:/spsadmin_HomeDir/programfiles/CA/secure-proxy/Tomcat/webapps/proxyui/WEB-INF/lib/myfaces-api-1.1.5.jar
    [01/Nov/2017:23:35:12-997] [INFO] - Starting up MyFaces-package : myfaces-impl in version : 1.1.5 from path : file:/spsadmin_HomeDir/programfiles/CA/secure-proxy/Tomcat/webapps/proxyui/WEB-INF/lib/myfaces-impl-1.1.5.jar
    [01/Nov/2017:23:35:12-997] [INFO] - MyFaces-package : tomahawk-sandbox not found.
    [01/Nov/2017:23:35:12-997] [INFO] - Starting up MyFaces-package : tomahawk in version : 1.1.5 from path : file:/spsadmin_HomeDir/programfiles/CA/secure-proxy/Tomcat/webapps/proxyui/WEB-INF/lib/tomahawk-1.1.5.jar
    [01/Nov/2017:23:35:14-001] [INFO] - Serialization provider : class org.apache.myfaces.shared_impl.util.serial.DefaultSerialFactory
    [01/Nov/2017:23:35:14-026] [INFO] - ServletContext '/spsadmin_HomeDir/programfiles/CA/secure-proxy/Tomcat/webapps/proxyui/' initialized.
    [01/Nov/2017:23:35:15-053] [INFO] - omitheaders_without_smsession: sending all headers
    [01/Nov/2017:23:35:15-054] [INFO] - Custom Error Pages : Custom error pages is disabled
    [01/Nov/2017:23:35:15-054] [INFO] - Custom Error Pages : Using default implementation.

     

     

    Also check if the processes are running.

     

    ps -eaf | grep secure-proxy
    spsadmin 33412     1  0 Nov01 ?        00:00:17 /spsadmin_HomeDir/programfiles/CA/secure-proxy/httpd/bin/httpd -d /spsadmin_HomeDir/programfiles/CA/secure-proxy/httpd -k start -D SSL
    spsadmin 33413 33412  0 Nov01 ?        00:00:00 /spsadmin_HomeDir/programfiles/CA/secure-proxy/httpd/bin/rotatelogs /spsadmin_HomeDir/programfiles/CA/secure-proxy/httpd/logs/error_log 10M
    spsadmin 33414 33412  0 Nov01 ?        00:00:00 /spsadmin_HomeDir/programfiles/CA/secure-proxy/httpd/bin/rotatelogs /spsadmin_HomeDir/programfiles/CA/secure-proxy/httpd/logs/access_log 10M
    spsadmin 33421 33412  0 Nov01 ?        00:00:00 /spsadmin_HomeDir/programfiles/CA/secure-proxy/httpd/bin/rotatelogs /spsadmin_HomeDir/programfiles/CA/secure-proxy/httpd/logs/mod_jk.log 10M
    spsadmin 33422 33412  0 Nov01 ?        00:00:00 /spsadmin_HomeDir/programfiles/CA/secure-proxy/httpd/bin/httpd -d /spsadmin_HomeDir/programfiles/CA/secure-proxy/httpd -k start -D SSL
    spsadmin 33423 33412  0 Nov01 ?        00:00:00 /spsadmin_HomeDir/programfiles/CA/secure-proxy/httpd/bin/httpd -d /spsadmin_HomeDir/programfiles/CA/secure-proxy/httpd -k start -D SSL
    spsadmin 33424 33412  0 Nov01 ?        00:00:00 /spsadmin_HomeDir/programfiles/CA/secure-proxy/httpd/bin/httpd -d /spsadmin_HomeDir/programfiles/CA/secure-proxy/httpd -k start -D SSL
    spsadmin 33997     1  0 Nov01 ?        00:08:58 /spsadmin_HomeDir/programfiles/java/jdk1.8.0_144/bin/java -ms256m -mx1024m -server -XX:MaxMetaspaceSize=256M -Dcatalina.base=/spsadmin_HomeDir/programfiles/CA/secure-proxy/Tomcat -Dcatalina.home=/spsadmin_HomeDir/programfiles/CA/secure-proxy/Tomcat -Djava.io.tmpdir=/spsadmin_HomeDir/programfiles/CA/secure-proxy/Tomcat/temp -DHTTPClient.log.mask=0 -DHTTPClient.Modules=HTTPClient.RetryModule|org.tigris.noodle.NoodleCookieModule|HTTPClient.DefaultModule -Dlogger.properties=/spsadmin_HomeDir/programfiles/CA/secure-proxy/Tomcat/properties/logger.properties -Djava.endorsed.dirs=/spsadmin_HomeDir/programfiles/CA/secure-proxy/Tomcat/endorsed -Dfile.encoding=UTF8 -DIWACONFIGHOME=/spsadmin_HomeDir/programfiles/CA/secure-proxy/proxy-engine/conf/sts-config/globalconfig -DNETE_WA_ROOT= -DPWD=/spsadmin_HomeDir/programfiles/CA/secure-proxy -classpath /spsadmin_HomeDir/programfiles/CA/secure-proxy/Tomcat/bin/proxybootstrap.jar:/spsadmin_HomeDir/programfiles/CA/secure-proxy/Tomcat/properties:/spsadmin_HomeDir/programfiles/CA/secure-proxy/resources:/spsadmin_HomeDir/programfiles/java/jdk1.8.0_144/lib/tools.jar:/spsadmin_HomeDir/programfiles/CA/secure-proxy/Tomcat/bin/bootstrap.jar:/spsadmin_HomeDir/programfiles/CA/secure-proxy/Tomcat/lib/smi18n.jar:/spsadmin_HomeDir/programfiles/CA/secure-proxy/agentframework/java/cryptoj.jar com.netegrity.proxy.ProxyBootstrap -config /spsadmin_HomeDir/programfiles/CA/secure-proxy/proxy-engine/conf/server.conf
    spsadmin 64152 62827  0 19:15 pts/0    00:00:00 grep --color=auto secure-proxy


  • 3.  Re: CA SiteMinder SPS Login issue
    Best Answer

    Broadcom Employee
    Posted Nov 02, 2017 07:15 PM

    SPS r12.52-sp01- is not certified to run on Java 1.8.x,  you need Java 1.7.x (32 bit).

     

    Look at the section: 2.4 Java Virtual Machine (JVM). 

    https://support.ca.com/phpdocs/7/5262/5262_SiteMinder_12_52_SP1_Platform_Support.pdf 

     

     

     



  • 4.  Re: CA SiteMinder SPS Login issue

    Broadcom Employee
    Posted Nov 02, 2017 07:15 PM

    Hi Some quick notes:

     

    EXCEPTION_ACCESS_VIOLATION (0xc0000005)  is a null pointer in the C code - 

     

     

     

    1) As a first step turn off session assurance. 

    https://communities.ca.com/message/241795010?commentID=241795010#comment-241794594 

    Change enable="yes" to enable="no" for those three items. 

    That was cause of most C++ crashes for SPS in those times. 

     

    2) ca-proxy-12.52-sp01-cr02-win32 - I dont think that earlier version will work with JDK 1.8 (needs 1.7)

    But there is a bigger issues, with java 1.8 support - and that version was tested with 1.7. 

     

    There is longer discussion here, which covers the above session assurance step as well.

    https://communities.ca.com/message/241795010?commentID=241795010#comment-241795010 

     

    Support Matrix says 1.7: 

    https://support.ca.com/phpdocs/7/5262/5262_SiteMinder_12_52_SP1_Platform_Support.pdf 

     

    Secure Proxy Server (SPS) :  Oracle (formerly Sun) 1.7 32-bit

     

    I do remember some incompatibility with some of the jre compiled classes.

     

    Cheers - Mark

    ---
    Mark O'Donohue
    Snr Principal Support Engineer
    CA Technologies Support
    Have a question on CA Security product?
    https://communities.ca.com/community/ca-security/ca-single-sign-

     

     



  • 5.  Re: CA SiteMinder SPS Login issue

    Posted Nov 02, 2017 07:19 PM

    did not see that - JDK  good catch!  Mark / Makesh



  • 6.  Re: CA SiteMinder SPS Login issue

    Posted Nov 03, 2017 01:48 PM

    Thank you all for your help !

     

    Yes, there was a compatibility issue. I should have checked platform matrix before installation.

     

    Anyways, it's working fine after 1.7.80 (32 bit) JDK installation.