Assinar digitalmente um arquivo
Enviado: 08 Set 2016 18:44
10 segundos pra linqueditar, compactar e assinar.
(por falar nisso, acho impossível esse tempo com mingw)
(por falar nisso, acho impossível esse tempo com mingw)
Código: Selecionar todos
d:\CDROM\FONTES\INTEGRA>time
Hora atual: 18:41:41,99
Digite a nova hora:
d:\CDROM\FONTES\INTEGRA>c
d:\CDROM\FONTES\INTEGRA>del jpa.exe
d:\CDROM\FONTES\INTEGRA>d:\cdrom\fontes\build\build
d:\CDROM\FONTES\INTEGRA>hbmk2 jpa.hbp
hbmk2: Processing environment options: -comp=msvc
hbmk2: Triggered by #require directive: hbhpdf.hbc
hbmk2: Triggered by #require directive: hbzebra.hbc
hbmk2: Triggered by #require directive: hbziparc.hbc
hbmk2: Triggered by #require directive: hbnetio.hbc
hbmk2: Triggered by #require directive: hbwin.hbc
hbmk2: Triggered by #require directive: gtwvg.hbc
hbmk2: Triggered by #require directive: hbct.hbc
hbmk2: Triggered by #require directive: hbtip.hbc
Harbour 3.4.0dev (b4aaa05) (2016-09-06 07:30)
Copyright (c) 1999-2016, http://github.com/vszakats/harbour-core/
Compiling 'jpa.prg'...
Lines 1041, Functions/Procedures 3
Generating C source output to 'c:\temp\jpa.c'... Done.
jpa.c
Ultimate Packer for eXecutables
Copyright (C) 1996 - 2013
UPX 3.91w Markus Oberhumer, Laszlo Molnar & John Reiser Sep 30th 2013
File size Ratio Format Name
-------------------- ------ ----------- -----------
5687808 -> 1881600 33.08% win32/pe JPA.exe
Packed 1 file.
d:\CDROM\FONTES\INTEGRA>if not errorlevel 1 assina jpa.exe
d:\CDROM\FONTES\INTEGRA>For %a in (jpa.exe) do call \tools\signtool\assina %a
d:\CDROM\FONTES\INTEGRA>call \tools\signtool\assina jpa.exe
d:\CDROM\FONTES\INTEGRA>echo url de timestamp
url de timestamp
d:\CDROM\FONTES\INTEGRA>echo http://timestamp.verisign.com/scripts/timstamp.dll
http://timestamp.verisign.com/scripts/timstamp.dll
d:\CDROM\FONTES\INTEGRA>if "jpa.exe" == "" goto :semdados
d:\CDROM\FONTES\INTEGRA>d:\tools\signtool\signtool sign /v /d "http://www.jpatecnologia.com.br" /du
"http://www.jpatecnologia.com.br" /t http://timestamp.verisign.com/scripts/timstamp.dll jpa.exe
The following certificate was selected:
Issued to: J.P.A Tecnologia Ltda. ME.
Issued by: COMODO RSA Code Signing CA
Expires: 04/08/2017 20:59:59
SHA1 hash: E659EDCF1F712E293C77E3E54D5F7E34E29D1EB6
Done Adding Additional Store
Attempting to sign: JPA.exe
Successfully signed and timestamped: JPA.exe
Number of files successfully Signed: 1
Number of warnings: 0
Number of errors: 0
d:\CDROM\FONTES\INTEGRA>goto :fim
d:\CDROM\FONTES\INTEGRA>time
Hora atual: 18:41:51,30
Digite a nova hora: