aktuelle.kurse/old_m239/unterlagen/90 - Tools/CertMgr.msc - Zertifikate verwalten

907 lines
43 KiB
Plaintext
Raw Normal View History

2022-05-15 21:40:59 +02:00
<!DOCTYPE html>
<html class="hasSidebar hasPageActions hasBreadcrumb conceptual has-default-focus theme-light" lang="en-us" dir="ltr" data-css-variable-support="true" data-authenticated="false" data-auth-status-determined="false" data-target="docs" x-ms-format-detection="none">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta property="og:title" content="CertMgr - Windows drivers" />
<meta property="og:type" content="website" />
<meta property="og:url" content="https://docs.microsoft.com/en-us/windows-hardware/drivers/devtest/certmgr" />
<meta property="og:description" content="CertMgr (Certmgr.exe) is a command-line CryptoAPI tool that manages certificates, certificate trust lists (CTLs), and certificate revocation lists (CRLs)." />
<meta property="og:image" content="https://docs.microsoft.com/en-us/media/logos/logo-ms-social.png" />
<meta property="og:image:alt" content="Microsoft Logo" />
<meta name="twitter:card" content="summary" />
<meta name="twitter:site" content="@docsmsft" />
<meta name="color-scheme" content="light dark">
<meta name="APIName" content="CertMgr" />
<meta name="APIType" content="NA" />
<meta name="author" content="DOMARS" />
<meta name="breadcrumb_path" content="/windows-hardware/drivers/breadcrumbs/toc.json" />
<meta name="depot_name" content="Win.drivers" />
<meta name="description" content="CertMgr (Certmgr.exe) is a command-line CryptoAPI tool that manages certificates, certificate trust lists (CTLs), and certificate revocation lists (CRLs)." />
<meta name="document_id" content="a7a93bdf-f177-5ba9-fb11-abc55d8a8136" />
<meta name="document_version_independent_id" content="1a5ce774-545f-0758-892b-5d296944ac05" />
<meta name="gitcommit" content="https://github.com/MicrosoftDocs/windows-driver-docs-pr/blob/026a7a01adcb76633616ad6242cc48065a5d2a4a/windows-driver-docs-pr/devtest/certmgr.md" />
<meta name="keywords" content="CertMgr Driver Development Tools" />
<meta name="locale" content="en-us" />
<meta name="ms.author" content="domars" />
<meta name="ms.date" content="04/20/2017" />
<meta name="ms.prod" content="windows-hardware" />
<meta name="ms.technology" content="devtest" />
<meta name="ms.topic" content="article" />
<meta name="original_content_git_url" content="https://github.com/MicrosoftDocs/windows-driver-docs-pr/blob/live/windows-driver-docs-pr/devtest/certmgr.md" />
<meta name="page_type" content="conceptual" />
<meta name="pdf_url_template" content="https://docs.microsoft.com/pdfstore/en-us/Win.drivers/{branchName}{pdfName}" />
<meta name="recommendations" content="true" />
<meta name="schema" content="Conceptual" />
<meta name="Search.Product" content="eADQiWindows 10XVcnh" />
<meta name="site_name" content="Docs" />
<meta name="toc_rel" content="toc.json" />
<meta name="TopicType" content="apiref" />
<meta name="uhfHeaderId" content="MSDocsHeader-WinHW" />
<meta name="updated_at" content="2021-12-15 01:17 AM" />
<meta name="word_count" content="431" />
<meta name="cmProducts" content="https://authoring-docs-microsoft.poolparty.biz/devrel/bcbcbad5-4208-4783-8035-8481272c98b8" data-source="generated" />
<meta name="scope" content="Drivers" />
<link href="https://docs.microsoft.com/en-us/windows-hardware/drivers/devtest/certmgr" rel="canonical">
<title>CertMgr - Windows drivers | Microsoft Docs</title>
<link rel="stylesheet" href="/_themes/docs.theme/master/en-us/_themes/styles/12508a22.site-ltr.css ">
<script id="msdocs-script">
var msDocs = {
data: {
timeOrigin: Date.now(),
contentLocale: 'en-us',
contentDir: 'ltr',
userLocale: 'en-us',
userDir: 'ltr',
pageTemplate: 'Conceptual',
brand: '',
context: {
},
hasBinaryRating: true,
hasGithubIssues: true,
showFeedbackReport: false,
enableTutorialFeedback: false,
feedbackSystem: 'GitHub',
feedbackGitHubRepo: 'MicrosoftDocs/windows-driver-docs',
feedbackProductUrl: 'https://support.microsoft.com/help/4021566/windows-10-send-feedback-to-microsoft-with-feedback-hub-app',
contentGitUrl: 'https://github.com/MicrosoftDocs/windows-driver-docs/blob/staging/windows-driver-docs-pr/devtest/certmgr.md',
extendBreadcrumb: false,
isEditDisplayable: true,
hideViewSource: false,
hasPageActions: true,
hasBookmark: true,
hasShare: true,
hasRecommendations: true,
contributors: [
{ name: "DOMARS", url: "https://github.com/DOMARS" }
],
},
functions:{}
};
</script>
<script src="https://wcpstatic.microsoft.com/mscc/lib/v2/wcp-consent.js"></script>
<script src="https://js.monitor.azure.com/scripts/c/ms.jsll-3.min.js"></script>
<script src="/_themes/docs.theme/master/en-us/_themes/global/67a45209.deprecation.js"></script>
<script src="/_themes/docs.theme/master/en-us/_themes/scripts/ba24b51.index-docs.js"></script>
</head>
<body lang="en-us" dir="ltr">
<div class="header-holder has-default-focus">
<a href="#main" class="skip-to-main-link has-outline-color-text visually-hidden-until-focused position-fixed has-inner-focus focus-visible top-0 left-0 right-0 padding-xs has-text-centered has-body-background" tabindex="1">Skip to main content</a>
<div hidden id="cookie-consent-holder"></div>
<div id="unsupported-browser" style="
background-color: white;
color: black;
padding: 16px;
border-bottom: 1px solid grey;"
hidden
>
<div style="max-width: 800px; margin: 0 auto;">
<p style="font-size: 24px">This browser is no longer supported.</p>
<p style="font-size: 16px; margin-top: 16px;">Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.</p>
<div style="margin-top: 12px;">
<a href="https://go.microsoft.com/fwlink/p/?LinkID=2092881 "
style="
background-color: #0078d4;
border: 1px solid #0078d4;
color: white;
padding: 6px 12px;
border-radius: 2px;
display: inline-block;
">
Download Microsoft Edge </a>
<a href="https://docs.microsoft.com/en-US/lifecycle/faq/internet-explorer-microsoft-edge"
style="
background-color: white;
padding: 6px 12px;
border: 1px solid #505050;
color: #171717;
border-radius: 2px;
display: inline-block;
">
More info </a>
</div>
</div>
</div>
<!-- liquid-tag banners global -->
<div id="headerAreaHolder" data-bi-name="header">
<header role="banner" itemscope="itemscope" itemtype="http://schema.org/Organization">
<div class="nav-bar">
<div class="nav-bar-brand">
<a itemprop="url" href="https://www.microsoft.com" aria-label="Microsoft" class="nav-bar-button">
<div class="nav-bar-logo has-background-image theme-display is-light" role="presentation" aria-hidden="true" itemprop="logo" itemscope="itemscope"></div>
<div class="nav-bar-logo has-background-image theme-display is-dark is-high-contrast" role="presentation" aria-hidden="true" itemprop="logo" itemscope="itemscope"></div>
</a>
</div>
</div>
<div class="nav-bar border-top is-hidden-mobile"></div>
</header> </div>
<div id="content-header" class="content-header uhf-container has-padding has-default-focus border-bottom-none" data-bi-name="content-header">
<div class="content-header-controls margin-xxs margin-inline-sm-tablet">
<button type="button" class="contents-button button button-sm margin-right-xxs" data-bi-name="contents-expand" aria-haspopup="true" data-contents-button>
<span class="icon"><span class="docon docon-menu" aria-hidden="true"></span></span>
<span class="contents-expand-title">
Table of contents </span>
</button>
<button type="button" class="ap-collapse-behavior ap-expanded button button-sm" data-bi-name="ap-collapse" aria-controls="action-panel">
<span class="icon"><span class="docon docon-exit-mode" aria-hidden="true"></span></span>
<span>Exit focus mode</span>
</button>
</div>
</div>
<div id="disclaimer-holder" class="has-overflow-hidden has-default-focus">
<!-- liquid-tag banners sectional -->
</div>
</div>
<div class="mainContainer uhf-container has-default-focus" data-bi-name="body">
<div class="columns has-large-gaps is-gapless-mobile ">
<div id="left-container" class="left-container is-hidden-mobile column is-one-third-tablet is-one-quarter-desktop">
<nav id="affixed-left-container" class="margin-top-sm-tablet position-fixed display-flex flex-direction-column" role="navigation" aria-label="Primary"></nav>
</div>
<!-- .primary-holder -->
<section class="primary-holder column is-two-thirds-tablet is-three-quarters-desktop">
<!--div.columns -->
<div class="columns is-gapless-mobile has-large-gaps ">
<div id="main-column" class="column is-full is-8-desktop">
<main id="main" role="main" data-bi-name="content" lang="en-us" dir="ltr">
<!-- article-header -->
<div id="article-header" class="background-color-body margin-top-sm-tablet margin-bottom-xs" aria-label="content-header">
<div class="display-flex align-items-center ">
<details id="article-header-breadcrumbs-overflow-popover" class="popover" data-for="article-header-breadcrumbs">
<summary class="button button-clear button-primary button-sm">
<span class="icon">
<span class="docon docon-more"></span>
</span>
</summary>
<div id="article-header-breadcrumbs-overflow" class="popover-content padding-none">
</div>
</details>
<bread-crumbs id="article-header-breadcrumbs" class="overflow-hidden flex-grow-1 margin-right-sm margin-right-md-tablet margin-right-lg-desktop" id="page-breadcrumbs"></bread-crumbs>
<div id="article-header-page-actions" class="opacity-none margin-left-auto display-flex flex-wrap-no-wrap align-items-stretch">
<a
id="lang-link-tablet"
class="button button-primary button-clear button-sm display-none display-inline-flex-tablet"
title="Read in English" data-bi-name="language-toggle"
data-read-in-link
hidden>
<span class="icon margin-none" aria-hidden="true" data-read-in-link-icon>
<span class="docon docon-locale-globe"></span>
</span>
<span class="is-visually-hidden" data-read-in-link-text>Read in English</span>
</a>
<button
type="button"
class="collection button button-clear button-sm button-primary display-none display-inline-flex-tablet"
data-list-type="collection"
data-bi-name="collection"
title="Add to collection">
<span class="icon margin-none" aria-hidden="true">
<span class="docon docon-circle-addition"></span>
</span>
<span class="collection-status is-visually-hidden">Save</span>
</button>
<a data-feedback-section-link
aria-label="Feedback"
href="#feedback"
class="button button-clear button-sm text-decoration-none button-primary display-none display-inline-flex-tablet"
data-bi-name="comments"
title="Send feedback about this page">
<span class="icon margin-none" aria-hidden="true">
<span class="docon docon-comment-lines"></span>
</span>
</a>
<a data-contenteditbtn
class="button button-clear button-sm text-decoration-none button-primary display-none display-inline-flex-tablet"
aria-label="Edit"
title="Edit This Document"
data-bi-name="edit"
href="https://github.com/MicrosoftDocs/windows-driver-docs/blob/staging/windows-driver-docs-pr/devtest/certmgr.md"
data-original_content_git_url="https://github.com/MicrosoftDocs/windows-driver-docs-pr/blob/live/windows-driver-docs-pr/devtest/certmgr.md"
data-original_content_git_url_template="{repo}/blob/{branch}/windows-driver-docs-pr/devtest/certmgr.md"
data-pr_repo=""
data-pr_branch=""
>
<span class="icon margin-none" aria-hidden="true">
<span class="docon docon-edit-outline"></span>
</span>
</a>
<details class="popover popover-right" id="article-header-page-actions-overflow">
<summary class="justify-content-flex-start button button-clear button-sm button-primary" aria-label="More actions">
<span class="icon" aria-hidden="true">
<span class="docon docon-more-vertical"></span>
</span>
</summary>
<div class="popover-content padding-none">
<button
data-page-action-item="overflow-mobile"
type="button"
class="justify-content-flex-start button-block button-sm has-inner-focus button button-clear display-none-tablet"
aria-label="Contents"
data-bi-name="contents-expand"
data-contents-button
data-popover-close>
<span class="icon">
<span class="docon docon-editor-list-bullet" aria-hidden="true"></span>
</span>
<span class="contents-expand-title">Table of contents</span>
</button>
<a
id="lang-link-overflow"
class="justify-content-flex-start button-sm has-inner-focus button button-clear button-block display-none-tablet"
title="Read in English" data-bi-name="language-toggle"
data-page-action-item="overflow-mobile"
data-check-hidden="true"
data-read-in-link
hidden
>
<span class="icon" aria-hidden="true" data-read-in-link-icon>
<span class="docon docon-locale-globe"></span>
</span>
<span data-read-in-link-text>Read in English</span>
</a>
<button
type="button"
class="collection justify-content-flex-start button button-clear button-sm has-inner-focus button-block display-none-tablet"
data-list-type="collection"
data-bi-name="collection"
title="Add to collection"
data-page-action-item="overflow-mobile"
data-check-hidden="true"
data-popover-close>
<span class="icon" aria-hidden="true">
<span class="docon docon-circle-addition"></span>
</span>
<span class="collection-status">Save</span>
</button>
<a data-feedback-section-link
aria-label="Feedback"
href="#feedback"
class="button button-clear button-block button-sm has-inner-focus justify-content-flex-start text-decoration-none display-none-tablet"
data-bi-name="comments"
title="Send feedback about this page"
data-page-action-item="overflow-mobile">
<span class="icon" aria-hidden="true">
<span class="docon docon-comment-lines"></span>
</span>
<span>
Feedback </span>
</a>
<a data-contenteditbtn
class="button button-clear button-block button-sm has-inner-focus justify-content-flex-start text-decoration-none display-none-tablet"
aria-label="Edit"
title="Edit This Document"
data-bi-name="edit"
href="https://github.com/MicrosoftDocs/windows-driver-docs/blob/staging/windows-driver-docs-pr/devtest/certmgr.md"
data-original_content_git_url="https://github.com/MicrosoftDocs/windows-driver-docs-pr/blob/live/windows-driver-docs-pr/devtest/certmgr.md"
data-original_content_git_url_template="{repo}/blob/{branch}/windows-driver-docs-pr/devtest/certmgr.md"
data-pr_repo=""
data-pr_branch=""
>
<span class="icon" aria-hidden="true">
<span class="docon docon-edit-outline"></span>
</span>
<span>Edit</span>
</a>
<div aria-hidden="true" class="margin-none display-none-tablet border-top" data-page-action-item="overflow-all"></div>
<a class="button button-clear button-sm has-inner-focus button-block text-decoration-none justify-content-flex-start share-twitter" data-bi-name="twitter" data-page-action-item="overflow-all">
<span class="icon" aria-hidden="true">
<span class="docon docon-brand-twitter"></span>
</span>
<span>Twitter</span>
</a>
<a class="button button-clear button-sm has-inner-focus button-block text-decoration-none justify-content-flex-start share-linkedin" data-bi-name="linkedin" data-page-action-item="overflow-all">
<span class="icon" aria-hidden="true">
<span class="docon docon-brand-linkedin"></span>
</span>
<span>LinkedIn</span>
</a>
<a class="button button-clear button-sm button-block has-inner-focus text-decoration-none justify-content-flex-start share-facebook" data-bi-name="facebook" data-page-action-item="overflow-all">
<span class="icon" aria-hidden="true">
<span class="docon docon-brand-facebook"></span>
</span>
<span>Facebook</span>
</a>
<a class="button button-clear button-sm button-block has-inner-focus text-decoration-none justify-content-flex-start share-email" data-bi-name="email" data-page-action-item="overflow-all">
<span class="icon" aria-hidden="true">
<span class="docon docon-mail-message-fill"></span>
</span>
<span>Email</span>
</a>
</div>
</details>
</div>
</div>
</div>
<!-- end article-header -->
<div class="">
<button type="button" class="border contents-button button button-clear button-sm is-hidden-tablet has-inner-focus" aria-label="Contents" data-bi-name="contents-expand" data-contents-button hidden>
<span class="icon">
<span class="docon docon-editor-list-bullet" aria-hidden="true"></span>
</span>
<span class="contents-expand-title">Table of contents</span>
</button>
</div>
<!-- end mobile-contents button -->
<div class="content ">
<h1 id="certmgr">CertMgr</h1>
<div class="display-flex-tablet justify-content-space-between-tablet page-metadata-container">
<ul class="metadata page-metadata" data-bi-name="page info" lang="en-us" dir="ltr">
<li>
Article </li>
<li>
<time class="is-invisible" data-article-date aria-label="Article review date" datetime="2021-12-15T01:17:00Z" data-article-date-source="git">12/15/2021</time>
</li>
<li class="readingTime">2 minutes to read</li>
<li class="contributors-holder">
<button aria-label="View all contributors" class="contributors-button link-button" data-bi-name="contributors" title="View all contributors">
1 contributor </button>
</li>
</ul>
<div class="dropdown display-flex" data-hide-on-archived>
<button class="dropdown-trigger thumb-rating like link-button padding-xxs padding-right-none" data-binary-rating-response="rating-yes" title="This article is helpful" type="button" data-bi-name="rating-yes" data-bi-sat="1" aria-controls="is-this-helpful" aria-expanded="false" >
<span aria-hidden="true" class="icon docon docon-like"></span>
</button>
<button class="dropdown-trigger thumb-rating dislike link-button padding-xxs padding-right-none" data-binary-rating-response="rating-no" title="This article is not helpful" type="button" data-bi-name="rating-no" data-bi-sat="0" aria-controls="is-this-helpful" aria-expanded="false" >
<span aria-hidden="true" class="icon docon docon-dislike"></span>
</button>
<div class="dropdown-menu border-radius" id="is-this-helpful" role="menu">
<div class="padding-xs" data-bi-name="rating" data-binary-rating-container>
<div class="binary-rating has-text-wrap" data-binary-rating-hide-on-submit>
<form class="feedback-verbatim-form width-250-tablet" data-feedback-verbatim-form id="main-page-rating-container">
<div class="binary-rating-buttons">
<h3 id="binary-rating-heading" class="font-weight-semibold margin-top-none margin-bottom-xs font-size-h5 has-caret">Is this page helpful?</h3>
<div class="buttons">
<button class="thumb-rating like margin-right-xxs button button-clear button-sm"
data-binary-rating-response="rating-yes"
title="Yes"
type="button"
data-bi-name="rating-yes"
data-bi-sat="1">
<span aria-hidden="true" class="icon docon docon-like"></span>
<span>Yes</span>
</button>
<button class="thumb-rating dislike button button-clear button-sm"
data-binary-rating-response="rating-no"
title="No"
data-bi-name="rating-no"
type="button"
data-bi-sat="0">
<span aria-hidden="true" class="icon docon docon-dislike"></span>
<span>No</span>
</button>
</div>
</div>
<div id="binary-verbatim-container" class="font-size-xs margin-top-xs">
<div class="verbatim-textarea">
<label for="binary-rating-textarea" class="visually-hidden">
Any additional feedback? </label>
<textarea
id="binary-rating-textarea"
data-binary-rating-text rows="4"
maxlength="999"
placeholder="Any additional feedback?"
class="textarea has-inner-focus"></textarea>
</div>
<p class="has-line-height-reset">Feedback will be sent to Microsoft: By pressing the submit button, your feedback will be used to improve Microsoft products and services. <a href="https://privacy.microsoft.com/en-us/privacystatement">Privacy policy.</a></p>
<div class="buttons buttons-right margin-top-xs margin-right-xxs">
<button class="submit-rating button button-primary button-filled button-sm" data-bi-name="rating-verbatim" data-binary-rating-submit type="submit" disabled>Submit</button>
</div>
</div>
</form>
</div>
<p
data-binary-rating-onsubmit-message="main-page-rating-container"
tabindex="-1"
class="margin-none inner-focus"
hidden>
Thank you. </p>
</div>
</div>
</div>
</div>
<nav id="center-doc-outline" class="doc-outline is-hidden-desktop" data-bi-name="intopic toc" role="navigation" aria-label="Article Outline">
<h3>In this article</h3>
</nav>
<!-- <content> -->
<p>CertMgr (Certmgr.exe) is a command-line <a href="/en-us/windows/win32/seccrypto/cryptography-portal" data-linktype="absolute-path">CryptoAPI</a> tool that manages certificates, certificate trust lists (CTLs), and certificate revocation lists (CRLs).</p>
<p>CertMgr supports a large number of switches, but this section describes only those that are relevant to managing <a href="../install/makecert-test-certificate" data-linktype="relative-path">test certificates</a> within a certificate store.</p>
<pre><code> CertMgr [/add|/del|/put] [Switches] [/s [/r RegistryLocation ] ] SourceName [/s [/r RegistryLocation] ] [DestinationName]
</code></pre>
<h3 id="partial-list-of-operations-switches-and-arguments"><span id="partial_list_of_operations__switches__and_arguments"></span><span id="PARTIAL_LIST_OF_OPERATIONS__SWITCHES__AND_ARGUMENTS"></span>Partial list of operations, switches, and arguments</h3>
<h3 id="operations"><span id="operations"></span><span id="OPERATIONS"></span>Operations</h3>
<p><span id="add"></span><span id="ADD"></span><strong>add</strong><br/>
Configures CertMgr to add certificates, CTLs, or CRLs from the file specified by <em>SourceName</em> to the certificate store specified by <em>DestinationName</em>.</p>
<p><span id="del"></span><span id="DEL"></span><strong>del</strong><br/>
Configures CertMgr to delete certificates, CTLs, or CRLs in the certificate store specified by <em>SourceName</em> from the certificate store specified by <em>DestinationName</em>. If <em>DestinationName</em> is not specified, <em>SourceName</em> will also serve as the destination store and will be modified.</p>
<p><span id="put"></span><span id="PUT"></span><strong>put</strong><br/>
Configures CertMgr to save certificates, CTLs, or CRLs from the certificate store specified by <em>SourceName</em> to a file specified by <em>DestinationName</em>.</p>
<p><span id="none"></span><span id="NONE"></span>none<br/>
If no command is specified, CertMgr displays all the certificates, CTLs, or CRLs in the certificate store or file specified by <em>SourceName</em>.</p>
<h3 id="switches-and-arguments"><span id="switches_and_arguments"></span><span id="SWITCHES_AND_ARGUMENTS"></span>Switches and Arguments</h3>
<p><span id="_c"></span><span id="_C"></span><strong>/c</strong><br/>
Configures CertMgr to only process certificates from the file specified by <em>SourceName</em>.</p>
<p><span id="_CTL"></span><span id="_ctl"></span><strong>/CTL</strong><br/>
Configures CertMgr to only process CTLs from the file specified by <em>SourceName</em>.</p>
<p><span id="_CRL"></span><span id="_crl"></span><strong>/CRL</strong><br/>
Configures CertMgr to only process CRLs from the file specified by <em>SourceName</em>.</p>
<p><span id="_s"></span><span id="_S"></span><strong>/s</strong><br/>
Configures CertMgr to access the certificate store specified by <em>SourceName</em> or <em>DestinationName</em> as a system store.</p>
<p><span id="_r_registryLocation"></span><span id="_r_registrylocation"></span><span id="_R_REGISTRYLOCATION"></span><strong>/r</strong> <em>registryLocation</em><br/>
Specifies the registry location of the system certificate store. The <strong>/r</strong> switch is only valid when used with the <strong>/s</strong> switch. The <em>registryLocation</em> argument must be either:</p>
<p><span id="currentUser"></span><span id="currentuser"></span><span id="CURRENTUSER"></span><em>currentUser</em><br/>
Specifies the registry location HKEY_CURRENT_USER.</p>
<p><span id="localMachine"></span><span id="localmachine"></span><span id="LOCALMACHINE"></span><em>localMachine</em><br/>
Specifies the registry location HKEY_LOCAL_MACHINE.</p>
<p>If the <strong>/r</strong> switch is not specified along with the <strong>/s</strong> switch, <em>currentUser</em> is the default.</p>
<p>For more information about these certificate stores, see <a href="../install/certificate-stores" data-linktype="relative-path">Certificate Stores</a>.</p>
<p><span id="_v"></span><span id="_V"></span><strong>/v</strong><br/>
Configures CertMgr to display detailed information about certificates, CTLs, and CRLs. If this switch is not specified, CertMgr only displays brief information.</p>
<h3 id="comments"><span id="comments"></span><span id="COMMENTS"></span>Comments</h3>
<p>To use CertMgr, the user must be a member of the Administrators group on the system and run the command from an elevated command prompt.</p>
<p>For a complete list of CertMgr parameters, see the <a href="/en-us/dotnet/framework/tools/certmgr-exe-certificate-manager-tool" data-linktype="absolute-path">Certificate Manager Tool</a> website.</p>
<p>A 32-bit version of the CertMgr tool is located in the <em>bin\i386</em> folder of the WDK. A 64-bit version of the tool is located in the bin\amd64 and bin\ia64 folders of the WDK.</p>
<h3 id="example"><span id="example"></span><span id="EXAMPLE"></span>Example</h3>
<p>The following two CertMgr commands add the certificate in the file <em>OutputFile.cer</em> to the Trusted Root Certification Authorities certificate store and the Trusted Publishers certificate store.</p>
<pre><code>CertMgr /add OutputFile.cer /s /r localMachine root
CertMgr /add OutputFile.cer /s /r localMachine trustedpublisher
</code></pre>
</div>
<!-- </content> -->
</main>
<!-- recommendations section -->
<section id="recommendations-section" data-bi-name="recommendations"></section>
<!-- end recommendations section -->
<section id="right-rail-learning-resources-mobile" class="display-none-desktop margin-top-xxs" data-bi-name="learning-resources-card" hidden></section>
<section id="right-rail-qna-mobile" class="display-none-desktop margin-top-xxs" data-bi-name="qna-link-card" hidden></section>
<!-- feedback section -->
<section class="feedback-section position-relative" data-bi-name="feedback-section">
<h2 id="feedback" class="title is-3 margin-top-sm">Feedback</h2>
<div class="alert choose-feedback-type">
<p id="send-feedback-about">Submit and view feedback for</p>
<div class="choose-feedback-buttons margin-top-xs">
<a class="button has-external-link-indicator feedback-type-product margin-bottom-xxs" aria-label="Send feedback about this product" href="https://support.microsoft.com/help/4021566/windows-10-send-feedback-to-microsoft-with-feedback-hub-app" data-bi-name="product-feedback">
<span>This product</span>
</a>
<a class="button feedback-type-product margin-bottom-xxs github-link" aria-label="Send feedback about this page" data-bi-name="create-issue-on-github">
<span aria-hidden="true" class="docon docon-brand-github padding-right-xxs"></span>
<span>This page</span>
</a>
</div>
</div>
<div class="action-container display-flex justify-content-flex-end margin-block-xxs">
<a class="view-on-github has-external-link-indicator" data-bi-name="view-on-github" href="https://github.com/MicrosoftDocs/windows-driver-docs/issues">
<span aria-hidden="true" class="docon docon-brand-github"></span>
<span>View all page feedback</span>
</a>
</div>
</section>
<!-- end feedback section -->
<!-- feedback report section -->
<!-- end feedback report section -->
<section id="right-rail-events-mobile" class="display-none-desktop margin-top-xs" data-bi-name="events-card" hidden></section>
<div class="border-top is-visible-interactive has-default-focus margin-top-sm ">
<footer id="footer-interactive" data-bi-name="footer" class="footer-layout">
<div class="display-flex is-full-height padding-right-lg-desktop">
<a
data-mscc-ic="false"
class="locale-selector-link button button-clear flex-shrink-0"
href="#"
data-bi-name="select-locale">
<span class="icon" aria-hidden="true">
<span class="docon docon-world"></span>
</span>
<span class="local-selector-link-text"></span></a>
<div class="margin-inline-xs flex-shrink-0">
<div class="dropdown has-caret-up">
<button class="dropdown-trigger button button-clear button-sm has-inner-focus theme-dropdown-trigger"
aria-controls="theme-menu-interactive" aria-expanded="false" title="Theme" data-bi-name="theme">
<span class="icon">
<span class="docon docon-sun" aria-hidden="true"></span>
</span>
<span>Theme</span>
</button>
<div class="dropdown-menu" id="theme-menu-interactive" role="menu">
<ul class="theme-selector padding-xxs">
<li class="theme display-block">
<button class="button button-clear button-sm theme-control button-block justify-content-flex-start"
data-theme-to="light">
<span class="theme-light margin-right-xxs">
<span
class="theme-selector-icon css-variable-support border display-inline-block has-body-background"
aria-hidden="true">
<svg class="svg" xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 22 14">
<rect width="22" height="14" class="has-fill-body-background" />
<rect x="5" y="5" width="12" height="4" class="has-fill-secondary" />
<rect x="5" y="2" width="2" height="1" class="has-fill-secondary" />
<rect x="8" y="2" width="2" height="1" class="has-fill-secondary" />
<rect x="11" y="2" width="3" height="1" class="has-fill-secondary" />
<rect x="1" y="1" width="2" height="2" class="has-fill-secondary" />
<rect x="5" y="10" width="7" height="2" rx="0.3" class="has-fill-primary" />
<rect x="19" y="1" width="2" height="2" rx="1" class="has-fill-secondary" />
</svg>
</span>
</span>
<span role="menuitem">
Light </span>
</button>
</li>
<li class="theme display-block">
<button class="button button-clear button-sm theme-control button-block justify-content-flex-start"
data-theme-to="dark">
<span class="theme-dark margin-right-xxs">
<span
class="border theme-selector-icon css-variable-support display-inline-block has-body-background"
aria-hidden="true">
<svg class="svg" xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 22 14">
<rect width="22" height="14" class="has-fill-body-background" />
<rect x="5" y="5" width="12" height="4" class="has-fill-secondary" />
<rect x="5" y="2" width="2" height="1" class="has-fill-secondary" />
<rect x="8" y="2" width="2" height="1" class="has-fill-secondary" />
<rect x="11" y="2" width="3" height="1" class="has-fill-secondary" />
<rect x="1" y="1" width="2" height="2" class="has-fill-secondary" />
<rect x="5" y="10" width="7" height="2" rx="0.3" class="has-fill-primary" />
<rect x="19" y="1" width="2" height="2" rx="1" class="has-fill-secondary" />
</svg>
</span>
</span>
<span role="menuitem">
Dark </span>
</button>
</li>
<li class="theme display-block">
<button class="button button-clear button-sm theme-control button-block justify-content-flex-start"
data-theme-to="high-contrast">
<span class="theme-high-contrast margin-right-xxs">
<span
class="border theme-selector-icon css-variable-support display-inline-block has-body-background"
aria-hidden="true">
<svg class="svg" xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 22 14">
<rect width="22" height="14" class="has-fill-body-background" />
<rect x="5" y="5" width="12" height="4" class="has-fill-secondary" />
<rect x="5" y="2" width="2" height="1" class="has-fill-secondary" />
<rect x="8" y="2" width="2" height="1" class="has-fill-secondary" />
<rect x="11" y="2" width="3" height="1" class="has-fill-secondary" />
<rect x="1" y="1" width="2" height="2" class="has-fill-secondary" />
<rect x="5" y="10" width="7" height="2" rx="0.3" class="has-fill-primary" />
<rect x="19" y="1" width="2" height="2" rx="1" class="has-fill-secondary" />
</svg>
</span>
</span>
<span role="menuitem">
High contrast </span>
</button>
</li>
</ul>
</div>
</div>
</div>
</div>
<ul class="links" data-bi-name="footerlinks">
<li class="manage-cookies-holder" hidden></li>
<li><a data-mscc-ic="false" href="https://docs.microsoft.com/en-us/previous-versions/" data-bi-name="archivelink">Previous Version Docs</a></li>
<li><a data-mscc-ic="false" href="https://docs.microsoft.com/en-us/teamblog" data-bi-name="bloglink">Blog</a></li>
<li><a data-mscc-ic="false" href="https://docs.microsoft.com/en-us/contribute" data-bi-name="contributorGuide">Contribute</a></li>
<li><a data-mscc-ic="false" href="https://go.microsoft.com/fwlink/?LinkId=521839" data-bi-name="privacy">Privacy &amp; Cookies</a></li>
<li><a data-mscc-ic="false" href="https://docs.microsoft.com/en-us/legal/termsofuse" data-bi-name="termsofuse">Terms of Use</a></li>
<li><a data-mscc-ic="false" href="https://www.microsoft.com/en-us/legal/intellectualproperty/Trademarks/EN-US.aspx" data-bi-name="trademarks">Trademarks</a></li>
<li>&copy; Microsoft 2022</li>
</ul>
</footer>
</div>
</div>
<div
class="font-size-sm right-container column is-4-desktop display-none display-block-desktop"
data-bi-name="pageactions"
role="complementary"
aria-label="Page Actions">
<div id="affixed-right-container" class="margin-top-sm-tablet doc-outline is-vertically-scrollable" data-bi-name="right-column">
<nav id="side-doc-outline" data-bi-name="intopic toc" role="navigation" aria-label="Article Outline">
<h3>In this article</h3>
</nav>
<section id="right-rail-events" class="margin-top-xxs" data-bi-name="events-card" hidden></section>
<section id="right-rail-learning-resources" class="margin-top-xxs" data-bi-name="learning-resources-card" hidden></section>
<section id="right-rail-recommendations" data-bi-name="recommendations" class="margin-top-xxs" hidden></section>
<section id="right-rail-qna" class="margin-top-xxs" data-bi-name="qna-link-card" hidden></section>
</div>
</div>
</div>
<!--end of div.columns -->
</section>
<!--end of .primary-holder -->
<!-- interactive container -->
<aside id="interactive-container" class="interactive-container is-visible-interactive column has-body-background-dark ">
</aside>
<!-- end of interactive container -->
</div>
</div>
<!--end of .mainContainer -->
<section class="border-top has-default-focus is-hidden-interactive margin-top-sm ">
<footer id="footer" data-bi-name="footer" class="footer-layout uhf-container has-padding" role="contentinfo">
<div class="display-flex is-full-height padding-right-lg-desktop">
<a
data-mscc-ic="false"
class="locale-selector-link button button-clear flex-shrink-0"
href="#"
data-bi-name="select-locale">
<span class="icon" aria-hidden="true">
<span class="docon docon-world"></span>
</span>
<span class="local-selector-link-text"></span></a>
<div class="margin-inline-xs flex-shrink-0">
<div class="dropdown has-caret-up">
<button class="dropdown-trigger button button-clear button-sm has-inner-focus theme-dropdown-trigger"
aria-controls="theme-menu" aria-expanded="false" title="Theme" data-bi-name="theme">
<span class="icon">
<span class="docon docon-sun" aria-hidden="true"></span>
</span>
<span>Theme</span>
</button>
<div class="dropdown-menu" id="theme-menu" role="menu">
<ul class="theme-selector padding-xxs">
<li class="theme display-block">
<button class="button button-clear button-sm theme-control button-block justify-content-flex-start"
data-theme-to="light">
<span class="theme-light margin-right-xxs">
<span
class="theme-selector-icon css-variable-support border display-inline-block has-body-background"
aria-hidden="true">
<svg class="svg" xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 22 14">
<rect width="22" height="14" class="has-fill-body-background" />
<rect x="5" y="5" width="12" height="4" class="has-fill-secondary" />
<rect x="5" y="2" width="2" height="1" class="has-fill-secondary" />
<rect x="8" y="2" width="2" height="1" class="has-fill-secondary" />
<rect x="11" y="2" width="3" height="1" class="has-fill-secondary" />
<rect x="1" y="1" width="2" height="2" class="has-fill-secondary" />
<rect x="5" y="10" width="7" height="2" rx="0.3" class="has-fill-primary" />
<rect x="19" y="1" width="2" height="2" rx="1" class="has-fill-secondary" />
</svg>
</span>
</span>
<span role="menuitem">
Light </span>
</button>
</li>
<li class="theme display-block">
<button class="button button-clear button-sm theme-control button-block justify-content-flex-start"
data-theme-to="dark">
<span class="theme-dark margin-right-xxs">
<span
class="border theme-selector-icon css-variable-support display-inline-block has-body-background"
aria-hidden="true">
<svg class="svg" xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 22 14">
<rect width="22" height="14" class="has-fill-body-background" />
<rect x="5" y="5" width="12" height="4" class="has-fill-secondary" />
<rect x="5" y="2" width="2" height="1" class="has-fill-secondary" />
<rect x="8" y="2" width="2" height="1" class="has-fill-secondary" />
<rect x="11" y="2" width="3" height="1" class="has-fill-secondary" />
<rect x="1" y="1" width="2" height="2" class="has-fill-secondary" />
<rect x="5" y="10" width="7" height="2" rx="0.3" class="has-fill-primary" />
<rect x="19" y="1" width="2" height="2" rx="1" class="has-fill-secondary" />
</svg>
</span>
</span>
<span role="menuitem">
Dark </span>
</button>
</li>
<li class="theme display-block">
<button class="button button-clear button-sm theme-control button-block justify-content-flex-start"
data-theme-to="high-contrast">
<span class="theme-high-contrast margin-right-xxs">
<span
class="border theme-selector-icon css-variable-support display-inline-block has-body-background"
aria-hidden="true">
<svg class="svg" xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 22 14">
<rect width="22" height="14" class="has-fill-body-background" />
<rect x="5" y="5" width="12" height="4" class="has-fill-secondary" />
<rect x="5" y="2" width="2" height="1" class="has-fill-secondary" />
<rect x="8" y="2" width="2" height="1" class="has-fill-secondary" />
<rect x="11" y="2" width="3" height="1" class="has-fill-secondary" />
<rect x="1" y="1" width="2" height="2" class="has-fill-secondary" />
<rect x="5" y="10" width="7" height="2" rx="0.3" class="has-fill-primary" />
<rect x="19" y="1" width="2" height="2" rx="1" class="has-fill-secondary" />
</svg>
</span>
</span>
<span role="menuitem">
High contrast </span>
</button>
</li>
</ul>
</div>
</div>
</div>
</div>
<ul class="links" data-bi-name="footerlinks">
<li class="manage-cookies-holder" hidden></li>
<li><a data-mscc-ic="false" href="https://docs.microsoft.com/en-us/previous-versions/" data-bi-name="archivelink">Previous Version Docs</a></li>
<li><a data-mscc-ic="false" href="https://docs.microsoft.com/en-us/teamblog" data-bi-name="bloglink">Blog</a></li>
<li><a data-mscc-ic="false" href="https://docs.microsoft.com/en-us/contribute" data-bi-name="contributorGuide">Contribute</a></li>
<li><a data-mscc-ic="false" href="https://go.microsoft.com/fwlink/?LinkId=521839" data-bi-name="privacy">Privacy &amp; Cookies</a></li>
<li><a data-mscc-ic="false" href="https://docs.microsoft.com/en-us/legal/termsofuse" data-bi-name="termsofuse">Terms of Use</a></li>
<li><a data-mscc-ic="false" href="https://www.microsoft.com/en-us/legal/intellectualproperty/Trademarks/EN-US.aspx" data-bi-name="trademarks">Trademarks</a></li>
<li>&copy; Microsoft 2022</li>
</ul>
</footer>
</section>
<div id="action-panel" role="region" aria-label="Action Panel" class="action-panel has-default-focus" tabindex="-1"></div>
</body>
</html>