rafabu / SCOM-PKICertificateMP

This is for SCOM - System Center Operations Manager: The PKI Certificate Verification MP discovers PKI Certificates and Certificate Revocation Lists inside computers’ local certificate stores. It helps preventing service interruptions caused by invalid certificates by alerting when
GNU Lesser General Public License v3.0
20 stars 11 forks source link

Unable to upgrade from 1.3.0.0 to V1.4.3.0 #29

Open Hudz17 opened 3 years ago

Hudz17 commented 3 years ago

Existing version 1.3.0.0 is imported (not sure if this was the mpb file or done via visual studio as I did not import this pack) I tried to just upgrade the MP using the 1.4.3.0 mpb file. I have 4 errors all stating

Error 1: Found error in 2|SystemCenterCentral.Utilities.Certificates|1.3.0.0|SystemCenterCentral.Utilities.Certificates|| with message: Version 1.4.3.0 of the management pack is not upgrade compatible with older version 1.3.0.0. Compatibility check failed with 4 errors:

error 2 : Schema validation failed. The element 'Configuration' has incomplete content. List of possible elements expected: 'IgnoreSupersededCert'.

Error 3 did not pass schema validation against the new Configuration schema. : Schema validation failed.

Error 4 did not pass schema validation against the new Configuration schema. : Schema validation failed. The element 'Configuration' has incomplete content. List of possible elements expected: 'RevocationFlag, RevocationMode, VerificationFlags, SubjectIncludeRegEx, IssuerIncludeRegEx, SubjectExcludeRegEx, IssuerExcludeRegEx, EnhKeyUseIncludeRegEx, EnhKeyUseExcludeRegEx, TemplateIncludeRegEx, TemplateExcludeRegEx, IgnoreSupersededCert'.

Will this involve deleting the old pack and re-importing. Or could the prevision version have been done using the visual studio method? Thanks

NielsCharmes commented 2 years ago

I have a Similar problem;

> PKI Certificate Validation V3 could not be imported.If any management packs in the Import list are dependent on this management pack, the installation of the dependent management packs will fail.Verification failed with 5 errors:-------------------------------------------------------
Error 1:
Found error in 2|SystemCenterCentral.Utilities.Certificates|1.3.0.0|SystemCenterCentral.Utilities.Certificates|| with message:
Version 1.4.3.0 of the management pack is not upgrade compatible with older version 1.3.0.0. Compatibility check failed with 4 errors:-------------------------------------------------------
Error 2:
Found error in 1|SystemCenterCentral.Utilities.Certificates/e5c80663d573f08c|1.0.0.0|SystemCenterCentral.Utilities.Certificates.ServiceCertificateStoreDiscoveryProvider|| with message:
Generated XML sample:<Configuration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <Frequency>0</Frequency>
  <Debug>true</Debug>
  <ChildMonitorInterval>0</ChildMonitorInterval>
  <ChildDiscoveryInterval>0</ChildDiscoveryInterval>
  <ChildScriptTimeout>0</ChildScriptTimeout>
  <RevocationFlag>EntireChain</RevocationFlag>
  <RevocationMode>Online</RevocationMode>
  <VerificationFlags>IgnoreCertificateAuthorityRevocationUnknown,IgnoreEndRevocationUnknown</VerificationFlags>
  <SubjectIncludeRegEx>^.*$</SubjectIncludeRegEx>
  <IssuerIncludeRegEx>^.*$</IssuerIncludeRegEx>
  <SubjectExcludeRegEx>^$</SubjectExcludeRegEx>
  <IssuerExcludeRegEx>^$</IssuerExcludeRegEx>
  <EnhKeyUseExcludeRegEx>\n</EnhKeyUseExcludeRegEx>
  <TemplateIncludeRegEx>^(|.+)$</TemplateIncludeRegEx>
  <TemplateExcludeRegEx>\n</TemplateExcludeRegEx>
