语言

Menu
Sites
Language
Error 23 / Certificate Error while performing the native demo app

Hello all,

I started today with Tizen development (native application) using Tizen studio 1.0.1. I started with the demo project described on tizen.org: Native Application for wearable. I did it twice, once with wearable v2.3.2 and with wearable v2.3.1. Both run proper on the emulator. But when I want to upload them to my S2, both versions failed with error 23, said:

Cannot install application.

Error code: SIGNATURE_VERIFICATION_FAILED
Error message: SIGNATURE_VERIFICATION_FAILED
Command: /usr/bin/pkgcmd -G -q -i -t tpk -p "/opt/usr/apps/tmp/org.example.watch_test2-1.0.0-arm.tpk"
Management: Check whether the package is modified illegally. If there is an installed package which has same name and different signature with your package, you can receive this error return also.

As this is my very first app, there is surely no other app with the same name. Certificate is also setz-up properly, because the emulator works fine. Finally, I literally follow the steps on tizen.org.

Who can give me a good hint how to solve this challenge?

regards and Thanks

Sternd

 

 

查看选择的答案

响应

9 回复
Mango Bar

Error 23 mostly related with certificate issue. Check the following link:

https://wiki.tizen.org/wiki/SDK#error_23

The possible reason could be :-

1)  The current date and time  of your device  are not updated. So update your device correct date time first.

2) You dont have distributor certificate for your GEAR S2. Make sure you create disributor certificate for your S2. Emulator can work with author certificate only. Check the following link for whole certificate creation process (both Author and Distributor).  

Before create certificate update your device date time which should be matched with your system time.

http://developer.samsung.com/z/develop/getting-certificates/create

3) After certificate creation, right click on your device UUID from connection Explorer and click "Permit to install applications".

if you got message "Succeeded to upload a certificate" , then  there is no certificate issue for your device. But if you got any failure message then still  you cant create distributor certificate properly.

Bernd Stenner

Hi Mango Bar, 

thanks for your reply. I've checked your suggestions

1) date/time is correct

2)I used the tizen-distributor-signer cert as described in the articel "Working with the Certificate Profile" https://developer.tizen.org/development/tizen-studio/native-tools/managing-projects/certificate-registration. In fact, I have no other distributor cert. The link you provided, doesn't seem to me to match to Tizen Studio 1.0.1 but probably refers to equivalent tool for SDK (instead for Studio)?

3) I do not have such an entry "Permit [...]"  in Connection Explorer's context menu.

regards

sternd

Mango Bar

You may miss something. 

I am using Tizen Studion 1.0.1 also. My provided link describes the Tizen Studio 1.0.1  certificate creation prosess and i did it in my own
Tizen Studio 1.0.1 by following that described steps. Go to

" Tools --> Certificate Manager " from your tizen studio and you will get that described steps one by one. Check the following screenshot

http://imgur.com/a/SOHgX

http://imgur.com/a/xIQtw

http://imgur.com/a/lt45v

Bernd Stenner

thx for your patience

I follow exact the steps you described, but my context menu does not have the last two entries

> Installed Web Apps List

> Permit to install application

Do you have any idea why this is so?

Mark as answer
Mango Bar

From package manager "Extension SDK" , Check whether you have installed Samsung Certificate and Wearable extension or not . You have to install these two extension. 

http://imgur.com/a/xSaMN

http://imgur.com/a/cM4AV

Bernd Stenner

pretty cool Mango Bar, thx a lot!

Now it works. It's a pitty that the HowTo "Start developing a native app" on tizen.org did not show up this procedure.

 

regards

Bernd

Anup DSouza

I'm having the same error. The extensions are installed correctly and selecting 'Permit to install' shows a dialog saying its not required for the attached device. Still the installation fails, any ideas why ?

Anup DSouza

Error Log:

p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px '.SF NS Text'} p.p2 {margin: 0.0px 0.0px 0.0px 0.0px; text-indent: 0.3px; font: 11.0px '.SF NS Text'; min-height: 13.0px}

Cannot install application.
 
Error code: SIGNATURE_VERIFICATION_FAILED
Error message: SIGNATURE_VERIFICATION_FAILED
Command: /usr/bin/pkgcmd -q -i -t tpk -p "/opt/usr/apps/tmp/org.example.basicui-1.0.0-arm.tpk"
Management: Check whether the package is modified illegally. If there is an installed package which has same name and different signature with your package, you can receive this error return also.
 
Console Log:
 
p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px 'Eco Sans Mono'} p.p2 {margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px 'Eco Sans Mono'; min-height: 14.0px}

# If you want to see the detailed information,

# please set the logging level to DEBUG in Preferences and check the log file in '/Users/anupdsouza/tizen-studio-data/ide/logs/ide-20170308_131711.log'.

 

[Deploying the package...]

    RDS: On

[Creating the package...]

    Created the package: /Users/anupdsouza/Development/Tizen/BasicUI/Debug/org.example.basicui-1.0.0-arm.tpk

[Transferring the package...]

    Transferred the package: /Users/anupdsouza/Development/Tizen/BasicUI/Debug/org.example.basicui-1.0.0-arm.tpk -> /opt/usr/apps/tmp

[Installing the package...]

    Uninstalling the package...

path is /opt/usr/apps/tmp/org.example.basicui-1.0.0-arm.tpk

start process (install)

.

error : 23

 

end process (fail)

processing result : SIGNATURE_VERIFICATION_FAILED [23] failed

spend time for pkgcmd is [4192]ms

cmd_ret:23

(8.345 sec)

Anup DSouza

Solved it. Had to create a new Samsung Certificate for it to work. Strangely, the certificate manager did not show any option to do this the first time around.