# Public key failure

**URL:** https://community.xibo.org.uk/t/public-key-failure/9506
**Category:** Xibo Player for Android
**Created:** [April 6, 2017, 1:37pm UTC](https://community.xibo.org.uk/t/public-key-failure/9506 "2017-04-06T13:37:58Z")
**Posts on this page:** 20
**Page:** 1

<div class="post-metadata">

### Author: ![Nicklas\_Olsson](https://community.xibo.org.uk/letter_avatar_proxy/v4/letter/n/71e660/32.png) [@Nicklas\_Olsson](https://community.xibo.org.uk/u/Nicklas_Olsson)
#### Post date: [April 6, 2017, 1:37pm UTC](https://community.xibo.org.uk/t/public-key-failure/9506/1 "2017-04-06T13:37:58Z")

</div>

![](https://community.xibo.org.uk/uploads/default/original/2X/1/191251beb345fa3aec17f2937c73a827ae37d81c.JPG) ![](https://community.xibo.org.uk/uploads/default/original/2X/6/6762c260f561a4478c783855e9bcd362c85a2398.JPG)

This happens way too often. On different screen every time.

?

---

<div class="post-metadata">

### Author: ![Peter](https://community.xibo.org.uk/user_avatar/community.xibo.org.uk/peter/32/8154_2.png) [@Peter](https://community.xibo.org.uk/u/Peter)
#### Post date: [April 6, 2017, 1:58pm UTC](https://community.xibo.org.uk/t/public-key-failure/9506/2 "2017-04-06T13:58:03Z")

</div>

What’s your private and public XMR addresses in Settings / display profile assigned to this device?

Also what Xibo for Android version is this? Should be preferably 1.8 R101 since you’re using 1.8 CMS.

---

<div class="post-metadata">

### Author: ![Nicklas\_Olsson](https://community.xibo.org.uk/letter_avatar_proxy/v4/letter/n/71e660/32.png) [@Nicklas\_Olsson](https://community.xibo.org.uk/u/Nicklas_Olsson)
#### Post date: [April 6, 2017, 2:39pm UTC](https://community.xibo.org.uk/t/public-key-failure/9506/3 "2017-04-06T14:39:02Z")

</div>

The adress is correct, IT work for 3-4 days, then this happen.

Ver is .101

---

<div class="post-metadata">

### Author: ![Nicklas\_Olsson](https://community.xibo.org.uk/letter_avatar_proxy/v4/letter/n/71e660/32.png) [@Nicklas\_Olsson](https://community.xibo.org.uk/u/Nicklas_Olsson)
#### Post date: [April 22, 2017, 8:16am UTC](https://community.xibo.org.uk/t/public-key-failure/9506/4 "2017-04-22T08:16:39Z")

</div>

I may have found the cause of my problem.

All of my boxes are on timers, so they reboot once a day.  
Every time I reboot, I get "can not get public key"  
Something I can fix?  
Some screens goes on/off with the lighting in the rooms, so they reboot, whether I want or not.

/Nicklas

---

<div class="post-metadata">

### Author: ![Peter](https://community.xibo.org.uk/user_avatar/community.xibo.org.uk/peter/32/8154_2.png) [@Peter](https://community.xibo.org.uk/u/Peter)
#### Post date: [April 24, 2017, 8:45am UTC](https://community.xibo.org.uk/t/public-key-failure/9506/5 "2017-04-24T08:45:19Z")

</div>

You can try to navigate to the Displays page -\> Edit display -\> Advanced tab -\> check ‘Reconfigure XMR’ and click Save.

It could be also good to restart Xibo player after making this change.

It shouldn’t be needed to do that after each reboot though.

---

<div class="post-metadata">

### Author: ![urbanit](https://community.xibo.org.uk/letter_avatar_proxy/v4/letter/u/5f8ce5/32.png) [@urbanit](https://community.xibo.org.uk/u/urbanit)
#### Post date: [April 26, 2017, 9:06pm UTC](https://community.xibo.org.uk/t/public-key-failure/9506/6 "2017-04-26T21:06:39Z")

</div>

i get the same issue…  
even if i have done :

Displays page -\> Edit display -\> Advanced tab -\> check 'Reconfigure XMR

223 2017-04-26 19:25 Can’t get Public Key.  
220 2017-04-26 19:25 Key Pair generation failure.  
217 2017-04-26 19:25 Key Pair generation failure.  
215 2017-04-26 19:12 Can’t get Public Key.  
212 2017-04-26 19:12 Key Pair generation failure.  
209 2017-04-26 19:12 Key Pair generation failure.  
206 2017-04-26 19:00 Key Pair generation failure.  
203 2017-04-26 19:00 Can’t get Public Key.  
200 2017-04-26 18:59 Key Pair generation failure.  
197 2017-04-26 18:47 Key Pair generation failure.  
194 2017-04-26 18:47 Can’t get Public Key.  
191 2017-04-26 18:47 Key Pair generation failure.  
190 2017-04-26 18:34 Can’t get Public Key.  
187 2017-04-26 18:34 Key Pair generation failure.  
184 2017-04-26 18:34 Key Pair generation failure.  
182 2017-04-26 18:21 Can’t get Public Key.  
179 2017-04-26 18:21 Key Pair generation failure.  
176 2017-04-26 18:21 Key Pair generation failure.  
173 2017-04-26 18:08 Can’t get Public Key.  
170 2017-04-26 18:08 Key Pair generation failure.  
167 2017-04-26 18:08 Key Pair generation failure.  
164 2017-04-26 17:55 Key Pair generation failure.  
161 2017-04-26 17:55 Can’t get Public Key.  
158 2017-04-26 17:55 Key Pair generation failure.  
156 2017-04-26 17:42 Can’t get Public Key.  
153 2017-04-26 17:42 Key Pair generation failure.  
150 2017-04-26 17:42 Key Pair generation failure.  
149 2017-04-26 17:29 Key Pair generation failure.  
147 2017-04-26 17:17 Can’t get Public Key.  
144 2017-04-26 17:17 Key Pair generation failure.  
141 2017-04-26 17:17 Key Pair generation failure.

---

<div class="post-metadata">

### Author: ![Nicklas\_Olsson](https://community.xibo.org.uk/letter_avatar_proxy/v4/letter/n/71e660/32.png) [@Nicklas\_Olsson](https://community.xibo.org.uk/u/Nicklas_Olsson)
#### Post date: [April 27, 2017, 9:14am UTC](https://community.xibo.org.uk/t/public-key-failure/9506/7 "2017-04-27T09:14:10Z")

</div>

Yep,

The same error every time the android Box reboot…

 ![](https://community.xibo.org.uk/uploads/default/original/2X/d/d8c61566265bf1713fe6170f9a213eb1673f9f2f.JPG)

---

<div class="post-metadata">

### Author: ![dan](https://community.xibo.org.uk/user_avatar/community.xibo.org.uk/dan/32/9115_2.png) [@dan](https://community.xibo.org.uk/u/dan)
#### Post date: [April 27, 2017, 11:53am UTC](https://community.xibo.org.uk/t/public-key-failure/9506/8 "2017-04-27T11:53:35Z")

</div>

This basically means that the player is unable to create or recall the RSA key it generated to communicate with XMR (push messaging from the CMS).

Rekey only clears the key from the CMS side, allowing the Player to send a new key. As this doesn’t work it is possible you have a corrupted key in stored in the player that isn’t being cleared.

Can you try deleting all data for the application (which will require you to reconfigure it when you start it back up), so see if that clears the error.

I will record a 🐛 for the next release to try and detect a corrupt key and self-clear it.

> [@Nicklas\_Olsson](#):
>
> Some screens goes on/off with the lighting in the rooms, so they reboot, whether I want or not.

As a side note this probably isn’t great for the device

---

<div class="post-metadata">

### Author: ![Nicklas\_Olsson](https://community.xibo.org.uk/letter_avatar_proxy/v4/letter/n/71e660/32.png) [@Nicklas\_Olsson](https://community.xibo.org.uk/u/Nicklas_Olsson)
#### Post date: [April 27, 2017, 12:16pm UTC](https://community.xibo.org.uk/t/public-key-failure/9506/9 "2017-04-27T12:16:46Z")

</div>

Will try that.

The displays are in stores, so they turn on with the lighting in the morning, and turn off at night. The reason I chose to do that is that the minix boxes hang out sometimes, now they get an automatic reboot every night.

use Minix x7 mini with autostart then the power goes on.

---

<div class="post-metadata">

### Author: ![Nicklas\_Olsson](https://community.xibo.org.uk/letter_avatar_proxy/v4/letter/n/71e660/32.png) [@Nicklas\_Olsson](https://community.xibo.org.uk/u/Nicklas_Olsson)
#### Post date: [April 28, 2017, 6:01am UTC](https://community.xibo.org.uk/t/public-key-failure/9506/10 "2017-04-28T06:01:23Z")

</div>

Here we go again. Followed your step on one of my screens ysterday. Cleared all data and rekeyed.

Everything works well until…

 ![](https://community.xibo.org.uk/uploads/default/original/2X/6/61e8b6cef890c20bb6e9e2f632c738bfdef35cf4.JPG)Uploading…

The strange thing is that it did work for several hours, so the configuration must be correct.

I’m about to losing my mind

---

<div class="post-metadata">

### Author: ![dan](https://community.xibo.org.uk/user_avatar/community.xibo.org.uk/dan/32/9115_2.png) [@dan](https://community.xibo.org.uk/u/dan)
#### Post date: [April 28, 2017, 6:45am UTC](https://community.xibo.org.uk/t/public-key-failure/9506/11 "2017-04-28T06:45:05Z")

</div>

OK - its still a useful test - its a repeatable problem, not a one off corruption of some sort. That makes me think the key isn’t being stored correctly.

I’ll look into this asap - the error message itself is actually harmless if you don’t use push messaging for anything. You can lower your collection interval to compensate and ignore the message.

Once I have something to try, I will PM you and @urbanit a link to a new APK to try

---

<div class="post-metadata">

### Author: ![Nicklas\_Olsson](https://community.xibo.org.uk/letter_avatar_proxy/v4/letter/n/71e660/32.png) [@Nicklas\_Olsson](https://community.xibo.org.uk/u/Nicklas_Olsson)
#### Post date: [April 28, 2017, 8:15am UTC](https://community.xibo.org.uk/t/public-key-failure/9506/12 "2017-04-28T08:15:58Z")

</div>

Thank u.

I do the same thing on a 24/7 screen and se if its the reboot that make the problem.

---

<div class="post-metadata">

### Author: ![Nicklas\_Olsson](https://community.xibo.org.uk/letter_avatar_proxy/v4/letter/n/71e660/32.png) [@Nicklas\_Olsson](https://community.xibo.org.uk/u/Nicklas_Olsson)
#### Post date: [April 28, 2017, 3:55pm UTC](https://community.xibo.org.uk/t/public-key-failure/9506/13 "2017-04-28T15:55:15Z")

</div>

Try to reboot my device with the new APK.

Here´s the log:

ID Datum Meddelande  
58420 2017-04-28 17:52 Can’t get Public Key - NPE  
58419 2017-04-28 17:52 Key Pair generation failure. java.io.NotSerializableException  
58418 2017-04-28 17:52 Key Pair generation failure. java.io.NotSerializableException  
58417

---

<div class="post-metadata">

### Author: ![dan](https://community.xibo.org.uk/user_avatar/community.xibo.org.uk/dan/32/9115_2.png) [@dan](https://community.xibo.org.uk/u/dan)
#### Post date: [April 29, 2017, 10:14am UTC](https://community.xibo.org.uk/t/public-key-failure/9506/14 "2017-04-29T10:14:16Z")

</div>

I may be closer to understanding this - i’ve build another beta APK and made it available at the same URL as before. Would it be possible for you to try again please?

---

<div class="post-metadata">

### Author: ![Nicklas\_Olsson](https://community.xibo.org.uk/letter_avatar_proxy/v4/letter/n/71e660/32.png) [@Nicklas\_Olsson](https://community.xibo.org.uk/u/Nicklas_Olsson)
#### Post date: [April 29, 2017, 6:00pm UTC](https://community.xibo.org.uk/t/public-key-failure/9506/15 "2017-04-29T18:00:16Z")

</div>

Same name on the file?

Run it now, let u now tomorrow =)

---

<div class="post-metadata">

### Author: ![Nicklas\_Olsson](https://community.xibo.org.uk/letter_avatar_proxy/v4/letter/n/71e660/32.png) [@Nicklas\_Olsson](https://community.xibo.org.uk/u/Nicklas_Olsson)
#### Post date: [April 30, 2017, 6:51am UTC](https://community.xibo.org.uk/t/public-key-failure/9506/16 "2017-04-30T06:51:49Z")

</div>

61507 2017-04-30 00:03  
Key Pair generation failure. java.io.NotSerializableException

61647 2017-04-30 02:00   
Unable to open message: javax.crypto.BadPaddingException/error:0407106B:rsa routines:RSA\_padding\_check\_PKCS1\_type\_2:block type is not 02

---

<div class="post-metadata">

### Author: ![dan](https://community.xibo.org.uk/user_avatar/community.xibo.org.uk/dan/32/9115_2.png) [@dan](https://community.xibo.org.uk/u/dan)
#### Post date: [May 3, 2017, 10:04am UTC](https://community.xibo.org.uk/t/public-key-failure/9506/17 "2017-05-03T10:04:51Z")

</div>

Hmm - would it be possible to put auditing on in your display settings profile and also on the display itself? I am hoping to get another message logged telling me where it failed.

---

<div class="post-metadata">

### Author: ![Nicklas\_Olsson](https://community.xibo.org.uk/letter_avatar_proxy/v4/letter/n/71e660/32.png) [@Nicklas\_Olsson](https://community.xibo.org.uk/u/Nicklas_Olsson)
#### Post date: [May 3, 2017, 4:40pm UTC](https://community.xibo.org.uk/t/public-key-failure/9506/18 "2017-05-03T16:40:57Z")

</div>

Loglevel = audit.

Is it any more setting i need to do?

 ![](https://community.xibo.org.uk/uploads/default/original/2X/8/85bacd7180ce1ab8705b28d5e770efc70c87792d.JPG)

---

<div class="post-metadata">

### Author: ![Nicklas\_Olsson](https://community.xibo.org.uk/letter_avatar_proxy/v4/letter/n/71e660/32.png) [@Nicklas\_Olsson](https://community.xibo.org.uk/u/Nicklas_Olsson)
#### Post date: [May 4, 2017, 5:27am UTC](https://community.xibo.org.uk/t/public-key-failure/9506/19 "2017-05-04T05:27:07Z")

</div>

The system rebooted 00:00

 ![](https://community.xibo.org.uk/uploads/default/original/2X/8/80d809c880635c238c78187adda5625458f321e1.PNG)

---

<div class="post-metadata">

### Author: ![dan](https://community.xibo.org.uk/user_avatar/community.xibo.org.uk/dan/32/9115_2.png) [@dan](https://community.xibo.org.uk/u/dan)
#### Post date: [May 4, 2017, 6:59am UTC](https://community.xibo.org.uk/t/public-key-failure/9506/20 "2017-05-04T06:59:14Z")

</div>

What version of android do you have running on your Minix?

Using the extra logging I have found some information on the issue which states it was a bug in Android 4.1.1 (for reference : [https://issuetracker.google.com/issues/36955953](https://issuetracker.google.com/issues/36955953))

For 1.8 we do require android 4.4 or higher

[Next page](https://community.xibo.org.uk/t/public-key-failure/9506.md?page=2)
