Jump to content
Sign in to follow this  
Joshyy

Signing PBO's?

Recommended Posts

Hello All,

I was just wondering if anyone knew how to sign PBO's with arma 2?

I have searched online and got DSUtils and such however they are not signing my pbo properly, i have made a private .bikey and a .bikey but am unsure what to use to get a signature file.

Any help is much appreciated :)

Thanks,

Josh

Share this post


Link to post
Share on other sites

After downloading Bin PBO and correctly setting the path of folders ect and attempting to sign the pbo while packing it i am given a .txt file which contains:

without binarize enabled:

Spoiler

Creating texture headers file...
Texture headers file was not created - no textures found.

with binarize enabled:

Spoiler

Cannot register unknown string STR_STATE_HEALSOLDIER
Cannot register unknown string STR_STATE_FIRST_AID
Cannot register unknown string STR_UI_RADARRANGE
Cannot register unknown string STR_ACTION_LAUNCHCM
Cannot register unknown string STR_ACTION_NEXTCM
Cannot register unknown string STR_USRACT_ACTION_CONTEXT
Cannot register unknown string STR_USRACT_OPTICS_MODE
Cannot register unknown string STR_USRACT_ZEROING_UP
Cannot register unknown string STR_USRACT_ZEROING_DOWN
Cannot register unknown string STR_USRACT_NETWORK_DS_INTERFACE
Cannot register unknown string STR_USRACT_BULD_TERRAIN_RAISE_10CM
Cannot register unknown string STR_USRACT_BULD_TERRAIN_LOWER_10CM
Cannot register unknown string STR_USRACT_BULD_TERRAIN_RAISE_50CM
Cannot register unknown string STR_USRACT_BULD_TERRAIN_LOWER_50CM
Cannot register unknown string STR_INPUT_DEVICE_FREETRACK_0
Cannot register unknown string STR_INPUT_DEVICE_FREETRACK_1
Cannot register unknown string STR_INPUT_DEVICE_FREETRACK_2
Cannot register unknown string STR_INPUT_DEVICE_FREETRACK_3
Cannot register unknown string STR_INPUT_DEVICE_FREETRACK_4
Cannot register unknown string STR_INPUT_DEVICE_FREETRACK_5
Cannot register unknown string STR_INPUT_DEVICE_FREETRACK_6
Cannot register unknown string STR_INPUT_DEVICE_FREETRACK_7
Cannot register unknown string STR_INPUT_DEVICE_FREETRACK_8
Cannot register unknown string STR_INPUT_DEVICE_FREETRACK_9
Cannot register unknown string STR_INPUT_DEVICE_FREETRACK_10
Cannot register unknown string STR_INPUT_DEVICE_FREETRACK_11
Cannot register unknown string STR_DISP_LEFT
Cannot register unknown string STR_DIFF_CAMERA_SHAKE
Cannot register unknown string STR_FREETRACK
Cannot register unknown string STR_ADDON_ACTIONS_INSTALL_CORE
Cannot register unknown string STR_ADDON_ACTIONS_INSTALL_MOD
Cannot register unknown string STR_ADDON_ACTIONS_PLAY_MISSION
Cannot register unknown string STR_ADDON_ACTIONS_TRY_ENTITY
Cannot register unknown string STR_ADDON_ACTIONS_TRY_WEAPON
Cannot register unknown string STR_MSG_ADDON_NOT_FOUND
Cannot register unknown string STR_MSG_ADDON_CANNOT_OPEN
Cannot register unknown string STR_MSG_ADDON_UNKNOWN_PRODUCT
Cannot register unknown string STR_INCOMPATIBLE_LOAD_GAME_ATTEMPT
Warning: CfgVehicles missing in PreloadConfig - may slow down vehicle creation
Warning: CfgAmmo missing in PreloadConfig - may slow down vehicle creation
Warning: CfgNonAIVehicles missing in PreloadConfig - may slow down vehicle creation
Cannot load font core\data\fonts\lucidaconsoleb8
Fonts file \core\data\fonts\lucidaConsoleB8 not found
Cannot load font core\data\fonts\lucidaconsoleb11
Fonts file \core\data\fonts\lucidaConsoleB11 not found
Creating texture headers file...
Texture headers file was not created - no textures found.
 

 

Share this post


Link to post
Share on other sites

you need total commander to sign pbos.   I can show you how...but....

i wrote a nice long tutorial, pc restarted and didnt feel like writting it again. LOL  Sounds familiar?

Lets see what you have for coins, ill teach you to sign pbos..... i have a 4.5gb custom mod pack for my whitelisted server..

here is my server

 

Share this post


Link to post
Share on other sites

I use Sign Forge, it works great for multiple pbos, since you can feed it a folder instead of files. You can use DSutils for 1 pbo, which would probably be preferable. This application pretty much just executes DSUtils for you and can cleanup old .key and .bikey files automatically

http://www.armaholic.com/page.php?id=28376

my example (arguments are discussed in the readme):

