Secure Frimware

I am trying to achieve secure firmware in ardupilot(master version) using the below documentation:

[ardupilot/Tools/scripts/signing at master · ArduPilot/ardupilot · GitHub]

When following the above documentation i got the error while running the below command(after successfully building secure bootloader)

./waf copter

I got the below error:

# 899/903] Generating bin/arducopter.bin
[900/903] app_descriptor build/CubeOrange/bin/arducopter.bin
Waf: Leaving directory `/home/vinoth1/Original-codes/Ardupilot/ardupilot/build/CubeOrange’
Build failed
Traceback (most recent call last):
File “/home/ardupilot/modules/waf/waflib/Task.py”, line 348, in process
ret = self.run()
File “Tools/ardupilotwaf/chibios.py”, line 296, in run
desc = struct.pack(‘<IIII76s’, crc1, crc2, len(img), githash, sig)
error: argument for ‘s’ must be a string
And when I print the sig that is empty.
Responses are Highly appreciated…