[Android Q&A, Help & Troubleshooting] SickAttack:
Hello guys,

I have a problem with my phone. I cannot install the correct firmware, I can only install the firmware (Orange Hi 4G) but it's not compatible with my phone, so the phone bootloops and doesn't go into the system.

I cannot install the firmware for my device because it's not signed with the orange's certificate and key, my phone has the orange's recovery and fastboot is disabled on the rom so I cannot use that. I have the certificate and key but I cannot get the key in a .pem file, the certificate is already in one.

Phone: ZTE Blade Apex 2

Recovery in Phone: Orange recovery

Recovery: Stock recovery

Certificate:

MIIErjCCA5agAwIBAgIJAOuCYND5gmZOMA0GCSqGSIb3DQEBBQUAMIGWMQswCQYD

VQQGEwJDTjERMA8GA1UECBMIU2hhbmdoYWkxETAPBgNVBAcTCFNoYW5naGFpMQww

CgYDVQQKEwNaVEUxIjAgBgNVBAsTGVNtYXJ0cGhvbmUgU29mdHdhcmUgRGVwdC4x

DDAKBgNVBAMTA1pURTEhMB8GCSqGSIb3DQEJARYSc3VwcG9ydEB6dGUuY29tLmNu

MB4XDTExMDMwODA3MTM0M1oXDTM4MDcyNDA3MTM0M1owgZYxCzAJBgNVBAYTAkNO

MREwDwYDVQQIEwhTaGFuZ2hhaTERMA8GA1UEBxMIU2hhbmdoYWkxDDAKBgNVBAoT

A1pURTEiMCAGA1UECxMZU21hcnRwaG9uZSBTb2Z0d2FyZSBEZXB0LjEMMAoGA1UE

AxMDWlRFMSEwHwYJKoZIhvcNAQkBFhJzdXBwb3J0QHp0ZS5jb20uY24wggEgMA0G

CSqGSIb3DQEBAQUAA4IBDQAwggEIAoIBAQC6XMcxr5zlAnZfYCeKPgt+w4y/fmB7

SzZSJvCx4hFKKq6m9CHg60vhlVQ4gLkuKb1l+pFbJdrP8yL1YKQqSrWWDAhPcuIl

Lj3UcmzfbMRQhM4mrXf49ees2xyVZO38KjtSSBw/ygvH5PSrX6KFUqQdxVeciLga

tYYoOEpRGKZdeL+HAI0EMFssOow00jPP44IB9Vi9UiEHOqvTHVmDIdQWOmAgWXlA

36sdWsSebLzWXjm2vB6OJaPV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GN0Lz1Tqi+X7CYRZhr+8d5B

JxnSf9jBHPniOFY6H5CuOcUgdav4bC1nHynCIdcUiGNLsJsnY5H48KMBJLb7j+M9

AgtvVP7UzNvWhb98lR5eYhHB2QmcQrmy1KotmDojYMyimvFu6M+O0Ro8XhnF15s1

sAIjJOUFuNWI4+D6ufRfAF0Slrj4O266ePon5MC54zEX3hju

I don't know what to do anymore. I tried to get the certificate and key.pk8 to sign the other firmware but no luck. If anyone could help me I would appreciate it. Thank you in advance!