"C:\Users\icomrade\Documents\GitHub\PBO_OUTPUT\ReSign\SignForge.exe" -s "C:\Users\icomrade\Documents\GitHub\PBO_OUTPUT\addons" -r -v -a "YOUR-ADDON-NAME+VER"

Share this post


Link to post
Share on other sites

When using Arma2AS:

When using Sign forge, i have managed to make a .bisign file however it is not being accepted by the server for some reason.

Here's the process of what i did:

My pbo is named Joshyy_HC.pbo

I dragged my pbo onto DSCreateKey.exe which made two files, Joshyy_HC.pbo.bikey and Joshyy_HC.pbo.biprivatekey

then i used SignForge to sign them heres what i used:

Spoiler

"C:\Users\Administrator\Documents\SIgnForge\SignForge.exe" -s "C:\Users\Administrator\Documents\Arma2OA\@Headlessclient\addons" -r -v -o -a "hcv1"

it produced 

hcv1.bikey

hcv1.biprivatekey

Joshyy_HC.pbo.hcv1.bisign

Now, i tried to put the .bikey there into my server keys folder and turned verification for signatures on, however my headless client kept getting kicked for bad signature

 

Sorry if i sound dumb, this is my first time doing this D:

Share this post


Link to post
Share on other sites
31 minutes ago, Joshyy said:

 

Save this file as sya.bat

Spoiler

@echo off
rem sya.bat by !R
cls
rem ----check if any parameter ----
if "%1"=="" goto noparameters
SET privatekey=%1
SHIFT
rem ---- check if second parameter ---
if "%1"=="" goto nosecondparameter
SET folder=%1


echo.
echo Are you sure to sign all *.pbo in %folder% with new %privatekey%
CHOICE
if errorlevel = 2 goto notsure 
if errorlevel = 1 goto sign

REM ------------------------
REM Delete bisign from folder
REM

:sign
echo.
echo.Now creating new signatures, please wait 
FOR /R %folder%\ %%G IN (*.pbo) DO DSSignFile.exe "%privatekey%" "%%G"
echo.
echo.Ok! All done.
echo.    
dir %folder%\*.bisign /B
echo.
echo.Remove manualy all old *.bisign
goto finish

REM --------------------
REM error missing parameter


:noparameters
echo.
echo Error: Missing parameters !
goto errorecho

:nosecondparameter
echo.
echo Error: Missing second parameter !

:errorecho
echo.
echo  *** Sign Your Addons 1.0 by !R ***
echo. 
echo  Usage:       sya.bat [keyname.biprivatekey] [addonsfolder]
echo  example:     sya.bat my_key001.biprivatekey addons
echo.
echo  Look for 1Rafalsky Youtube Channel to see a tutorial how to sign you addons.
echo.
goto finish


:notsure
echo.
echo Process aborted !

:finish
echo.
SET folder=
SET privatekey=
pause

create a folder called bisign.

