{"id":892,"date":"2017-02-22T11:34:15","date_gmt":"2017-02-22T11:34:15","guid":{"rendered":"https:\/\/www.thesslstore.com\/knowledgebase\/?post_type=ht_kb&#038;p=892"},"modified":"2024-07-23T17:54:56","modified_gmt":"2024-07-23T17:54:56","slug":"sign-code-microsoft-signtool","status":"publish","type":"ht_kb","link":"https:\/\/www.thesslstore.com\/knowledgebase\/code-signing-sign-code\/sign-code-microsoft-signtool\/","title":{"rendered":"How to Sign Code with Microsoft SignTool"},"content":{"rendered":"<h2>Microsoft SignTool Guide<\/h2>\n<p>A Code Signing Certificate can be used to digitally sign code or content developed by Window Programs. After you received your certificate and installed it on your secure hardware device, follow the instructions below to guide you through the signing process on a Windows Vista machine running version Windows SDK 7.0 or higher. If you&#8217;re running version Windows SDK 6.0 or lower, reference our <a href=\"\/knowledgebase\/code-signing-sign-code\/sign-code-microsoft-authenticode\/\">Microsoft Authenticode Installation Instructions<\/a> to utilize the GUI interface.<\/p>\n<h3>1. Click Start<\/h3>\n<p>Click <strong>Start <\/strong>menu<\/p>\n<h3>2. Run cmd.exe<\/h3>\n<p>Run <strong>cmd.exe<\/strong><\/p>\n<h3>3.\u00a0Use the appropriate command below<\/h3>\n<ol>\n<li>For <strong>DigiCert <\/strong>certificates, run this command:\n<pre>SignTool sign \/f <em>\"path to your PFX file\"<\/em> \/p <em>\"your PFX file password\"<\/em> \/tr http:\/\/timestamp.digicert.com  \/td <em>\"path to the exe file you want to  sign\"<\/em><\/pre>\n<\/li>\n<li>For <strong>Comodo and Sectigo <\/strong>certificates, run this command:\n<pre>SignTool sign \/f <em>\"path to your PFX file\"<\/em> \/p <em>\"your PFX file password\"<\/em> \/tr http:\/\/timestamp.sectigo.com  \/td <em>\"path to the exe file you want to <\/em> sign\"\n<\/pre>\n<\/li>\n<\/ol>\n<p>Congratulations! Your .exe file has been successfully signed.<\/p>\n<p>We highly recommend you verify your signature by running the command: signtool verify \/pa \/v &#8220;path to the exe file you signed&#8221;. If you did not use the timestamping feature, we highly recommend you read our <a href=\"\/knowledgebase\/code-signing-time-stamping\/time-stamping-matters\/\">article on the importance of timestamping<\/a> any code to ensure your signature remains valid after certificate expiration.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Microsoft SignTool Guide A Code Signing Certificate can be used to digitally sign code or content developed by Window Programs. After you received your certificate and installed it on your secure hardware device, follow the instructions below to guide you through the signing process on a Windows Vista machine running&#8230;<\/p>\n","protected":false},"author":1,"comment_status":"closed","ping_status":"closed","template":"","format":"standard","meta":{"inline_featured_image":false,"footnotes":""},"ht-kb-category":[29],"ht-kb-tag":[],"class_list":["post-892","ht_kb","type-ht_kb","status-publish","format-standard","hentry","ht_kb_category-code-signing-sign-code"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.3 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How to Sign Code with Microsoft Signcode or SignTool - The SSL Store\u2122<\/title>\n<meta name=\"description\" content=\"A complete step-by-step guide on how to us Command Line Interface to digitally sign code using Microsoft&#039;s SignTool or Signcode applications.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.thesslstore.com\/knowledgebase\/code-signing-sign-code\/sign-code-microsoft-signtool\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Sign Code with Microsoft Signcode or SignTool - The SSL Store\u2122\" \/>\n<meta property=\"og:description\" content=\"A complete step-by-step guide on how to us Command Line Interface to digitally sign code using Microsoft&#039;s SignTool or Signcode applications.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.thesslstore.com\/knowledgebase\/code-signing-sign-code\/sign-code-microsoft-signtool\/\" \/>\n<meta property=\"og:site_name\" content=\"Knowledge Base\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/thesslstoredotcom\" \/>\n<meta property=\"article:modified_time\" content=\"2024-07-23T17:54:56+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.thesslstore.com\/knowledgebase\/wp-content\/uploads\/2017\/04\/thesslstore.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"300\" \/>\n\t<meta property=\"og:image:height\" content=\"300\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:title\" content=\"How to Sign Code with Microsoft Signcode or SignTool - The SSL Store\u2122\" \/>\n<meta name=\"twitter:description\" content=\"A complete step-by-step guide on how to us Command Line Interface to digitally sign code using Microsoft&#039;s SignTool or Signcode applications.\" \/>\n<meta name=\"twitter:image\" content=\"https:\/\/www.thesslstore.com\/knowledgebase\/wp-content\/uploads\/2017\/04\/thesslstore.jpg\" \/>\n<meta name=\"twitter:site\" content=\"@thesslstore\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"1 minute\" \/>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Sign Code with Microsoft Signcode or SignTool - The SSL Store\u2122","description":"A complete step-by-step guide on how to us Command Line Interface to digitally sign code using Microsoft's SignTool or Signcode applications.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.thesslstore.com\/knowledgebase\/code-signing-sign-code\/sign-code-microsoft-signtool\/","og_locale":"en_US","og_type":"article","og_title":"How to Sign Code with Microsoft Signcode or SignTool - The SSL Store\u2122","og_description":"A complete step-by-step guide on how to us Command Line Interface to digitally sign code using Microsoft's SignTool or Signcode applications.","og_url":"https:\/\/www.thesslstore.com\/knowledgebase\/code-signing-sign-code\/sign-code-microsoft-signtool\/","og_site_name":"Knowledge Base","article_publisher":"https:\/\/www.facebook.com\/thesslstoredotcom","article_modified_time":"2024-07-23T17:54:56+00:00","og_image":[{"width":300,"height":300,"url":"https:\/\/www.thesslstore.com\/knowledgebase\/wp-content\/uploads\/2017\/04\/thesslstore.jpg","type":"image\/jpeg"}],"twitter_card":"summary_large_image","twitter_title":"How to Sign Code with Microsoft Signcode or SignTool - The SSL Store\u2122","twitter_description":"A complete step-by-step guide on how to us Command Line Interface to digitally sign code using Microsoft's SignTool or Signcode applications.","twitter_image":"https:\/\/www.thesslstore.com\/knowledgebase\/wp-content\/uploads\/2017\/04\/thesslstore.jpg","twitter_site":"@thesslstore","twitter_misc":{"Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.thesslstore.com\/knowledgebase\/code-signing-sign-code\/sign-code-microsoft-signtool\/","url":"https:\/\/www.thesslstore.com\/knowledgebase\/code-signing-sign-code\/sign-code-microsoft-signtool\/","name":"How to Sign Code with Microsoft Signcode or SignTool - The SSL Store\u2122","isPartOf":{"@id":"https:\/\/www.thesslstore.com\/knowledgebase\/#website"},"datePublished":"2017-02-22T11:34:15+00:00","dateModified":"2024-07-23T17:54:56+00:00","description":"A complete step-by-step guide on how to us Command Line Interface to digitally sign code using Microsoft's SignTool or Signcode applications.","breadcrumb":{"@id":"https:\/\/www.thesslstore.com\/knowledgebase\/code-signing-sign-code\/sign-code-microsoft-signtool\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.thesslstore.com\/knowledgebase\/code-signing-sign-code\/sign-code-microsoft-signtool\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.thesslstore.com\/knowledgebase\/code-signing-sign-code\/sign-code-microsoft-signtool\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.thesslstore.com\/knowledgebase\/"},{"@type":"ListItem","position":2,"name":"How to Sign Code with Microsoft SignTool"}]},{"@type":"WebSite","@id":"https:\/\/www.thesslstore.com\/knowledgebase\/#website","url":"https:\/\/www.thesslstore.com\/knowledgebase\/","name":"Knowledge Base","description":"TheSSLstore","publisher":{"@id":"https:\/\/www.thesslstore.com\/knowledgebase\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.thesslstore.com\/knowledgebase\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.thesslstore.com\/knowledgebase\/#organization","name":"The SSL Store\u2122","url":"https:\/\/www.thesslstore.com\/knowledgebase\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.thesslstore.com\/knowledgebase\/#\/schema\/logo\/image\/","url":"https:\/\/www.thesslstore.com\/knowledgebase\/wp-content\/uploads\/2017\/04\/thesslstore.jpg","contentUrl":"https:\/\/www.thesslstore.com\/knowledgebase\/wp-content\/uploads\/2017\/04\/thesslstore.jpg","width":300,"height":300,"caption":"The SSL Store\u2122"},"image":{"@id":"https:\/\/www.thesslstore.com\/knowledgebase\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/thesslstoredotcom","https:\/\/x.com\/thesslstore","https:\/\/www.linkedin.com\/company\/the-ssl-store","https:\/\/www.youtube.com\/user\/thesslstore"]}]}},"_links":{"self":[{"href":"https:\/\/www.thesslstore.com\/knowledgebase\/wp-json\/wp\/v2\/ht-kb\/892","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.thesslstore.com\/knowledgebase\/wp-json\/wp\/v2\/ht-kb"}],"about":[{"href":"https:\/\/www.thesslstore.com\/knowledgebase\/wp-json\/wp\/v2\/types\/ht_kb"}],"author":[{"embeddable":true,"href":"https:\/\/www.thesslstore.com\/knowledgebase\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.thesslstore.com\/knowledgebase\/wp-json\/wp\/v2\/comments?post=892"}],"version-history":[{"count":0,"href":"https:\/\/www.thesslstore.com\/knowledgebase\/wp-json\/wp\/v2\/ht-kb\/892\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.thesslstore.com\/knowledgebase\/wp-json\/wp\/v2\/media?parent=892"}],"wp:term":[{"taxonomy":"ht_kb_category","embeddable":true,"href":"https:\/\/www.thesslstore.com\/knowledgebase\/wp-json\/wp\/v2\/ht-kb-category?post=892"},{"taxonomy":"ht_kb_tag","embeddable":true,"href":"https:\/\/www.thesslstore.com\/knowledgebase\/wp-json\/wp\/v2\/ht-kb-tag?post=892"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}