Cause research: Snipping Tool and other components in Windows 11 no longer usable due to expired certificate

Today went through many Media that some apps and components in the recently released Windows 11 no longer work since 01.11.2021 and that the cause for this is a certificate that expired on 31.10.2021. In the meantime Microsoft has pointed out in a blog post and also published a patch for some affected components .

Unfortunately, none of the available sources provided detailed information about what exactly the problem was. So let's get to the bottom of this ourselves.

Continue reading "Cause research: Snipping Tool and other components in Windows 11 no longer usable due to expired certificate"

Manual assignment of a Remote Desktop certificate fails with error message "Invalid parameter"

Assume the following scenario:

Set-WMIInstance : Invalid parameter
 At line:1 char:1
 Set-WMIInstance -path $TerminalServicesConfig.__path -argument @{SSLC …
 ~~~~~~~~~~~~~~~~~ CategoryInfo          : InvalidOperation: (:) [Set-WmiInstance], ManagementException
 FullyQualifiedErrorId : SetWMIManagementException,Microsoft.PowerShell.Commands.SetWmiInstance 

Continue reading "Manual assignment of a Remote Desktop certificate fails with error message "Invalid parameter""

Code signing of Appx packages via SignTool.exe fails with error code 0x8007000b (ERROR_BAD_FORMAT)

Assume the following scenario:

  • An Appx package is to be signed.
  • For this purpose, SignTool.exe is used.
  • The code signing certificate used was recently renewed.
  • The signing process with the new code signing certificate fails with the following error message:
"Error: SignerSign() failed." (-2147024885/0x8007000b) 

Continue reading "Code signing of Appx packages via SignTool.exe fails with error code 0x8007000b (ERROR_BAD_FORMAT)"

Issue certificates with shortened validity period

Sometimes it is necessary to issue certificates with a shorter validity period than configured in the certificate template. Therefore, you may not want to reconfigure the certificate template right away or create another certificate template.

Continue reading "Issue certificates with shortened validity period"

Root CA certificates are imported on domain members into the certificate store for intermediate certification authorities

Some will have noticed that the certificate store for intermediate CAs usually also contains certificates for root CAs.

As a rule, this behavior is not critical. In certain cases however, this can also cause problems with applications.

Continue reading "Root CA certificates are imported on domain members into the certificate store for intermediate certification authorities"

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"

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"

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"