This module allows you to install certificates into the windows certificate manager.
salt '*' certutil.add_store salt://cert.cer "TrustedPublisher"
salt.modules.win_certutil.
add_store
(source, store, saltenv='base')¶Add the given cert into the given Certificate Store
The source certificate file this can be in the form salt://path/to/file
The certificate store to add the certificate to
The salt environment to use this is ignored if the path is local
CLI Example:
salt '*' certutil.add_store salt://cert.cer TrustedPublisher
salt.modules.win_certutil.
del_store
(source, store, saltenv='base')¶Delete the given cert into the given Certificate Store
The source certificate file this can be in the form salt://path/to/file
The certificate store to delete the certificate from
The salt environment to use this is ignored if the path is local
CLI Example:
salt '*' certutil.del_store salt://cert.cer TrustedPublisher
salt.modules.win_certutil.
get_cert_serial
(cert_file)¶Get the serial number of a certificate file
The certificate file to find the serial for
CLI Example:
salt '*' certutil.get_cert_serial <certificate name>
salt.modules.win_certutil.
get_stored_cert_serials
(store)¶Get all of the certificate serials in the specified store
The store to get all the certificate serials from
CLI Example:
salt '*' certutil.get_stored_cert_serials <store>
Generated on June 18, 2020 at 04:09:58 UTC.
You are viewing docs for the latest stable release, 3001. Switch to docs for the previous stable release, 3000.3, or to a recent doc build from the master branch.
© 2020 SaltStack. All Rights Reserved, SaltStack Inc. | Privacy Policy