</Configuration> 
did not pass schema validation against the new Configuration schema.
: Schema validation failed.
The element 'Configuration' has incomplete content. List of possible elements expected: 'IgnoreSupersededCert'.-------------------------------------------------------
Error 3:
Found error in 1|SystemCenterCentral.Utilities.Certificates/e5c80663d573f08c|1.0.0.0|SystemCenterCentral.Utilities.Certificates.ServiceCertificateStoreDiscoveryProvider|| with message:
Generated XML sample: 
<Configuration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <Frequency>0</Frequency>
  <Debug>true</Debug>
  <ChildMonitorInterval>0</ChildMonitorInterval>
  <ChildDiscoveryInterval>0</ChildDiscoveryInterval>
  <ChildScriptTimeout>0</ChildScriptTimeout>
  <RevocationFlag>EntireChain</RevocationFlag>
  <RevocationMode>Online</RevocationMode>
  <VerificationFlags>IgnoreCertificateAuthorityRevocationUnknown,IgnoreEndRevocationUnknown</VerificationFlags>
  <SubjectIncludeRegEx>^.*$</SubjectIncludeRegEx>
  <IssuerIncludeRegEx>^.*$</IssuerIncludeRegEx>
  <SubjectExcludeRegEx>^$</SubjectExcludeRegEx>
  <IssuerExcludeRegEx>^$</IssuerExcludeRegEx>
  <EnhKeyUseExcludeRegEx>\n</EnhKeyUseExcludeRegEx>
  <TemplateIncludeRegEx>^(|.+)$</TemplateIncludeRegEx>
  <TemplateExcludeRegEx>\n</TemplateExcludeRegEx>
</Configuration> 
did not pass schema validation against the new Configuration schema.
: Schema validation failed.
The element 'Configuration' has incomplete content. List of possible elements expected: 'RevocationFlag, RevocationMode, VerificationFlags, SubjectIncludeRegEx, IssuerIncludeRegEx, SubjectExcludeRegEx, IssuerExcludeRegEx, EnhKeyUseIncludeRegEx, EnhKeyUseExcludeRegEx, TemplateIncludeRegEx, TemplateExcludeRegEx, IgnoreSupersededCert'.-------------------------------------------------------
Error 4:
Found error in 1|SystemCenterCentral.Utilities.Certificates/e5c80663d573f08c|1.0.0.0|SystemCenterCentral.Utilities.Certificates.CertificateStoreDiscoveryProvider|| with message:
Generated XML sample: 
<Configuration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <ComputerName>ComputerName1</ComputerName>
  <Frequency>0</Frequency>
  <CertStoreID>CertStoreID1</CertStoreID>
  <StoreProvider>System</StoreProvider>
  <StoreType>LocalMachine</StoreType>
  <ComputerPrincipalName>ComputerPrincipalName1</ComputerPrincipalName>
  <CertStoreName>CertStoreName1</CertStoreName>
  <ChildMonitorSync>ChildMonitorSync1</ChildMonitorSync>
  <ChildMonitorInterval>0</ChildMonitorInterval>
  <ChildDiscoveryInterval>0</ChildDiscoveryInterval>
  <ChildScriptTimeout>0</ChildScriptTimeout>
  <RevocationFlag>EntireChain</RevocationFlag>
  <RevocationMode>Online</RevocationMode>
  <VerificationFlags>IgnoreCertificateAuthorityRevocationUnknown,IgnoreEndRevocationUnknown</VerificationFlags>
  <SubjectIncludeRegEx>^.*$</SubjectIncludeRegEx>
  <IssuerIncludeRegEx>^.*$</IssuerIncludeRegEx>
  <SubjectExcludeRegEx>^$</SubjectExcludeRegEx>
  <IssuerExcludeRegEx>^$</IssuerExcludeRegEx>
  <EnhKeyUseExcludeRegEx>\n</EnhKeyUseExcludeRegEx>
  <TemplateIncludeRegEx>^(|.+)$</TemplateIncludeRegEx>
  <TemplateExcludeRegEx>\n</TemplateExcludeRegEx>
  <DisplayName>DisplayName1</DisplayName>
