PKI Blog

Establish a mapping from a user certificate to the associated computer

Assume the following scenario:

  • A user's computer is stolen or infected with malware.
  • The integrity of certificates located on the computer can no longer be guaranteed.
  • The certificates of the user(s) that were requested on this computer must be revoked.
  • However, one would like to avoid revoking all certificates of a user.
  • Thus, a connection must be established between the user's certificates and the computer on which they were requested.

If the certificates were requested via autoenrollment , we can take advantage of the fact that a corresponding attribute was part of the original certificate request, and that the certificate request is stored in the certification authority database along with the certificate.

Continue reading "Establish a mapping from a user certificate to the associated computer"

No remote desktop logon possible from outside the Active Directory forest

Assume the following scenario:

  • You want to establish a remote desktop connection.
  • The client computer from which the connection is made is not a member of the same Active Directory forest as the target computer.
  • The connection fails with the following error message:
A user account restriction (for example, a time-of-day restriction) is preventing you from logging on. For assistance, contact your system administrator or technical support.

Continue reading "No remote desktop logon possible from outside the Active Directory forest"

Logon to the Network Device Enrollment Service (NDES) administration web page fails with HTTP error code 401 "Unauthorized: Access is denied due to invalid credentials."

Assume the following scenario:

  • An NDES server is configured on the network.
  • When calling the NDES administration web page (certsrv/mscep_admin), logon is not possible.
  • After several unsuccessful logon attempts, the following HTTP error message is returned:
401 - Unauthorized: Access is denied due to invalid credentials.
You do not have permission to view this directory or page using the credentials that you supplied.

Continue reading "Logon to the Network Device Enrollment Service (NDES) administration web page fails with HTTP error code 401 "Unauthorized: Access is denied due to invalid credentials.""

Electronic data exchange with the German Pension Insurance

Recently, together with B-I-T GmbH Informationen und Prozesse from Hanover, I worked on implementing the electronic data exchange with the statutory health insurance funds and the pension insurance from within an application.

Here, a combination of authenticated data transmission of both signed and encrypted messages is used. PKI technologies are used in all these cases.

The message format used is documented here .

Continue reading "Electronic data exchange with the German Pension Insurance"

Restoring certificates from the SMTP Exit Module data

If you restore a certification authority from a backup after a disaster has occurred , you will probably find that certificates were issued in the period between the last backup and the system failure with corresponding data loss.

These certificates are now not stored in the restored certification authority database, so they cannot be restored if needed.

If you are using the SMTP Exit Module, you can at least determine the serial numbers of the certificates from the sent e-mails and revoke them.

Continue reading "Restoring certificates from the SMTP Exit Module data"

Details of the event with ID 1073 of the source Microsoft-Windows-TerminalServices-RemoteConnectionManager

Event Source:Microsoft-Windows-TerminalServices-RemoteConnectionManager
Event ID:1073 (0xC0000431)
Event log:System
Event type:
Event text (English):The msPKI-Cert-Template-OID column for the template-based certificate %1 returned an unknown data type %2.
Event text (German):Die Spalte "msPKI-Cert-Template-OID" für das vorlagenbasierte Zertifikat %1 hat den unbekannten Datentyp %2 zurückgegeben.

Continue reading "Details of the event with ID 1073 of the source Microsoft-Windows-TerminalServices-RemoteConnectionManager"

Details of the event with ID 1072 of the source Microsoft-Windows-TerminalServices-RemoteConnectionManager

Event Source:Microsoft-Windows-TerminalServices-RemoteConnectionManager
Event ID:1072 (0xC0000430)
Event log:System
Event type:
Event text (English):The cn column for the template-based certificate %1 returned an unknown data type %2.
Event text (German):Die Spalte "cn" für das vorlagenbasierte Zertifikat %1 hat den unbekannten Datentyp %2 zurückgegeben.

Continue reading "Details of the event with ID 1072 of the source Microsoft-Windows-TerminalServices-RemoteConnectionManager"

Details of the event with ID 1065 of the source Microsoft-Windows-TerminalServices-RemoteConnectionManager

Event Source:Microsoft-Windows-TerminalServices-RemoteConnectionManager
Event ID:1065 (0xC0000429)
Event log:System
Event type:Error
Event text (English):The template-based certificate that is being used by the RD Session Host server for Transport Layer Security (TLS) 1.0\Secure Sockets Layer (SSL) authentication and encryption has expired and cannot be replaced by the RD Session Host server. The following error occurred: %1.
Event text (German):Das vorlagenbasierte Zertifikat, das vom Remotedesktop-Sitzungshostserver für Authentifizierung und Verschlüsselung mithilfe von Transport Layer Security (TLS) 1.0\Secure Sockets Layer (SSL) verwendet wird, ist abgelaufen und kann nicht vom Remotedesktop-Sitzungshostserver ersetzt werden. Fehler: %1.

Continue reading "Details of the event with ID 1065 of the source Microsoft-Windows-TerminalServices-RemoteConnectionManager"

Details of the event with ID 1064 of the source Microsoft-Windows-TerminalServices-RemoteConnectionManager

Event Source:Microsoft-Windows-TerminalServices-RemoteConnectionManager
Event ID:1064 (0xC0000428)
Event log:System
Event type:Error
Event text (English):The RD Session Host server cannot install a new template-based certificate to be used for Transport Layer Security (TLS) 1.0\Secure Sockets Layer (SSL) authentication and encryption. The following error occured: %1.
Event text (German):Der Remotedesktop-Sitzungshostserver kann kein neues vorlagenbasiertes Zertifikat installieren, das für Authentifizierung und Verschlüsselung mithilfe von Transport Layer Security (TLS) 1.0\Secure Sockets Layer (SSL) verwendet werden soll. Fehler: %1.

