Related pages:

This page describes how to configure the .NET Agent to connect to the Controller with SSL. 

Requirements

Before you configure the agent to enable SSL, gather this information:

Establish Trust for the Controller's SSL Certificate

The .NET Agent requires that the Common Name (CN) on the Controller certificate matches the DNS name of the Controller. Additionally, certificates for the root CA that signed the Controller's SSL certificate must reside in the Windows Trusted Root Certification Authorities store for the Local Computer.

Certificates Signed by a Publicly Known Certificate Authority

The root certificates for most publicly trusted CA signing authorities, such as DigiCert, Verisign, Thawte, and other commercial CAs, are in the Trusted Root Certification Authorities store by default.

Certificates Signed by an Internal Certificate Authority

If your organization uses internal CA to sign certificates, you may need to obtain the root CA certificate from your internal security management resource. To import the root certificate, see Adding Certificates to the Trusted Root Certification Authorities store for a Local Computer.

This example shows how to use the Certificate snap-in for the Microsoft Management Console to import a certificate for a Trusted Root Certification Authority:

Trusted Root Certification Authorities

If an intermediate CA signed the Controller certificate, you must import the certificate for the intermediate CA in addition to the one for the root CA that signed the intermediate CA certificate. If your Controller is publicly accessible, you can use a certificate checker to identify the certificates required to complete the trust chain.

This example shows the Intermediate Certification Authorities store:

Intermediate Certification Authorities

Certificate Management Tips

Enable SSL for the .NET Agent

You can update the SSL settings for the agent by:

When you enable SSL for the .NET Agent, you automatically enable SSL for the .NET Machine Agent.

Configure SSL Using the  Agent Configuration Utility

  1. Launch the  Agent Configuration utility.
  2. In Controller Configuration, set the Port Number to the SSL port for the Controller.
  3. Click Enable SSL.
  4. Click Next and proceed with the rest of the panes to complete the configuration.
  5. Restart instrumented applications: IIS applications or application pools, Windows services, and standalone applications.

If you use automatic tier configuration, restart IIS. For example, open a command prompt and enter:

iisreset

Upon restart, the agent connects with the Controller via SSL.

Configure SSL Using config.xml

  1. Open the config.xml file as administrator. See Administer the .NET Agent
  2. Update the following SSL settings:
  3. Save your changes.
  4. Restart the AppDynamics.Agent.Coordinator service.
  5. Restart instrumented applications: IIS applications or application pools, Windows services, and standalone applications.

If you use Automatic configuration, restart IIS. For example, open a command prompt and run:

iisreset

Upon restart, the agent connects with the Controller via SSL.

Sample SaaS SSL config.xml Configuration

<?xml version="1.0" encoding="utf-8"?>
<appdynamics-agent xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <controller host="mycompany.saas.appdynamics.com" port="443" ssl="true" enable_tls12="true">
    <application name="MyDotNetApplication" />
  </controller>
...
</appdynamics-agent>

Sample On-Premises SSL config.xml Configuration

<?xml version="1.0" encoding="utf-8"?>
<appdynamics-agent xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <controller host="mycontroller.mycompany.com" port="8181" ssl="true" enable_tls12="true">
    <application name="MyDotNetApplication" />
  </controller>
...
</appdynamics-agent>

Troubleshooting Issues

If you verified all prerequisites and still have communication issues, verify that the default ciphers are enabled in Windows Server.

Check this Registry key:

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Ciphers\

If subkeys exist, your operations team may have disabled certain ciphers.