</Configuration> 
did not pass schema validation against the new Configuration schema.
: Schema validation failed.
The element 'Configuration' has invalid child element 'DisplayName'. List of possible elements expected: 'IgnoreSupersededCert'.-------------------------------------------------------
Error 5:
Found error in 1|SystemCenterCentral.Utilities.Certificates/e5c80663d573f08c|1.0.0.0|SystemCenterCentral.Utilities.Certificates.CertificateStoreDiscoveryProvider|| with message:
Generated XML sample: 
<Configuration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <ComputerName>ComputerName1</ComputerName>
  <Frequency>0</Frequency>
  <CertStoreID>CertStoreID1</CertStoreID>
  <StoreProvider>System</StoreProvider>
  <StoreType>LocalMachine</StoreType>
  <ComputerPrincipalName>ComputerPrincipalName1</ComputerPrincipalName>
  <CertStoreName>CertStoreName1</CertStoreName>
  <ChildMonitorSync>ChildMonitorSync1</ChildMonitorSync>
  <ChildMonitorInterval>0</ChildMonitorInterval>
  <ChildDiscoveryInterval>0</ChildDiscoveryInterval>
  <ChildScriptTimeout>0</ChildScriptTimeout>
  <RevocationFlag>EntireChain</RevocationFlag>
  <RevocationMode>Online</RevocationMode>
  <VerificationFlags>IgnoreCertificateAuthorityRevocationUnknown,IgnoreEndRevocationUnknown</VerificationFlags>
  <SubjectIncludeRegEx>^.*$</SubjectIncludeRegEx>
  <IssuerIncludeRegEx>^.*$</IssuerIncludeRegEx>
  <SubjectExcludeRegEx>^$</SubjectExcludeRegEx>
  <IssuerExcludeRegEx>^$</IssuerExcludeRegEx>
  <EnhKeyUseExcludeRegEx>\n</EnhKeyUseExcludeRegEx>
  <TemplateIncludeRegEx>^(|.+)$</TemplateIncludeRegEx>
  <TemplateExcludeRegEx>\n</TemplateExcludeRegEx>
  <DisplayName>DisplayName1</DisplayName>
</Configuration> 
did not pass schema validation against the new Configuration schema.
: Schema validation failed.
The element 'Configuration' has invalid child element 'DisplayName'. List of possible elements expected: 'RevocationFlag, RevocationMode, VerificationFlags, SubjectIncludeRegEx, IssuerIncludeRegEx, SubjectExcludeRegEx, IssuerExcludeRegEx, EnhKeyUseIncludeRegEx, EnhKeyUseExcludeRegEx, TemplateIncludeRegEx, TemplateExcludeRegEx, IgnoreSupersededCert'.-------------------------------------------------------

and for the quickstartoverrides

''' PKI Certificate Validation V3 - Quick Start Overrides could not be imported.If any management packs in the Import list are dependent on this management pack, the installation of the dependent management packs will fail.Verification failed with 1 errors: ------------------------------------------------------- Error 1: Found error in 2|SystemCenterCentral.Utilities.Certificates.QuickStartOverrides|1.4.3.0|SystemCenterCentral.Utilities.Certificates.QuickStartOverrides|| with message: Could not load management pack [ID=SystemCenterCentral.Utilities.Certificates, KeyToken=e5c80663d573f08c, Version=1.4.3.0]. The management pack was not found in the store. : Version mismatch. The management pack ([SystemCenterCentral.Utilities.Certificates, e5c80663d573f08c, 1.3.0.0]) requested from the database was version 1.4.3.0 but the actual version available is 1.3.0.0.------------------------------------------------------- '''