Continue reading "Details of the event with ID 1064 of the source Microsoft-Windows-TerminalServices-RemoteConnectionManager"

Details of the event with ID 1063 of the source Microsoft-Windows-TerminalServices-RemoteConnectionManager

Event Source:Microsoft-Windows-TerminalServices-RemoteConnectionManager
Event ID:1063 (0xC0000427)
Event log:System
Event type:Information
Event text (English):A new template-based certificate to be used by the RD Session Host server for Transport Layer Security (TLS) 1.0\Secure Sockets Layer (SSL) authentication and encryption has been installed. The name for this certificate is %1. The SHA1 hash of the certificate is provided in the event data.
Event text (German):Es wurde ein neues vorlagenbasierten Zertifikat installiert, das vom Remotedesktop-Sitzungshostserver für die Authentifizierung und Verschlüsselung mithilfe von Transport Layer Security (TLS) 1.0\Secure Sockets Layer (SSL) verwendet werden soll. Der Name dieses Zertifikats lautet "%1". Der SHA1-Hashwert des Zertifikats wird in den Ereignisdaten bereitgestellt.

Continue reading "Details of the event with ID 1063 of the source Microsoft-Windows-TerminalServices-RemoteConnectionManager"

Details of the event with ID 1062 of the source Microsoft-Windows-TerminalServices-RemoteConnectionManager

Event Source:Microsoft-Windows-TerminalServices-RemoteConnectionManager
Event ID:1062 (0xC0000426)
Event log:System
Event type:Error
Event text (English):The RD Session Host server is configured to use a template-based certificate for Transport Layer Security (TLS) 1.0\Secure Sockets Layer (SSL) authentication and encryption, but the subject name on the certificate is invalid. %1 The SHA1 hash of the certificate is in the event data. Therefore, the default certificate will be used by the RD Session Host server for authentication. To resolve this issue, make sure that template used to create this certificate is configured to use DNS name as subject name .
Event text (German):Der Remotedesktop-Sitzungshostserver ist für die Verwendung eines vorlagenbasierten Zertifikats für die Authentifizierung und Verschlüsselung mithilfe von Transport Layer Security (TLS) 1.0\Secure Sockets Layer (SSL) konfiguriert, aber der Antragstellername auf dem Zertifikat ist ungültig. %1 Der SHA1-Hashwert des Zertifikats ist in den Ereignisdaten enthalten. Daher verwendet der Remotedesktop-Sitzungshostserver das Standardzertifikat für die Authentifizierung. Zum Lösen des Problems sollten Sie sicherstellen, dass die zum Erstellen dieses Zertifikats verwendete Vorlage für die Verwendung eines DNS-Namens als Antragstellername konfiguriert ist .

Continue reading "Details of the event with ID 1062 of the source Microsoft-Windows-TerminalServices-RemoteConnectionManager"

Details of the event with ID 1059 of the source Microsoft-Windows-TerminalServices-RemoteConnectionManager

Event Source:Microsoft-Windows-TerminalServices-RemoteConnectionManager
Event ID:1059 (0xC0000423)
Event log:System
Event type:
Event text (English):The RD Session Host Server authentication certificate configuration data was invalid and the service reset it. If the computer was configured to use a specific certificate, please verify it is available in the certificate store and use the administrative tools to select it again.
Event text (German):Die Konfigurationsdaten des Authentifizierungszertifikats für den Remotedesktop-Sitzungshostserver waren ungültig, und der Dienst hat sie zurückgesetzt. Wenn der Computer für die Verwendung eines bestimmten Zertifikats konfiguriert war, überprüfen Sie, ob es im Zertifikatspeicher verfügbar ist, und verwenden Sie die Verwaltungsdienstprogramme, um es erneut auszuwählen.

Continue reading "Details of the event with ID 1059 of the source Microsoft-Windows-TerminalServices-RemoteConnectionManager"

Details of the event with ID 1058 of the source Microsoft-Windows-TerminalServices-RemoteConnectionManager

Event Source:Microsoft-Windows-TerminalServices-RemoteConnectionManager
Event ID:1058 (0xC0000422)
Event log:System
Event type:
Event text (English):The RD Session Host Server has failed to replace the expired self signed certificate used for RD Session Host Server authentication on SSL connections. The relevant status code was %1.
Event text (German):Fehler beim Ersetzen des abgelaufenen selbstsignierten Zertifikats für die Remotedesktop-Sitzungshostserver-Authentifizierung bei SSL-Verbindungen. Zugehöriger Statuscode: %1.

Continue reading "Details of the event with ID 1058 of the source Microsoft-Windows-TerminalServices-RemoteConnectionManager"

Details of the event with ID 1057 of the source Microsoft-Windows-TerminalServices-RemoteConnectionManager

Event Source:Microsoft-Windows-TerminalServices-RemoteConnectionManager
Event ID:1057 (0xC0000421)
Event log:System
Event type:
Event text (English):The RD Session Host Server has failed to create a new self signed certificate to be used for RD Session Host Server authentication on SSL connections. The relevant status code was %1.
Event text (German):Fehler beim Erstellen eines neuen selbstsignierten Zertifikats, das für die Remotedesktop-Sitzungshostserver-Authentifizierung bei SSL-Verbindungen verwendet werden soll. Zugehöriger Statuscode: %1.

Continue reading "Details of the event with ID 1057 of the source Microsoft-Windows-TerminalServices-RemoteConnectionManager"