# Authentication-demo-ui Tutorial

**URL:** <https://community.mosip.io/t/authentication-demo-ui-tutorial/310>\
**Category:** Developer\
**Created:** [January 24, 2023, 4:16pm UTC](https://community.mosip.io/t/authentication-demo-ui-tutorial/310 "2023-01-24T16:16:56Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![bch](https://dub1.discourse-cdn.com/flex017/user_avatar/community.mosip.io/bch/32/438_2.png) [@bch](https://community.mosip.io/u/bch)\
**Post date:** [January 24, 2023, 4:16pm UTC](https://community.mosip.io/t/authentication-demo-ui-tutorial/310/1 "2023-01-24T16:16:56Z")

</div>

Hi,

Can you sahre a tutorial to integrate, create partner and certificat for authentication-demo-ui.

---

<div class="post-metadata">

**Author:** ![Krish](https://dub1.discourse-cdn.com/flex017/user_avatar/community.mosip.io/krish/32/8_2.png) [@Krish](https://community.mosip.io/u/Krish)\
**Post date:** [January 25, 2023, 2:43am UTC](https://community.mosip.io/t/authentication-demo-ui-tutorial/310/2 "2023-01-25T02:43:06Z")

</div>

Hell bch,

You can take it from here

> <https://github.com/hosurkrishnan/shareabledocs/blob/main/MSD-AuthdemoUI-Certificateexchangewithpartners-250123-0233%20(1).pdf>

---

<div class="post-metadata">

**Author:** ![bch](https://dub1.discourse-cdn.com/flex017/user_avatar/community.mosip.io/bch/32/438_2.png) [@bch](https://community.mosip.io/u/bch)\
**Post date:** [January 25, 2023, 2:17pm UTC](https://community.mosip.io/t/authentication-demo-ui-tutorial/310/3 "2023-01-25T14:17:38Z")

</div>

Thank you @Krish for your help 🙂  
I will work with this tutorial and I will you notify if it well works.

---

<div class="post-metadata">

**Author:** ![bch](https://dub1.discourse-cdn.com/flex017/user_avatar/community.mosip.io/bch/32/438_2.png) [@bch](https://community.mosip.io/u/bch)\
**Post date:** [February 3, 2023, 11:09am UTC](https://community.mosip.io/t/authentication-demo-ui-tutorial/310/4 "2023-02-03T11:09:14Z")

</div>

Hi @Krish,

I created the two partners auth and misp with the certificates.  
In the Step 9 by excuting the demo application i have an issue there is no certificat with applicationId = IDA and referenceId=PARTNER.

In code source there is a getCertificate methode to get the certificat ( IDA, PARTNER)

 ![cert](https://europe1.discourse-cdn.com/flex017/uploads/mosip1/original/1X/6a8e488dacf8f2ee16d2bccc467645e305cd08cd.jpeg)

---

<div class="post-metadata">

**Author:** ![bch](https://dub1.discourse-cdn.com/flex017/user_avatar/community.mosip.io/bch/32/438_2.png) [@bch](https://community.mosip.io/u/bch)\
**Post date:** [February 7, 2023, 9:15am UTC](https://community.mosip.io/t/authentication-demo-ui-tutorial/310/5 "2023-02-07T09:15:50Z")

</div>

Hi again @Krish,  
I try to create a CSR using by admin GUI but i have the bellow issue:

 ![image](https://europe1.discourse-cdn.com/flex017/uploads/mosip1/original/1X/0dc1a765804d4cb9955c860a56a1ac3283791a81.png)

---

<div class="post-metadata">

**Author:** ![thamarai\_kannan](https://dub1.discourse-cdn.com/flex017/user_avatar/community.mosip.io/thamarai_kannan/32/83_2.png) [@thamarai\_kannan](https://community.mosip.io/u/thamarai_kannan)\
**Post date:** [February 7, 2023, 3:54pm UTC](https://community.mosip.io/t/authentication-demo-ui-tutorial/310/6 "2023-02-07T15:54:58Z")

</div>

Hi

IDA Partner certificate will be created by system during IDA Deployment. Request you to check key\_alias table in IDA db for application\_id = IDA & reference\_id =PARTNER. Also confirm the count of records in this table

---

<div class="post-metadata">

**Author:** ![bch](https://dub1.discourse-cdn.com/flex017/user_avatar/community.mosip.io/bch/32/438_2.png) [@bch](https://community.mosip.io/u/bch)\
**Post date:** [February 7, 2023, 3:57pm UTC](https://community.mosip.io/t/authentication-demo-ui-tutorial/310/7 "2023-02-07T15:57:43Z")

</div>

Hi @thamarai_kannan,

i found this records in key-alias table:

 ![image](https://europe1.discourse-cdn.com/flex017/uploads/mosip1/original/1X/f6635cb31552609d525f12f3edd822f1baf95648.png)

---

<div class="post-metadata">

**Author:** ![thamarai\_kannan](https://dub1.discourse-cdn.com/flex017/user_avatar/community.mosip.io/thamarai_kannan/32/83_2.png) [@thamarai\_kannan](https://community.mosip.io/u/thamarai_kannan)\
**Post date:** [February 7, 2023, 4:19pm UTC](https://community.mosip.io/t/authentication-demo-ui-tutorial/310/8 "2023-02-07T16:19:10Z")

</div>

Hi, the screen shot showed is from keymgr.keyalias table. Request you to check in ida.keyalias table

DB : mosip\_ida  
Schema : ida  
Table : key\_alias

---

<div class="post-metadata">

**Author:** ![bch](https://dub1.discourse-cdn.com/flex017/user_avatar/community.mosip.io/bch/32/438_2.png) [@bch](https://community.mosip.io/u/bch)\
**Post date:** [February 7, 2023, 4:37pm UTC](https://community.mosip.io/t/authentication-demo-ui-tutorial/310/9 "2023-02-07T16:37:05Z")

</div>

Hi,

key-alias of mosip-ida database is empty.

---

<div class="post-metadata">

**Author:** ![thamarai\_kannan](https://dub1.discourse-cdn.com/flex017/user_avatar/community.mosip.io/thamarai_kannan/32/83_2.png) [@thamarai\_kannan](https://community.mosip.io/u/thamarai_kannan)\
**Post date:** [February 7, 2023, 4:49pm UTC](https://community.mosip.io/t/authentication-demo-ui-tutorial/310/10 "2023-02-07T16:49:31Z")

</div>

In this case your ida key generator pod not completed successfully. Please check other table in the ida database. If all tables are empty, request you redeploy the ida so keys will regenerate

---

<div class="post-metadata">

**Author:** ![bch](https://dub1.discourse-cdn.com/flex017/user_avatar/community.mosip.io/bch/32/438_2.png) [@bch](https://community.mosip.io/u/bch)\
**Post date:** [February 7, 2023, 4:54pm UTC](https://community.mosip.io/t/authentication-demo-ui-tutorial/310/11 "2023-02-07T16:54:26Z")

</div>

@thamarai_kannan  
Yes all ida tables are empty expect the key-policy-def table.  
Ok i will deploy it  
There is a git repository of ida key generator ?

---

<div class="post-metadata">

**Author:** ![thamarai\_kannan](https://dub1.discourse-cdn.com/flex017/user_avatar/community.mosip.io/thamarai_kannan/32/83_2.png) [@thamarai\_kannan](https://community.mosip.io/u/thamarai_kannan)\
**Post date:** [February 7, 2023, 5:10pm UTC](https://community.mosip.io/t/authentication-demo-ui-tutorial/310/12 "2023-02-07T17:10:16Z")

</div>

Please redeploy ida module using mosip-infra script. After redeploy you can see keygenerator job in IDA namespace. This job will insert records

---

<div class="post-metadata">

**Author:** ![bch](https://dub1.discourse-cdn.com/flex017/user_avatar/community.mosip.io/bch/32/438_2.png) [@bch](https://community.mosip.io/u/bch)\
**Post date:** [February 8, 2023, 7:55am UTC](https://community.mosip.io/t/authentication-demo-ui-tutorial/310/13 "2023-02-08T07:55:51Z")

</div>

Hi @thamarai_kannan,  
Thanks for reply i will check it.

If you you have another way to generate this certificat in local developement machine I would be grateful.

---

<div class="post-metadata">

**Author:** ![thamarai\_kannan](https://dub1.discourse-cdn.com/flex017/user_avatar/community.mosip.io/thamarai_kannan/32/83_2.png) [@thamarai\_kannan](https://community.mosip.io/u/thamarai_kannan)\
**Post date:** [February 8, 2023, 8:28am UTC](https://community.mosip.io/t/authentication-demo-ui-tutorial/310/14 "2023-02-08T08:28:56Z")

</div>

you can run kernel keygenerator in Local system by pointing to your local IDA DB. it will generate keys.

Note : For this you should connect with hsm.

Please select required branch for execution

> **[keymanager/kernel/keys-generator at master · mosip/keymanager](https://github.com/mosip/keymanager/tree/master/kernel/keys-generator)**
>
> master/kernel/keys-generator

---

<div class="post-metadata">

**Author:** ![bch](https://dub1.discourse-cdn.com/flex017/user_avatar/community.mosip.io/bch/32/438_2.png) [@bch](https://community.mosip.io/u/bch)\
**Post date:** [February 9, 2023, 7:36am UTC](https://community.mosip.io/t/authentication-demo-ui-tutorial/310/15 "2023-02-09T07:36:38Z")

</div>

Hi @thamarai_kannan,  
Thanks for your reply.  
I will try key-generator with ida-db,

Otherwise should change the bellow configuration ?

mosip.kernel.keymanager.autogen.appids.list=ROOT,KERNEL:SIGN,PRE\_REGISTRATION,REGISTRATION,REGISTRATION\_PROCESSOR,ID\_REPO,KERNEL:IDENTITY\_CACHE,RESIDENT,PMS,ADMIN\_SERVICES

mosip.kernel.keymanager.autogen.basekeys.list=RESIDENT:mpartner-default-resident

---

<div class="post-metadata">

**Author:** ![thamarai\_kannan](https://dub1.discourse-cdn.com/flex017/user_avatar/community.mosip.io/thamarai_kannan/32/83_2.png) [@thamarai\_kannan](https://community.mosip.io/u/thamarai_kannan)\
**Post date:** [February 9, 2023, 9:39am UTC](https://community.mosip.io/t/authentication-demo-ui-tutorial/310/16 "2023-02-09T09:39:46Z")

</div>

HI, Required properties you can refer from “id-authentication-default.properties” from mosip-config.

Please copy the same to local and execute Keygen job

For LTS : [mosip-config/id-authentication-default.properties at 1.2.0.1-v3 · mosip/mosip-config · GitHub](https://github.com/mosip/mosip-config/blob/1.2.0.1-v3/id-authentication-default.properties)

---

<div class="post-metadata">

**Author:** ![bch](https://dub1.discourse-cdn.com/flex017/user_avatar/community.mosip.io/bch/32/438_2.png) [@bch](https://community.mosip.io/u/bch)\
**Post date:** [February 13, 2023, 9:48am UTC](https://community.mosip.io/t/authentication-demo-ui-tutorial/310/17 "2023-02-13T09:48:17Z")

</div>

Hi @thamarai_kannan

What’s the value of ${mosip.kernel.zkcrypt.publick.reference.id} should be ?  
It’s required this certificats ?

---

<div class="post-metadata">

**Author:** ![thamarai\_kannan](https://dub1.discourse-cdn.com/flex017/user_avatar/community.mosip.io/thamarai_kannan/32/83_2.png) [@thamarai\_kannan](https://community.mosip.io/u/thamarai_kannan)\
**Post date:** [February 13, 2023, 5:26pm UTC](https://community.mosip.io/t/authentication-demo-ui-tutorial/310/18 "2023-02-13T17:26:08Z")

</div>

hi, above mentioned key is wrong.  
Please find the correct one from id-authentication-default.properties

mosip.kernel.zkcrypto.publickey.reference.id=CRED\_SERVICE

---

<div class="post-metadata">

**Author:** ![bch](https://dub1.discourse-cdn.com/flex017/user_avatar/community.mosip.io/bch/32/438_2.png) [@bch](https://community.mosip.io/u/bch)\
**Post date:** [February 15, 2023, 10:28am UTC](https://community.mosip.io/t/authentication-demo-ui-tutorial/310/21 "2023-02-15T10:28:14Z")

</div>

Thank you @thamarai_kannan for your help  
I generated the ida-keys using your recomendation.  
I will try to run the authentication-demo-ui.

If i have another question il will post it in new topic.

Thank you again 🙂

---

<div class="post-metadata">

**Author:** ![gsasikumar](https://avatars.discourse-cdn.com/v4/letter/g/b782af/32.png) [@gsasikumar](https://community.mosip.io/u/gsasikumar)\
**Post date:** [February 27, 2023, 8:41am UTC](https://community.mosip.io/t/authentication-demo-ui-tutorial/310/22 "2023-02-27T08:41:58Z")

</div>

Closed on February 27, 2023, 8:41am UTC


