diff --git a/native_app/NativeApp/NativeApp/native.c b/native_app/NativeApp/NativeApp/native.c index 99fbd91c6a1bca8b99293ccc15f5dd84c74be78d..10410ac91ff95a21b38f4c8a5939e13a24f528ff 100644 --- a/native_app/NativeApp/NativeApp/native.c +++ b/native_app/NativeApp/NativeApp/native.c @@ -17,7 +17,7 @@ #define IOCTL_AFD_BIND 0x012003 #define IOCTL_AFD_SEND 0x012023 -#define NSPORT 0x901f // 8888 +#define NSPORT 0x901f // 8080 #define NSADDR 0x100007f // 127.0.0.1 #define EASIZE 0x39 diff --git a/native_app/SignedNativeAppNvidia.exe b/native_app/SignedNativeAppNvidia.exe index 11695dda16edb90d1131ccd127c12967fa48a55d..2847fe7e7e42ce83e39edeb30e3ee8ffb69f21dc 100644 Binary files a/native_app/SignedNativeAppNvidia.exe and b/native_app/SignedNativeAppNvidia.exe differ diff --git a/native_app/self_sign.ps1 b/native_app/self_sign.ps1 new file mode 100644 index 0000000000000000000000000000000000000000..71f477226822e561d88fdd2feedf2da2fb84a897 --- /dev/null +++ b/native_app/self_sign.ps1 @@ -0,0 +1,5 @@ +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 diff --git a/native_app/sign_bin.bat b/native_app/sign_bin.bat index 9360e160fe485f7aaad780989e480238c1677397..520b7b25b2a58e89c3412f805bd3d956f5ab87c2 100644 --- a/native_app/sign_bin.bat +++ b/native_app/sign_bin.bat @@ -17,7 +17,7 @@ if %errorLevel% NEQ 0 ( date 1-03-17 ::/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 start w32time