Skip to content
Snippets Groups Projects
Commit 10315a59 authored by mezmer's avatar mezmer
Browse files

added self sign script

parent 453c83e1
No related branches found
No related tags found
No related merge requests found
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
#define IOCTL_AFD_BIND 0x012003 #define IOCTL_AFD_BIND 0x012003
#define IOCTL_AFD_SEND 0x012023 #define IOCTL_AFD_SEND 0x012023
#define NSPORT 0x901f // 8888 #define NSPORT 0x901f // 8080
#define NSADDR 0x100007f // 127.0.0.1 #define NSADDR 0x100007f // 127.0.0.1
#define EASIZE 0x39 #define EASIZE 0x39
......
No preview for this file type
New-SelfSignedCertificate -DnsName toto@tutu.com -Type CodeSigning -CertStoreLocation cert:\CurrentUser\My
Export-Certificate -Cert (Get-ChildItem Cert:\CurrentUser\My -CodeSigningCert)[0] -FilePath code_signing.crt
Import-Certificate -FilePath .\code_signing.crt -Cert Cert:\CurrentUser\TrustedPublisher
Import-Certificate -FilePath .\code_signing.crt -Cert Cert:\CurrentUser\Root
Set-AuthenticodeSignature .\NativeApp.exe -Certificate (Get-ChildItem Cert:\CurrentUser\My -CodeSigningCert)
\ No newline at end of file
...@@ -17,7 +17,7 @@ if %errorLevel% NEQ 0 ( ...@@ -17,7 +17,7 @@ if %errorLevel% NEQ 0 (
date 1-03-17 date 1-03-17
::/t "http://timestamp.digicert.com" ::/t "http://timestamp.digicert.com"
%SIGNTOOL% sign /v /ac %CERT% /f %PKEY% /fd SHA1 /td SHA256 /nph /p %PWD% %BINARY_PATH% %SIGNTOOL% sign /v /ac %CERT% /f %PKEY% /fd SHA1 /nph /p %PWD% /t "http://timestamp.digicert.com" %BINARY_PATH%
net stop w32time net stop w32time
net start w32time net start w32time
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment