search cancel

EPAgent plugin returns "HTTP Error Code=500" for web server which uses self-signed SSL certificate.


Article ID: 41838


Updated On:


CA Application Performance Management Agent (APM / Wily / Introscope) INTROSCOPE


When running the EPAgent plugin against an internal web server which has a self-signed SSL certificate one of these messages will be received:

HTTP Error Code=500, Message=Can't connect to ***.***.***.***:443 

HTTP Error Code=500, Message=Can't connect to ***.***.***.***:443 (certificate verify failed)






Release: CEMUGD00200-9.7-Introscope to CA Application-Performance Management-Upgrade Main


SSL/HTTPS clients check the Subject Alternative Name specified in the certificate against the hostname, and report an error if they do not match. This is commonly the case with many automatically generated self-signed certificates, or when using a CNAME to reach the SSL host and the cert isn't generated with Subject Alternative Names.


To prevent the hostname certificate verification check add this line to the file EPAgent/epaplugins/lib/perl/Wily/ at the end of the "Globals" section and just before "Subroutines":


This will disable the hostname verification via the perl LWP (World-Wide Web library for Perl)