当前位置:网站首页>Create a self signed certificate to digitally sign exe files
Create a self signed certificate to digitally sign exe files
2022-07-24 00:53:00 【Yulong_】
It only needs a few simple steps to operate :
1、 Run with administrator privileges PowerShell
2、 Execute the following command
New-SelfSignedCertificate -Type Custom -Subject "CN= full name , O= Corporate name , C=CN, L= Shanghai , S= Shanghai " -KeyUsage DigitalSignature -FriendlyName "MailTool" -CertStoreLocation "Cert:\CurrentUser\My" -TextExtension @("2.5.29.37={text}1.3.6.1.5.5.7.3.3", "2.5.29.19={text}") -NotAfter (Get-Date).AddYears(10)
3、 Execute the following command
$password = ConvertTo-SecureString -String 123456 -Force -AsPlainText
4、 Execute the command to export the certificate , You have to modify the path and other information according to the actual situation
Export-PfxCertificate -cert "Cert:\CurrentUser\My\1F1B377E08BE74E2D739F0FC638370A93DF0D946" -FilePath C:\Users\admin\Desktop\dump\ Signature \test.pfx -Password $password
Let's look at the signature catalogue , The following has been generated test.pfx file

5、 Now we use certificates to Test.exe To sign :
Administrator run CMD Command line , And switch to the signature directory , Execute the following command :
"C:\Program Files (x86)\Windows Kits\10\bin\10.0.17763.0\x64\signtool.exe" sign /f test.pfx /p 123456 /t http://timestamp.digicert.com /v "test.exe"This signtool.exe It's installation Windows I brought it with me when I developed the package , My path , Specific search , The result of executing the command is like this :

Let's look at Test.exe Certificate

Okay , It's all right .
Reference article :
Microsoft official documents :
New-SelfSignedCertificate (pki) | Microsoft Docs
SignTool.exe (Sign Tool) - .NET Framework | Microsoft Docs
Blog :
边栏推荐
- Tutorial on the principle and application of database system (048) -- MySQL query (x): self connection query
- Classic examples of C language - use 4 × The matrix displays all integers from 1 to 16 and calculates the sum of each row, column, and diagonal
- 项目场景:nvidia-smi Unable to datemine the device handle for GPU 0000:01:00.0: Unknow Error
- Reverse linked list drawing demonstration
- High number_ Chapter 2 differential calculus of multivariate functions__ Geometric application of partial derivatives_ Tangent and normal plane of space curve
- Summary of the fourth week of summer vacation
- vim常用命令
- 入职3个月的测试员面临转正,领导:1年工作经验包装成5年,试用期淘汰
- 工作3年的测试员跳槽后工资是原来的2倍,秘诀原来是......
- Bean validation custom container validation chapter ----06
猜你喜欢

Expérience du système réseau: résoudre les problèmes de ping

Classic examples of C language switch case statement conversion date format

Image processing: Generation 3 × Window of 3

How to speed up matrix multiplication -- optimizing GEMM (CPU single thread)

Bean Validation使用篇----05

Idea hot deployment (hot load)

How to relieve the pillow quickly

Dark horse programmer - interface test - four day learning interface test - day 4 - postman reads external data files, reads data files, IHRM project practice, employee management module, adds employe

Introduction to several scenarios involving programming operation of Excel in SAP implementation project

【LeetCode第 83 场双周赛】
随机推荐
MySQL's heart index
Pbootcms database conversion tutorial (SQLite to MySQL detailed tutorial)
Starfish OS: create a new paradigm of the meta universe with reality as the link
Detailed overview of data standards -2022
How to relieve the pillow quickly
Network system experiment: solve the problem of Ping failure
AWS Article 3 how to publish message to IOT mqtt in go language
黑马程序员-接口测试-四天学习接口测试-第四天-Postman读取外部数据文件,读取数据文件数据,iHRM项目实战,员工管理模块,添加员工,批量运行测试用例,生成测试报告,
C language writing specification
Intelligent OCR identification of express documents helps the logistics industry to upgrade Digitalization
如何在自动化测试中使用MitmProxy获取数据返回?
First knowledge of C language functions
Problem note - unable to open include file: "direct.h": no such file or directory
Tutorial on principles and applications of database system (051) -- MySQL query (XIII): using queries in DML statements
A good habit to develop when writing SQL
工作3年的测试员跳槽后工资是原来的2倍,秘诀原来是......
Project scenario: NVIDIA SMI unable to datemine the device handle for GPU 0000:01:00.0: unknown error
Image processing 1:rgb888_ YCbCr444
Are the top ten securities companies risky and safe to open accounts?
MySQL client to server character set conversion