Détection de certificats du serveur Apache HTTP (Linux)
Microsoft.ApacheHTTPServer.Certificate.Discovery.Unix (Discovery)
Détecte les certificats SSL des hôtes virtuels
Knowledge Base article:
Element properties:
Object Discovery Details:
Member Modules:
Source Code:
<Discovery ID="Microsoft.ApacheHTTPServer.Certificate.Discovery.Unix" Target="Microsoft.ApacheHTTPServer.VirtualHost.Unix" Enabled="true" Remotable="true">
<Category>Discovery</Category>
<DiscoveryTypes>
<DiscoveryClass TypeID="Microsoft.ApacheHTTPServer.Certificate.Unix"/>
</DiscoveryTypes>
<DataSource ID="DS" TypeID="Unix!Microsoft.Unix.WSMan.TimedEnumerate.Filtered.Equal.DiscoveryData">
<TargetSystem>$Target/Host/Host/Property[Type="Unix!Microsoft.Unix.Computer"]/NetworkName$</TargetSystem>
<Uri>http://schemas.microsoft.com/wbem/wscim/1/cim-schema/2/Apache_HTTPDVirtualHostCertificate?__cimnamespace=root/apache</Uri>
<Filter/>
<SplitItems>true</SplitItems>
<Interval>14400</Interval>
<SyncTime/>
<FilterProperty>/DataItem/WsManData/*[local-name(.)='Apache_HTTPDVirtualHostCertificate']/*[local-name(.)='VirtualHost']</FilterProperty>
<FilterValue>$Target/Property[Type="Microsoft.ApacheHTTPServer.VirtualHost"]/InstanceID$</FilterValue>
<ClassId>$MPElement[Name="Microsoft.ApacheHTTPServer.Certificate.Unix"]$</ClassId>
<InstanceSettings>
<Settings>
<Setting>
<Name>$MPElement[Name="Unix!Microsoft.Unix.Computer"]/PrincipalName$</Name>
<Value>$Target/Host/Host/Property[Type="Unix!Microsoft.Unix.Computer"]/PrincipalName$</Value>
</Setting>
<Setting>
<Name>$MPElement[Name="Microsoft.ApacheHTTPServer.Installation"]/ConfFile$</Name>
<Value>$Target/Host/Property[Type="Microsoft.ApacheHTTPServer.Installation"]/ConfFile$</Value>
</Setting>
<Setting>
<Name>$MPElement[Name="Microsoft.ApacheHTTPServer.VirtualHost"]/InstanceID$</Name>
<Value>$Target/Property[Type="Microsoft.ApacheHTTPServer.VirtualHost"]/InstanceID$</Value>
</Setting>
<Setting>
<Name>$MPElement[Name="System!System.Entity"]/DisplayName$</Name>
<Value>$Data/WsManData/*[local-name(.)='Apache_HTTPDVirtualHostCertificate']/*[local-name(.)='Name']$ </Value>
</Setting>
<Setting>
<Name>$MPElement[Name="Microsoft.ApacheHTTPServer.Certificate"]/Name$</Name>
<Value>$Data/WsManData/*[local-name(.)='Apache_HTTPDVirtualHostCertificate']/*[local-name(.)='Name']$ </Value>
</Setting>
<Setting>
<Name>$MPElement[Name="Microsoft.ApacheHTTPServer.Certificate"]/ExpirationDate$</Name>
<Value>$Data/WsManData/*[local-name(.)='Apache_HTTPDVirtualHostCertificate']/*[local-name(.)='ExpirationDate']$ </Value>
</Setting>
<Setting>
<Name>$MPElement[Name="Microsoft.ApacheHTTPServer.Certificate"]/FileName$</Name>
<Value>$Data/WsManData/*[local-name(.)='Apache_HTTPDVirtualHostCertificate']/*[local-name(.)='FileName']$ </Value>
</Setting>
</Settings>
</InstanceSettings>
</DataSource>
</Discovery>