Hi
my AD CS server wont start, certutil reports everything is fine with my CS database, the errrors I see i eventlog when trying to start is:
Active Directory Certificate Services did not start: Unable to initialize the database connection for BPLABSUBCA2. Certificate service has been suspended for a database restore operation. 0x80094006 (-2146877434 CERTSRV_E_SERVER_SUSPENDED).
The Active Directory Certificate Services service terminated with the following service-specific error:
Certificate service has been suspended for a database restore operation.
My CS database is all fine:
PS C:\Windows\system32> .\esentutl.exe /mh "C:\Windows\System32\CertLog\BPLABSUBCA2.edb" Extensible Storage Engine Utilities for Microsoft(R) Windows(R) Version 6.3 Copyright (C) Microsoft Corporation. All Rights Reserved. Initiating FILE DUMP mode... Database: C:\Windows\System32\CertLog\BPLABSUBCA2.edb DATABASE HEADER: Checksum Information: Expected Checksum: 0x695f6ec2 Actual Checksum: 0x695f6ec2 Fields: File Type: Database Checksum: 0x695f6ec2 Format ulMagic: 0x89abcdef Engine ulMagic: 0x89abcdef Format ulVersion: 0x620,20 Engine ulVersion: 0x620,20 Created ulVersion: 0x620,20 DB Signature: Create time:04/13/2016 09:21:25.180 Rand:2349591162 Computer: cbDbPage: 4096 dbtime: 6431210 (0x6221ea) State: Clean Shutdown Log Required: 0-0 (0x0-0x0) Log Committed: 0-0 (0x0-0x0) Log Recovering: 0 (0x0) GenMax Creation: 00/00/1900 00:00:00.000 Shadowed: Yes Last Objid: 1808 Scrub Dbtime: 0 (0x0) Scrub Date: 00/00/1900 00:00:00 Repair Count: 0 Repair Date: 00/00/1900 00:00:00.000 Old Repair Count: 0 Last Consistent: (0x5AB,C0,180) 03/09/2020 13:38:47.255 Last Attach: (0x581,AD,268) 01/31/2020 15:15:05.526 Last Detach: (0x5AB,C0,180) 03/09/2020 13:38:47.255 Last ReAttach: (0x0,0,0) 00/00/1900 00:00:00.000 Dbid: 1 Log Signature: Create time:04/13/2016 09:21:25.091 Rand:4293169251 Computer: OS Version: (6.3.9600 SP 0 NLS ffffffff.ffffffff) Previous Full Backup: Log Gen: 1409-1424 (0x581-0x590) Mark: (0x590,1,F2) Mark: 02/12/2020 15:10:58.222 Previous Incremental Backup: Log Gen: 0-0 (0x0-0x0) Mark: (0x0,0,0) Mark: 00/00/1900 00:00:00.000 Previous Copy Backup: Log Gen: 0-0 (0x0-0x0) Mark: (0x0,0,0) Mark: 00/00/1900 00:00:00.000 Previous Differential Backup: Log Gen: 0-0 (0x0-0x0) Mark: (0x0,0,0) Mark: 00/00/1900 00:00:00.000 Current Full Backup: Log Gen: 0-0 (0x0-0x0) Mark: (0x0,0,0) Mark: 00/00/1900 00:00:00.000 Current Shadow copy backup: Log Gen: 0-0 (0x0-0x0) Mark: (0x0,0,0) Mark: 00/00/1900 00:00:00.000 cpgUpgrade55Format: 0 cpgUpgradeFreePages: 0 cpgUpgradeSpaceMapPages: 0 ECC Fix Success Count: none Old ECC Fix Success Count: none ECC Fix Error Count: none Old ECC Fix Error Count: none Bad Checksum Error Count: none Old bad Checksum Error Count: none Last checksum finish Date: 00/00/1900 00:00:00.000 Current checksum start Date: 00/00/1900 00:00:00.000 Current checksum page: 0 Operation completed successfully in 0.46 seconds.When I do a certutil -verifystore, all my certs looks fine, but server is offline:
================ Certificate 2 ================ Serial Number: 490000000756279a81b422ab71000000000007 Issuer: CN=BPLAB01 RootCA, O=bplab01, C=local NotBefore: 13.04.2016 08:04 NotAfter: 13.04.2026 08:14 Subject: CN=BPLABSUBCA2, DC=BPLAB01, DC=local CA Version: V0.0 Certificate Template Name (Certificate Type): SubCA Non-root Certificate Template: SubCA, Subordinate Certification Authority Cert Hash(sha1): c4 79 16 92 a7 63 2a 21 d4 0c 6f 5b f8 98 ce 57 c3 b2 a9 83 No key provider information Provider = Microsoft Software Key Storage Provider Simple container name: BPLABSUBCA2 Unique container name: bf34b1a149b9696b5730822c2f68b218_10170e29-a52c-44cd-b713-a935e2bc1a85 ERROR: missing key association property: CERT_KEY_IDENTIFIER_PROP_ID Signature test passed Revocation check skipped -- server offline Certificate is valid