#NEWLINE# def add_store( source , store , saltenv = 'base' ) : #NEWLINE# #INDENT# "\n    Add the given cert into the given Certificate Store\n\n    source\n        The source certficate file this can be in the form\n        salt://path/to/file\n\n    store\n        The certificate store to add the certificate to\n\n    saltenv\n        The salt environment to use this is ignored if the path\n        is local\n\n    CLI Example:\n\n    .. code-block:: bash\n\n        salt '*' certutil.add_store salt://cert.cer TrustedPublisher\n    " #NEWLINE# cert_file = __salt__ [ 'cp.cache_file' ] ( source , saltenv ) #NEWLINE# cmd = 'certutil.exe -addstore {0} {1}' . format ( store , cert_file ) #NEWLINE# return __salt__ [ 'cmd.run' ] ( cmd )