Event ID - 102

Event Id102
SourceMicrosoft-Windows-TerminalServices-Gateway
DescriptionThe Terminal Services Gateway service requires a valid Secure Sockets Layer (SSL) certificate to accept connections. Ensure that you have obtained a valid SSL certificate, and then bind (map) the certificate by using TS Gateway Manager. For more information, see "Obtain a certificate for the TS Gateway server" in the TS Gateway Help. The following error occurred: "%2"
Event InformationAccording to Microsoft :
Cause :
This event is logged when the Terminal Services Gateway service requires a valid Secure Sockets Layer (SSL) certificate to accept connections.
Resolution :
Obtain, install, and configure a certificate that meets TS Gateway server certificate requirements
To resolve this issue, do the following:
  1. Obtain a certificate that meets TS Gateway certificate requirements.
  2. Install the certificate on the TS Gateway server.
  3. Configure the TS Gateway server to use the certificate for SSL.
To perform these procedures, you must have membership in the local Administrators group, or you must have been delegated the appropriate authority.
Install the certificate on the TS Gateway server
To install the certificate on the TS Gateway server:
  1. On the TS Gateway server, open the Certificates snap-in console. If you have not already added the Certificates snap-in console, you can do so by doing the following:
    a.Click Start, click Run, type mmc, and then click OK.
    b.On the File menu, click Add/Remove Snap-in.
    c.In the Add or Remove Snap-ins dialog box, in the Available snap-ins list, click Certificates, and then click Add.
    d.In the Certificates snap-in dialog box, click Computer account, and then click Next.
    e.In the Select Computer dialog box, click Local computer: (the computer this console is running on), and then click Finish.
    f.In the Add or Remove Snap-ins dialog box, click OK.
  2. In the Certificates snap-in console, in the console tree, expand Certificates (Local Computer), and then click Personal.
  3. Right-click the Personal folder, point to All Tasks, and then click Import.
  4. On the Welcome to the Certificate Import Wizard page, click Next.
  5. On the File to Import page, in the File name box, specify the name of the certificate that you want to import, and then click Next.
  6. If the Password page appears, if you specified a password for the private key associated with the certificate earlier, type the password, and then click Next.
  7. On the Certificate Store page, accept the default option, and then click Next.
  8. On the Completing the Certificate Import Wizard page, confirm that the correct certificate has been selected.
  9. Click Finish.
  10. After the certificate import has successfully completed, a message appears confirming that the import was successful. Click OK.
  11. With Certificates selected in the console tree, in the details pane, confirm that the correct certificate appears in the list of certificates on the TS Gateway server. The certificate must be under the Personal store of the local computer.
Configure the TS Gateway server to use the certificate for SSL
After you install an appropriate certificate on the TS Gateway server, you must use TS Gateway Manager to configure the TS Gateway server to use the certificate for SSL. If you do this by using any other method, TS Gateway will not function correctly.
To configure the TS Gateway server to use the certificate for SSL:
  1. Open TS Gateway Manager. To open TS Gateway Manager, click Start, point to Administrative Tools, point to Terminal Services, and then click TS Gateway Manager.
  2. In the TS Gateway Manager console tree, right-click the local TS Gateway server, and then click Properties.
  3. On the SSL Certificate tab, click Select an existing certificate for SSL encryption (recommended), and then click Browse Certificates.
  4. In the Install Certificates dialog box, click the certificate that you want to use, click View certificate, and then review the certificate properties to ensure that it meets TS Gateway requirements.
  5. If the certificate meets the requirements for TS Gateway, click Install. If the certificate does not meet the requirements for TS Gateway, select another certificate that does and install it (if another certificate is available), or do the following:
    a.Obtain another certificate that meets TS Gateway certificate requirements.
    b.Install the certificate on the TS Gateway server, as described earlier in this topic.
    c.Use this procedure to configure the TS Gateway server to use the certificate for SSL.
  6. Click OK to close the Properties dialog box for the TS Gateway server.
  7. If this is the first time that you have configured the TS Gateway server to use an SSL certificate, after you complete this procedure, you can confirm that the procedure was successful by viewing the TS Gateway Server Status area in TS Gateway Manager. Under Configuration Status and Configuration Tasks, the warning stating that a server certificate is not yet installed or selected and the View or modify certificate properties hyperlink are no longer displayed.
Certificate requirements
Certificates for TS Gateway must meet these requirements:
  • The name in the Subject line of the server certificate (certificate name, or CN) must match the DNS name that the client uses to connect to the TS Gateway server, unless you are using wildcard certificates or the SAN attributes of certificates. Multiple CNs are not supported. If your organization issues certificates from an enterprise certification authority (CA), a certificate template must be configured so that the appropriate name is supplied in the certificate request. If your organization issues certificates from a stand-alone CA, you do not need to do this.
  • The certificate is a computer certificate.
  • The intended purpose of the certificate is server authentication. The Extended Key Usage (EKU) is Server Authentication (1.3.6.1.5.5.7.3.1).
  • The certificate has a corresponding private key.
  • The certificate has not expired. We recommend that the certificate be valid one year from the date of installation.
  • A certificate object identifier (also known as OID) of 2.5.29.15 is not required. However, if the certificate that you plan to use contains an OID of 2.5.29.15, you can only use the certificate if at least one of the following key usage values is also set:
    CERT_KEY_ENCIPHERMENT_KEY_USAGE, CERT_KEY_AGREEMENT_KEY_USAGE, and CERT_DATA_ENCIPHERMENT_KEY_USAGE.
  • The certificate must be trusted on clients. That is, the public certificate of the CA that signed the TS Gateway server certificate must be located in the client's Trusted Root Certification Authorities store on the client computer.
Reference LinksEvent ID 102 from Source Microsoft-Windows-TerminalServices-Gateway

Catch threats immediately

We work side-by-side with you to rapidly detect cyberthreats
and thwart attacks before they cause damage.

See what we caught

Did this information help you to resolve the problem?

Yes: My problem was resolved.
No: The information was not helpful / Partially helpful.