Project

General

Profile

[solved] build impossible: password asked at the end of build and "ERROR: signapk.jar failed: return code 1"

Added by Fil Lupin about 5 years ago

Hello,
I finished building replicant for i9300 and I have been asked a password at the end of build step several times to sign it (https://redmine.replicant.us/projects/replicant/wiki/GalaxyS3I9300Build). I tried to add a password (I never tried before).

I think an explanation should be added into this page to explain the goal of the proecess, the prerequisites and when will be used the password.
If one want to sign again its images with another password, what is the good way to do it? Deleting out/dist/i9300/signed-* seems not sufficient

Here is the output, where the entered password (visible) has been replaced by "__MY_PASSWORD__":

$ ./vendor/replicant/sign-build i9300 No keys present. Generating them now.

You are about to be asked to enter information that will be incorporated
into your certificate requests.
What you are about to enter is what is called a Distinguished Name or a DN.
There are quite a few fields but you can leave some blank.
For some fields there will be a default value.
Country Name (2 letter code) [AU]:FR
State or Province Name (full name) [Some-State]:
Locality Name (eg, city) []:
Organization Name (eg, company) [Internet Widgits Pty Ltd]:
Organizational Unit Name (eg, section) []:
Common Name (e.g. your name) []:
Email Address []:filreplicant@protonmail.com
Enter password for '/home/debian/replicant/replicant-6.0/vendor/replicant-security/releasekey' (blank for none; password will be visible): __MY__PASSWORD__
creating /home/debian/replicant/replicant-6.0/vendor/replicant-security/releasekey.pk8 with password [__MY__PASSWORD__]
Generating RSA private key, 2048 bit long modulus
.............+++
...............................................+++
e is 65537 (0x10001)
No value provided for Subject Attribute ST, skipped
No value provided for Subject Attribute OU, skipped

Enter password for '/home/debian/replicant/replicant-6.0/vendor/replicant-security/platform' (blank for none; password will be visible): __MY__PASSWORD__
creating /home/debian/replicant/replicant-6.0/vendor/replicant-security/platform.pk8 with password [__MY__PASSWORD__]
Generating RSA private key, 2048 bit long modulus
.........+++
..........................+++
e is 65537 (0x10001)
No value provided for Subject Attribute ST, skipped
No value provided for Subject Attribute OU, skipped

Enter password for '/home/debian/replicant/replicant-6.0/vendor/replicant-security/shared' (blank for none; password will be visible): __MY__PASSWORD__
creating /home/debian/replicant/replicant-6.0/vendor/replicant-security/shared.pk8 with password [__MY__PASSWORD__]
Generating RSA private key, 2048 bit long modulus
...+++
........................+++
e is 65537 (0x10001)
No value provided for Subject Attribute ST, skipped
No value provided for Subject Attribute OU, skipped

Enter password for '/home/debian/replicant/replicant-6.0/vendor/replicant-security/media' (blank for none; password will be visible): __MY__PASSWORD__
creating /home/debian/replicant/replicant-6.0/vendor/replicant-security/media.pk8 with password [__MY__PASSWORD__]
Generating RSA private key, 2048 bit long modulus
...........................+++
...................................................................................................................+++
e is 65537 (0x10001)
No value provided for Subject Attribute ST, skipped
No value provided for Subject Attribute OU, skipped

Enter password for /home/debian/replicant/replicant-6.0/vendor/replicant-security/media key>
Enter password for /home/debian/replicant/replicant-6.0/vendor/replicant-security/platform key>
Enter password for /home/debian/replicant/replicant-6.0/vendor/replicant-security/releasekey key>
Enter password for /home/debian/replicant/replicant-6.0/vendor/replicant-security/shared key>
rewriting BOOT/RAMDISK/default.prop:
  replace:  ro.bootimage.build.fingerprint=replicant_i9300:6.0.1/MOI10E/eng.debian.20190228.221214:userdebug/test-keys
     with:  ro.bootimage.build.fingerprint=replicant_i9300:6.0.1/MOI10E/eng.debian.20190228.221214:userdebug/release-keys
rewriting RECOVERY/RAMDISK/default.prop:
  replace:  ro.bootimage.build.fingerprint=replicant_i9300:6.0.1/MOI10E/eng.debian.20190228.221214:userdebug/test-keys
     with:  ro.bootimage.build.fingerprint=replicant_i9300:6.0.1/MOI10E/eng.debian.20190228.221214:userdebug/release-keys
  replace:  ro.build.display.id=replicant_i9300-userdebug 6.0.1 MOI10E eng.debian.20190228.221214 test-keys
     with:  ro.build.display.id=replicant_i9300-userdebug 6.0.1 MOI10E eng.debian.20190228.221214
  replace:  ro.build.tags=test-keys
     with:  ro.build.tags=release-keys
    signing: org.cyanogenmod.platform-res.apk (/home/debian/replicant/replicant-6.0/vendor/replicant-security/platform)
    signing: framework-res.apk                (/home/debian/replicant/replicant-6.0/vendor/replicant-security/platform)
    signing: Nfc.apk                          (/home/debian/replicant/replicant-6.0/vendor/replicant-security/platform)
    signing: LegacyCamera.apk                 (/home/debian/replicant/replicant-6.0/vendor/replicant-security/releasekey)
    signing: BluetoothMidiService.apk         (/home/debian/replicant/replicant-6.0/vendor/replicant-security/platform)
    signing: CaptivePortalLogin.apk           (/home/debian/replicant/replicant-6.0/vendor/replicant-security/platform)
    signing: messaging.apk                    (/home/debian/replicant/replicant-6.0/vendor/replicant-security/platform)
    signing: DocumentsUI.apk                  (/home/debian/replicant/replicant-6.0/vendor/replicant-security/platform)
NOT signing: F-Droid.apk
    signing: BasicDreams.apk                  (/home/debian/replicant/replicant-6.0/vendor/replicant-security/releasekey)
    signing: ExactCalculator.apk              (/home/debian/replicant/replicant-6.0/vendor/replicant-security/releasekey)
    signing: PacProcessor.apk                 (/home/debian/replicant/replicant-6.0/vendor/replicant-security/platform)
    signing: ReplicantWallpapers.apk          (/home/debian/replicant/replicant-6.0/vendor/replicant-security/releasekey)
    signing: PicoTts.apk                      (/home/debian/replicant/replicant-6.0/vendor/replicant-security/releasekey)
    signing: Browser.apk                      (/home/debian/replicant/replicant-6.0/vendor/replicant-security/releasekey)
    signing: Calendar.apk                     (/home/debian/replicant/replicant-6.0/vendor/replicant-security/releasekey)
    signing: telresources.apk                 (/home/debian/replicant/replicant-6.0/vendor/replicant-security/platform)
    signing: KeyChain.apk                     (/home/debian/replicant/replicant-6.0/vendor/replicant-security/platform)
    signing: UserDictionaryProvider.apk       (/home/debian/replicant/replicant-6.0/vendor/replicant-security/shared)
    signing: AdvancedDisplay.apk              (/home/debian/replicant/replicant-6.0/vendor/replicant-security/platform)
    signing: Bluetooth.apk                    (/home/debian/replicant/replicant-6.0/vendor/replicant-security/platform)
    signing: Development.apk                  (/home/debian/replicant/replicant-6.0/vendor/replicant-security/platform)
    signing: CMFileManager.apk                (/home/debian/replicant/replicant-6.0/vendor/replicant-security/platform)
    signing: Terminal.apk                     (/home/debian/replicant/replicant-6.0/vendor/replicant-security/releasekey)
    signing: LiveWallpapersPicker.apk         (/home/debian/replicant/replicant-6.0/vendor/replicant-security/platform)
    signing: Stk.apk                          (/home/debian/replicant/replicant-6.0/vendor/replicant-security/platform)
    signing: SoundRecorder.apk                (/home/debian/replicant/replicant-6.0/vendor/replicant-security/platform)
    signing: Email.apk                        (/home/debian/replicant/replicant-6.0/vendor/replicant-security/releasekey)
    signing: LatinIME.apk                     (/home/debian/replicant/replicant-6.0/vendor/replicant-security/shared)
    signing: Exchange2.apk                    (/home/debian/replicant/replicant-6.0/vendor/replicant-security/releasekey)
    signing: webview.apk                      (/home/debian/replicant/replicant-6.0/vendor/replicant-security/releasekey)
    signing: HTMLViewer.apk                   (/home/debian/replicant/replicant-6.0/vendor/replicant-security/releasekey)
    signing: LockClock.apk                    (/home/debian/replicant/replicant-6.0/vendor/replicant-security/releasekey)
    signing: WAPPushManager.apk               (/home/debian/replicant/replicant-6.0/vendor/replicant-security/releasekey)
    signing: Gallery.apk                      (/home/debian/replicant/replicant-6.0/vendor/replicant-security/media)
    signing: DeskClock.apk                    (/home/debian/replicant/replicant-6.0/vendor/replicant-security/platform)
    signing: PrintSpooler.apk                 (/home/debian/replicant/replicant-6.0/vendor/replicant-security/releasekey)
    signing: Profiles.apk                     (/home/debian/replicant/replicant-6.0/vendor/replicant-security/platform)
    signing: SamsungServiceMode.apk           (/home/debian/replicant/replicant-6.0/vendor/replicant-security/platform)
    signing: WallpaperPicker.apk              (/home/debian/replicant/replicant-6.0/vendor/replicant-security/releasekey)
    signing: Provision.apk                    (/home/debian/replicant/replicant-6.0/vendor/replicant-security/platform)
    signing: DownloadProviderUi.apk           (/home/debian/replicant/replicant-6.0/vendor/replicant-security/media)
    signing: CertInstaller.apk                (/home/debian/replicant/replicant-6.0/vendor/replicant-security/platform)
    signing: RepWifi.apk                      (/home/debian/replicant/replicant-6.0/vendor/replicant-security/releasekey)
rewriting SYSTEM/etc/security/mac_permissions.xml with new keys.
rewriting SYSTEM/etc/permissions/ with new keys.
rewriting SYSTEM/etc/permissions/android.hardware.location.gps.xml with new keys.
rewriting SYSTEM/etc/permissions/org.cyanogenmod.livedisplay.xml with new keys.
rewriting SYSTEM/etc/permissions/org.cyanogenmod.hardware.xml with new keys.
rewriting SYSTEM/etc/permissions/permissions_org.fdroid.fdroid.privileged.xml with new keys.
rewriting SYSTEM/etc/permissions/android.software.webview.xml with new keys.
rewriting SYSTEM/etc/permissions/org.cyanogenmod.audio.xml with new keys.
rewriting SYSTEM/etc/permissions/android.hardware.wifi.xml with new keys.
rewriting SYSTEM/etc/permissions/android.software.sip.voip.xml with new keys.
rewriting SYSTEM/etc/permissions/org.cyanogenmod.partner.xml with new keys.
rewriting SYSTEM/etc/permissions/org.cyanogenmod.appsuggest.xml with new keys.
rewriting SYSTEM/etc/permissions/android.hardware.camera.front.xml with new keys.
rewriting SYSTEM/etc/permissions/org.cyanogenmod.profiles.xml with new keys.
rewriting SYSTEM/etc/permissions/android.hardware.touchscreen.xml with new keys.
rewriting SYSTEM/etc/permissions/android.hardware.location.xml with new keys.
rewriting SYSTEM/etc/permissions/android.hardware.bluetooth_le.xml with new keys.
rewriting SYSTEM/etc/permissions/android.hardware.camera.xml with new keys.
rewriting SYSTEM/etc/permissions/android.hardware.sensor.accelerometer.xml with new keys.
rewriting SYSTEM/etc/permissions/org.cyanogenmod.telephony.xml with new keys.
rewriting SYSTEM/etc/permissions/platform.xml with new keys.
rewriting SYSTEM/etc/permissions/com.android.media.remotedisplay.xml with new keys.
rewriting SYSTEM/etc/permissions/android.hardware.wifi.direct.xml with new keys.
rewriting SYSTEM/etc/permissions/android.hardware.nfc.xml with new keys.
rewriting SYSTEM/etc/permissions/android.hardware.usb.accessory.xml with new keys.
rewriting SYSTEM/etc/permissions/org.cyanogenmod.livelockscreen.xml with new keys.
rewriting SYSTEM/etc/permissions/org.cyanogenmod.weather.xml with new keys.
rewriting SYSTEM/etc/permissions/org.cyanogenmod.platform.xml with new keys.
rewriting SYSTEM/etc/permissions/android.hardware.sensor.compass.xml with new keys.
rewriting SYSTEM/etc/permissions/handheld_core_hardware.xml with new keys.
rewriting SYSTEM/etc/permissions/com.cyanogenmod.android.xml with new keys.
rewriting SYSTEM/etc/permissions/android.software.live_wallpaper.xml with new keys.
rewriting SYSTEM/etc/permissions/android.hardware.camera.flash-autofocus.xml with new keys.
rewriting SYSTEM/etc/permissions/android.hardware.camera.autofocus.xml with new keys.
rewriting SYSTEM/etc/permissions/org.cyanogenmod.statusbar.xml with new keys.
rewriting SYSTEM/etc/permissions/org.cyanogenmod.theme.xml with new keys.
rewriting SYSTEM/etc/permissions/android.software.sip.xml with new keys.
rewriting SYSTEM/etc/permissions/android.hardware.sensor.gyroscope.xml with new keys.
rewriting SYSTEM/etc/permissions/android.hardware.touchscreen.multitouch.xml with new keys.
rewriting SYSTEM/etc/permissions/android.hardware.sensor.proximity.xml with new keys.
rewriting SYSTEM/etc/permissions/org.cyanogenmod.performance.xml with new keys.
rewriting SYSTEM/etc/permissions/android.hardware.touchscreen.multitouch.jazzhand.xml with new keys.
rewriting SYSTEM/etc/permissions/android.hardware.telephony.gsm.xml with new keys.
rewriting SYSTEM/etc/permissions/android.hardware.usb.host.xml with new keys.
rewriting SYSTEM/etc/permissions/android.hardware.sensor.light.xml with new keys.
rewriting SYSTEM/etc/permissions/com.android.location.provider.xml with new keys.
rewriting SYSTEM/etc/permissions/com.android.nfc_extras.xml with new keys.
rewriting SYSTEM/etc/permissions/com.android.mediadrm.signer.xml with new keys.
rewriting SYSTEM/build.prop:
  replace:  ro.build.display.id=replicant_i9300-userdebug 6.0.1 MOI10E eng.debian.20190228.221214 test-keys
     with:  ro.build.display.id=replicant_i9300-userdebug 6.0.1 MOI10E eng.debian.20190228.221214
  replace:  ro.build.tags=test-keys
     with:  ro.build.tags=release-keys
    signing: CallLogBackup.apk                (/home/debian/replicant/replicant-6.0/vendor/replicant-security/shared)
    signing: CellBroadcastReceiver.apk        (/home/debian/replicant/replicant-6.0/vendor/replicant-security/platform)
    signing: SettingsProvider.apk             (/home/debian/replicant/replicant-6.0/vendor/replicant-security/platform)
    signing: CalendarProvider.apk             (/home/debian/replicant/replicant-6.0/vendor/replicant-security/releasekey)
    signing: Trebuchet.apk                    (/home/debian/replicant/replicant-6.0/vendor/replicant-security/releasekey)
    signing: WeatherManagerService.apk        (/home/debian/replicant/replicant-6.0/vendor/replicant-security/releasekey)
    signing: DownloadProvider.apk             (/home/debian/replicant/replicant-6.0/vendor/replicant-security/media)
    signing: ThemeChooser.apk                 (/home/debian/replicant/replicant-6.0/vendor/replicant-security/platform)
    signing: DataUsageProvider.apk            (/home/debian/replicant/replicant-6.0/vendor/replicant-security/platform)
    signing: CarrierConfig.apk                (/home/debian/replicant/replicant-6.0/vendor/replicant-security/platform)
    signing: Telecom.apk                      (/home/debian/replicant/replicant-6.0/vendor/replicant-security/platform)
    signing: ManagedProvisioning.apk          (/home/debian/replicant/replicant-6.0/vendor/replicant-security/platform)
    signing: SystemUI.apk                     (/home/debian/replicant/replicant-6.0/vendor/replicant-security/platform)
    signing: CMAudioService.apk               (/home/debian/replicant/replicant-6.0/vendor/replicant-security/releasekey)
    signing: LiveLockScreenService.apk        (/home/debian/replicant/replicant-6.0/vendor/replicant-security/releasekey)
    signing: Eleven.apk                       (/home/debian/replicant/replicant-6.0/vendor/replicant-security/releasekey)
    signing: AudioFX.apk                      (/home/debian/replicant/replicant-6.0/vendor/replicant-security/releasekey)
    signing: PackageInstaller.apk             (/home/debian/replicant/replicant-6.0/vendor/replicant-security/platform)
    signing: CyanogenSetupWizard.apk          (/home/debian/replicant/replicant-6.0/vendor/replicant-security/platform)
    signing: ContactsProvider.apk             (/home/debian/replicant/replicant-6.0/vendor/replicant-security/shared)
    signing: Tag.apk                          (/home/debian/replicant/replicant-6.0/vendor/replicant-security/releasekey)
    signing: TeleService.apk                  (/home/debian/replicant/replicant-6.0/vendor/replicant-security/platform)
    signing: SharedStorageBackup.apk          (/home/debian/replicant/replicant-6.0/vendor/replicant-security/platform)
    signing: WallpaperCropper.apk             (/home/debian/replicant/replicant-6.0/vendor/replicant-security/platform)
    signing: StatementService.apk             (/home/debian/replicant/replicant-6.0/vendor/replicant-security/releasekey)
    signing: FusedLocation.apk                (/home/debian/replicant/replicant-6.0/vendor/replicant-security/platform)
    signing: OneTimeInitializer.apk           (/home/debian/replicant/replicant-6.0/vendor/replicant-security/releasekey)
    signing: Screencast.apk                   (/home/debian/replicant/replicant-6.0/vendor/replicant-security/releasekey)
    signing: BackupRestoreConfirmation.apk    (/home/debian/replicant/replicant-6.0/vendor/replicant-security/platform)
    signing: Shell.apk                        (/home/debian/replicant/replicant-6.0/vendor/replicant-security/platform)
    signing: Settings.apk                     (/home/debian/replicant/replicant-6.0/vendor/replicant-security/platform)
    signing: ExternalStorageProvider.apk      (/home/debian/replicant/replicant-6.0/vendor/replicant-security/platform)
    signing: MmsService.apk                   (/home/debian/replicant/replicant-6.0/vendor/replicant-security/platform)
    signing: CMSettingsProvider.apk           (/home/debian/replicant/replicant-6.0/vendor/replicant-security/platform)
    signing: ProxyHandler.apk                 (/home/debian/replicant/replicant-6.0/vendor/replicant-security/platform)
    signing: Dialer.apk                       (/home/debian/replicant/replicant-6.0/vendor/replicant-security/shared)
    signing: InputDevices.apk                 (/home/debian/replicant/replicant-6.0/vendor/replicant-security/platform)
    signing: ThemeManagerService.apk          (/home/debian/replicant/replicant-6.0/vendor/replicant-security/releasekey)
    signing: VpnDialogs.apk                   (/home/debian/replicant/replicant-6.0/vendor/replicant-security/platform)
    signing: TelephonyProvider.apk            (/home/debian/replicant/replicant-6.0/vendor/replicant-security/platform)
    signing: Contacts.apk                     (/home/debian/replicant/replicant-6.0/vendor/replicant-security/shared)
    signing: DefaultContainerService.apk      (/home/debian/replicant/replicant-6.0/vendor/replicant-security/platform)
    signing: MediaProvider.apk                (/home/debian/replicant/replicant-6.0/vendor/replicant-security/media)
    signing: FDroidPrivilegedExtension.apk    (/home/debian/replicant/replicant-6.0/vendor/replicant-security/releasekey)
    signing: WeatherProvider.apk              (/home/debian/replicant/replicant-6.0/vendor/replicant-security/platform)
    signing: ThemesProvider.apk               (/home/debian/replicant/replicant-6.0/vendor/replicant-security/platform)
META/otakeys.txt has no keys; using /home/debian/replicant/replicant-6.0/vendor/replicant-security/releasekey.x509.pem
/home/debian/replicant/replicant-6.0/build/tools/releasetools/common.py:1054: UserWarning: Duplicate name: 'META/releasekey.txt'
  zip_file.writestr(zinfo, data)
building image from target_files RECOVERY...
building image from target_files BOOT...
putting script in bin/install-recovery.sh

++++ boot ++++

building image from target_files BOOT...

++++ recovery ++++

building image from target_files RECOVERY...

++++ system ++++

Building new recovery patch
putting script in bin/install-recovery.sh
creating system.img...
Running: mkuserimg.sh -s /tmp/targetfiles-Jpkda9/system /tmp/system-2jNqVC.img ext4 system 1610612736 -T 1230768000 -C /tmp/targetfiles-Jpkda9/META/filesystem_config.txt -B /tmp/system-blocklist-9eCVRx.map -L system /tmp/targetfiles-Jpkda9/BOOT/RAMDISK/file_contexts
make_ext4fs -s -T 1230768000 -S /tmp/targetfiles-Jpkda9/BOOT/RAMDISK/file_contexts -C /tmp/targetfiles-Jpkda9/META/filesystem_config.txt -B /tmp/system-blocklist-9eCVRx.map -L system -l 1610612736 -a system /tmp/system-2jNqVC.img /tmp/targetfiles-Jpkda9/system
loaded 1801 fs_config entries
Creating filesystem with parameters:
    Size: 1610612736
    Block size: 4096
    Blocks per group: 32768
    Inodes per group: 8192
    Inode size: 256
    Journal blocks: 6144
    Label: system
    Blocks: 393216
    Block groups: 12
    Reserved block group size: 95
Created filesystem with 1811/98304 inodes and 128086/393216 blocks

++++ userdata ++++

creating userdata.img...
Running: mkf2fsuserimg.sh /tmp/tmpRjAg0w 12381585408
in mkf2fsuserimg.sh PATH=/home/debian/replicant/replicant-6.0/out/host/linux-x86/bin:/usr/lib/jvm/java-8-openjdk-amd64/bin:/home/debian/replicant/replicant-6.0/out/host/linux-x86/bin:::arm-none-eabi-:/home/debian/replicant/replicant-6.0/development/scripts:/home/debian/replicant/replicant-6.0/prebuilts/devtools/tools:/home/debian/bin:/home/debian/.local/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games
make_f2fs -l 12381585408 /tmp/tmpRjAg0w
Info: zone aligned segment0 blkaddr: 512
Info: Overprovision ratio = 1.850%
Info: Overprovision segments = 222 (GC reserved = 116)

++++ extrauserdata ++++

++++ cache ++++

done.
unzipping target target-files...
--- can't determine the cache partition size ---
unable to load device-specific module; assuming none
using prebuilt recovery.img from IMAGES...
using prebuilt boot.img from IMAGES...
putting script in bin/install-recovery.sh
/home/debian/replicant/replicant-6.0/build/tools/releasetools/common.py:1054: UserWarning: Duplicate name: 'system/build.prop'
  zip_file.writestr(zinfo, data)
Enter password for /home/debian/replicant/replicant-6.0/vendor/replicant-security/releasekey key>
done.
cleaning up...
done.
Archive:  /home/debian/replicant/replicant-6.0/out/dist/i9300/signed-img-i9300.zip
  inflating: /home/debian/replicant/replicant-6.0/out/dist/i9300/recovery.img

Finished successfully. Install zip and recovery:
/home/debian/replicant/replicant-6.0/out/dist/i9300/replicant-6.0-i9300.zip
/home/debian/replicant/replicant-6.0/out/dist/i9300/recovery-i9300.img
debian@replicant:~/replicant/replicant-6.0$

Regards.


Replies (2)

RE: password asked at the end of build - Added by Fil Lupin about 5 years ago

I removed entire content of replicant-6.0 directory to restart from first step of Source code downloading (https://redmine.replicant.us/projects/replicant/wiki/ReplicantSourceCode).
I got the following error when signing (with empty password entered):

$ ./vendor/replicant/sign-build i9300
No keys present. Generating them now.

You are about to be asked to enter information that will be incorporated
into your certificate requests.
What you are about to enter is what is called a Distinguished Name or a DN.
There are quite a few fields but you can leave some blank.
For some fields there will be a default value.
Country Name (2 letter code) [AU]:FR
State or Province Name (full name) [Some-State]:
Locality Name (eg, city) []:Paris
Organization Name (eg, company) [Internet Widgits Pty Ltd]:
Organizational Unit Name (eg, section) []:
Common Name (e.g. your name) []:
Email Address []:
Enter password for '/home/debian/replicant/replicant-6.0/vendor/replicant-security/releasekey' (blank for none; password will be visible): 
creating /home/debian/replicant/replicant-6.0/vendor/replicant-security/releasekey.pk8 with no password
Generating RSA private key, 2048 bit long modulus
............+++
................+++
e is 65537 (0x10001)
end of string encountered while processing type of subject name element #6
problems making Certificate Request

Enter password for '/home/debian/replicant/replicant-6.0/vendor/replicant-security/platform' (blank for none; password will be visible): 
creating /home/debian/replicant/replicant-6.0/vendor/replicant-security/platform.pk8 with no password
Generating RSA private key, 2048 bit long modulus
......................+++
.............................+++
e is 65537 (0x10001)
end of string encountered while processing type of subject name element #6
problems making Certificate Request

Enter password for '/home/debian/replicant/replicant-6.0/vendor/replicant-security/shared' (blank for none; password will be visible): 
creating /home/debian/replicant/replicant-6.0/vendor/replicant-security/shared.pk8 with no password
Generating RSA private key, 2048 bit long modulus
.......+++
.............................................................+++
e is 65537 (0x10001)
end of string encountered while processing type of subject name element #6
problems making Certificate Request

Enter password for '/home/debian/replicant/replicant-6.0/vendor/replicant-security/media' (blank for none; password will be visible): 
creating /home/debian/replicant/replicant-6.0/vendor/replicant-security/media.pk8 with no password
Generating RSA private key, 2048 bit long modulus
....................+++
.............................+++
e is 65537 (0x10001)
end of string encountered while processing type of subject name element #6
problems making Certificate Request

rewriting BOOT/RAMDISK/default.prop:
  replace:  ro.bootimage.build.fingerprint=replicant_i9300:6.0.1/MOI10E/eng.debian.20190302.111313:userdebug/test-keys
     with:  ro.bootimage.build.fingerprint=replicant_i9300:6.0.1/MOI10E/eng.debian.20190302.111313:userdebug/release-keys
rewriting RECOVERY/RAMDISK/default.prop:
  replace:  ro.bootimage.build.fingerprint=replicant_i9300:6.0.1/MOI10E/eng.debian.20190302.111313:userdebug/test-keys
     with:  ro.bootimage.build.fingerprint=replicant_i9300:6.0.1/MOI10E/eng.debian.20190302.111313:userdebug/release-keys
  replace:  ro.build.display.id=replicant_i9300-userdebug 6.0.1 MOI10E eng.debian.20190302.111313 test-keys
     with:  ro.build.display.id=replicant_i9300-userdebug 6.0.1 MOI10E eng.debian.20190302.111313
  replace:  ro.build.tags=test-keys
     with:  ro.build.tags=release-keys
    signing: org.cyanogenmod.platform-res.apk (/home/debian/replicant/replicant-6.0/vendor/replicant-security/platform)
java.io.FileNotFoundException: /home/debian/replicant/replicant-6.0/vendor/replicant-security/platform.x509.pem (No such file or directory)
    at java.io.FileInputStream.open0(Native Method)
    at java.io.FileInputStream.open(FileInputStream.java:195)
    at java.io.FileInputStream.<init>(FileInputStream.java:138)
    at com.android.signapk.SignApk.readPublicKey(SignApk.java:160)
    at com.android.signapk.SignApk.main(SignApk.java:908)

   ERROR: signapk.jar failed: return code 1

I precise that I tried to delete keys with

rm -r vendor/replicant-security

as specified in https://redmine.replicant.us/projects/replicant/wiki/BuildTips but I get the same error when launching again
./vendor/replicant/sign-build i9300

so it is not exactly the same error as described in https://redmine.replicant.us/boards/15/topics/14706?r=14828#message-14828

RE: build impossible: password asked at the end of build and "ERROR: signapk.jar failed: return code 1" - Added by Fil Lupin about 5 years ago

Hi,
sorry, I did not read well the https://redmine.replicant.us/boards/15/topics/14706?r=14826#message-14826 topic.

Reading it again, I found a way to solve this by deleting replicant-6.0/vendor/replicant-security dir before launching sign-build script as suggested by Art Os in https://redmine.replicant.us/boards/15/topics/14706?r=14826#message-14826

This step is explained in https://redmine.replicant.us/projects/replicant/wiki/BuildTips

Regards.

    (1-2/2)