in that folder, put your bikey, your biprivate key, DSSignFile, DSCheckSignatures, DSCreateKey and the sya.bat (not positive if they're ALL needed, but i have them all)

still in the bisign folder, create a folder called addons

put as many pbos as you want in the addons folder. (try one to start with, but the sya file allows you to do multiple, and still works with one file)

Download total commander if you dont already have it

http://www.ghisler.com/

Once open, on the right hand pane, navigate to the bisgin folder you created earlier.

Click and drag the sya.bat, from the right pane, to the bottom typing box of total commander.

Do the same for the bikey and the addons folder, in that order.  Hit enter and that should work.

GL

 

 

Share this post


Link to post
Share on other sites
4 minutes ago, theduke said:

Save this file as sya.bat

  Reveal hidden contents

@echo off
rem sya.bat by !R
cls
rem ----check if any parameter ----
if "%1"=="" goto noparameters
SET privatekey=%1
SHIFT
rem ---- check if second parameter ---
if "%1"=="" goto nosecondparameter
SET folder=%1


echo.
echo Are you sure to sign all *.pbo in %folder% with new %privatekey%
CHOICE
if errorlevel = 2 goto notsure 
if errorlevel = 1 goto sign

REM ------------------------
REM Delete bisign from folder
REM

:sign
echo.
echo.Now creating new signatures, please wait 
FOR /R %folder%\ %%G IN (*.pbo) DO DSSignFile.exe "%privatekey%" "%%G"
echo.
echo.Ok! All done.
echo.    
dir %folder%\*.bisign /B
echo.
echo.Remove manualy all old *.bisign
goto finish

REM --------------------
REM error missing parameter


:noparameters
echo.
echo Error: Missing parameters !
goto errorecho

:nosecondparameter
echo.
echo Error: Missing second parameter !

:errorecho
echo.
echo  *** Sign Your Addons 1.0 by !R ***
echo. 
echo  Usage:       sya.bat [keyname.biprivatekey] [addonsfolder]
echo  example:     sya.bat my_key001.biprivatekey addons
echo.
echo  Look for 1Rafalsky Youtube Channel to see a tutorial how to sign you addons.
echo.
goto finish


:notsure
echo.
echo Process aborted !

:finish
echo.
SET folder=
SET privatekey=
pause

create a folder called bisign.

in that folder, put your bikey, your biprivate key, DSSignFile, DSCheckSignatures, DSCreateKey and the sya.bat (not positive if they're ALL needed, but i have them all)

still in the bisign folder, create a folder called addons

put as many pbos as you want in the addons folder. (try one to start with, but the sya file allows you to do multiple, and still works with one file)

Download total commander if you dont already have it

http://www.ghisler.com/

Once open, on the right hand pane, navigate to the bisgin folder you created earlier.

Click and drag the sya.bat, from the right pane, to the bottom typing box of total commander.

Do the same for the bikey and the addons folder, in that order.  Hit enter and that should work.

GL

 

 

For generating the private key, should i just drag my pbo onto DSCreateKey?

Share this post


Link to post
Share on other sites

in the post earlier you mentioned you had one already. you should be able to use that one.

41 minutes ago, Joshyy said:

it produced 

hcv1.bikey

hcv1.biprivatekey

Joshyy_HC.pbo.hcv1.bisign

 

Share this post


Link to post
Share on other sites
10 minutes ago, theduke said:

 

  Reveal hidden contents

@echo off
rem sya.bat by !R
cls
rem ----check if any parameter ----
if "%1"=="" goto noparameters
SET privatekey=%1
SHIFT
rem ---- check if second parameter ---
if "%1"=="" goto nosecondparameter
SET folder=%1


echo.
echo Are you sure to sign all *.pbo in %folder% with new %privatekey%
CHOICE
if errorlevel = 2 goto notsure 
if errorlevel = 1 goto sign

REM ------------------------
REM Delete bisign from folder
REM

:sign
echo.
echo.Now creating new signatures, please wait 
FOR /R %folder%\ %%G IN (*.pbo) DO DSSignFile.exe "%privatekey%" "%%G"
echo.
echo.Ok! All done.
echo.    
dir %folder%\*.bisign /B
echo.
echo.Remove manualy all old *.bisign
goto finish

REM --------------------
REM error missing parameter


:noparameters
echo.
echo Error: Missing parameters !
goto errorecho

:nosecondparameter
echo.
echo Error: Missing second parameter !

:errorecho
echo.
echo  *** Sign Your Addons 1.0 by !R ***
echo. 
echo  Usage:       sya.bat [keyname.biprivatekey] [addonsfolder]
echo  example:     sya.bat my_key001.biprivatekey addons
echo.
echo  Look for 1Rafalsky Youtube Channel to see a tutorial how to sign you addons.
echo.
goto finish


:notsure
echo.
echo Process aborted !

:finish
echo.
SET folder=
SET privatekey=
pause

 

Do the same for the bikey and the addons folder, in that order.

 

 

When you say do that same for the bikey is this the .biprivatekey or just the .bikey key?

Thanks,

Josh

Share this post


Link to post
Share on other sites

just the bikey. 

 

EDIT: if you're trying to sign a pbo you created, it could be giving you a hard time if the config.bin is wrong for whatever reason. To test to make sure the pbo signing works. try any pbo...

Share this post


Link to post
Share on other sites
10 minutes ago, theduke said:

EDIT: if you're trying to sign a pbo you created, it could be giving you a hard time if the config.bin is wrong for whatever reason. To test to make sure the pbo signing works. try any pbo...

I dont have any config.bin D:

How would i make a config.bin, i had no idea it was needed?

Share this post


Link to post
Share on other sites
9 hours ago, Joshyy said:

I dont have any config.bin D:

How would i make a config.bin, i had no idea it was needed?

I would suggest trying any PBO thas already signed, just to see if the signing works.  I have 0 clue how to build a config.bin.  If you unpbo any pbo, you will see there is a config.bin.  You can unbin that file with armaunbin.

It will turn into a config.cpp, readable file. 

And to be honest im not sure how to "create" a pbo.  Again try any pbo to see if the signing works

Share this post


Link to post
Share on other sites
11 hours ago, theduke said:

I would suggest trying any PBO thas already signed, just to see if the signing works.  I have 0 clue how to build a config.bin.  If you unpbo any pbo, you will see there is a config.bin.  You can unbin that file with armaunbin.

It will turn into a config.cpp, readable file. 

And to be honest im not sure how to "create" a pbo.  Again try any pbo to see if the signing works

So i just copied the config.bin from dayz_code to test with my pbo and it seems to work now..?

Thanks for all the help though :)

Share this post


Link to post
Share on other sites

emmm no that wont work. that specific config.bin is meant for the dayz_code.pbo

What i meant, is to make sure your process of trying to sign a pbo works, try it with any pbo, not the one you're creating.

This way you know if it works, thers a issue with your pbo...

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

  • Advertisement
  • Supporters
  • Discord

×
×
  • Create New...