# Artifact and mosip key manager

**URL:** https://community.mosip.io/t/artifact-and-mosip-key-manager/1463
**Category:** General
**Created:** [July 22, 2024, 5:46am UTC](https://community.mosip.io/t/artifact-and-mosip-key-manager/1463 "2024-07-22T05:46:28Z")
**Posts on this page:** 12
**Page:** 1

<div class="post-metadata">

### Author: ![Dattatray\_More](https://dub1.discourse-cdn.com/flex017/user_avatar/community.mosip.io/dattatray_more/32/899_2.png) [@Dattatray\_More](https://community.mosip.io/u/Dattatray_More)
#### Post date: [July 22, 2024, 5:46am UTC](https://community.mosip.io/t/artifact-and-mosip-key-manager/1463/1 "2024-07-22T05:46:29Z")

</div>

Hello, i want to setup the mossip key manager using artifact, i am completely new into it and i want to setup it using docker, could you please share me the setps for it.

---

<div class="post-metadata">

### Author: ![sanchi-singh24](https://dub1.discourse-cdn.com/flex017/user_avatar/community.mosip.io/sanchi-singh24/32/538_2.png) [@sanchi-singh24](https://community.mosip.io/u/sanchi-singh24)
#### Post date: [July 22, 2024, 8:01am UTC](https://community.mosip.io/t/artifact-and-mosip-key-manager/1463/2 "2024-07-22T08:01:46Z")

</div>

Hi @Dattatray_More

Welcome to the MOSIP Community!

As I understand you are new to MOSIP infrastructure no worries we have detailed documentation which will help and guide you through the setup.

- MOSIP Overview - [Home | MOSIP Docs 1.2.0](https://docs.mosip.io/1.2.0)
- KeyManager Overview - [Key Manager | MOSIP Docs 1.2.0](https://docs.mosip.io/1.2.0/modules/keymanager)
- KeyManager Developer setup - [Key Manager Developers Guide | MOSIP Docs 1.2.0](https://docs.mosip.io/1.2.0/modules/keymanager/keymanager-developer-guide)

Please refer above docs in case still you have questions or doubts, let us know in detail we will guide you through it.

Best regards,  
Team MOSIP

---

<div class="post-metadata">

### Author: ![Dattatray\_More](https://dub1.discourse-cdn.com/flex017/user_avatar/community.mosip.io/dattatray_more/32/899_2.png) [@Dattatray\_More](https://community.mosip.io/u/Dattatray_More)
#### Post date: [July 22, 2024, 10:01am UTC](https://community.mosip.io/t/artifact-and-mosip-key-manager/1463/3 "2024-07-22T10:01:48Z")

</div>

Hello, i had followed the documentations and i am getting running artifact container successfully, but for key manager service i am not able to run docker container with linking to the artifact container,  
“docker run --name kms1 --network  
my\_custom\_network -e BACKEND\_URL=[http://artifact2:8080](http://artifact2:8080) kms  
\*\*Download the client from \*\*  
**Zip File Path: artifactory/libs-release-local/hsm/client.zip** ”  
bolded format are the output of the key manager service container

---

<div class="post-metadata">

### Author: ![Dattatray\_More](https://dub1.discourse-cdn.com/flex017/user_avatar/community.mosip.io/dattatray_more/32/899_2.png) [@Dattatray\_More](https://community.mosip.io/u/Dattatray_More)
#### Post date: [July 22, 2024, 12:23pm UTC](https://community.mosip.io/t/artifact-and-mosip-key-manager/1463/4 "2024-07-22T12:23:59Z")

</div>

Hello, i found this  
“[keymanager/kernel/kernel-keymanager-service/configure\_start.sh at master · mosip/keymanager · GitHub](https://github.com/mosip/keymanager/blob/master/kernel/kernel-keymanager-service/configure_start.sh)”  
where i am not able to find the url of artifact, can u please share me any documentory or anyflow so i can follow it for an artifactory

---

<div class="post-metadata">

### Author: ![ckm007](https://dub1.discourse-cdn.com/flex017/user_avatar/community.mosip.io/ckm007/32/264_2.png) [@ckm007](https://community.mosip.io/u/ckm007)
#### Post date: [July 23, 2024, 6:31am UTC](https://community.mosip.io/t/artifact-and-mosip-key-manager/1463/5 "2024-07-23T06:31:57Z")

</div>

Hi @Dattatray_More we need to provide the artifactory url as env var **artifactory\_url\_env**.  
reference:

1. [keymanager/kernel/kernel-keymanager-service/Dockerfile at master · mosip/keymanager · GitHub](https://github.com/mosip/keymanager/blob/master/kernel/kernel-keymanager-service/Dockerfile#L49)
2. [keymanager/kernel/kernel-keymanager-service/configure\_start.sh at master · mosip/keymanager · GitHub](https://github.com/mosip/keymanager/blob/master/kernel/kernel-keymanager-service/configure_start.sh#L12)

Please check once by adding the artifactory url to keymanager as env variable.

---

<div class="post-metadata">

### Author: ![Dattatray\_More](https://dub1.discourse-cdn.com/flex017/user_avatar/community.mosip.io/dattatray_more/32/899_2.png) [@Dattatray\_More](https://community.mosip.io/u/Dattatray_More)
#### Post date: [July 23, 2024, 6:37am UTC](https://community.mosip.io/t/artifact-and-mosip-key-manager/1463/6 "2024-07-23T06:37:54Z")

</div>

yes i understood, we need to add artifact url as env , can u share me artifact url so i can use it .

---

<div class="post-metadata">

### Author: ![ckm007](https://dub1.discourse-cdn.com/flex017/user_avatar/community.mosip.io/ckm007/32/264_2.png) [@ckm007](https://community.mosip.io/u/ckm007)
#### Post date: [July 23, 2024, 7:12am UTC](https://community.mosip.io/t/artifact-and-mosip-key-manager/1463/7 "2024-07-23T07:12:16Z")

</div>

> [@Dattatray\_More](#):
>
> [http://artifact2:8080](http://artifact2:8080)

artifactory url is actually the server url of live artifactory server.

above should be the value of artifactory\_url\_env .

---

<div class="post-metadata">

### Author: ![ckm007](https://dub1.discourse-cdn.com/flex017/user_avatar/community.mosip.io/ckm007/32/264_2.png) [@ckm007](https://community.mosip.io/u/ckm007)
#### Post date: [July 24, 2024, 4:43am UTC](https://community.mosip.io/t/artifact-and-mosip-key-manager/1463/8 "2024-07-24T04:43:38Z")

</div>

@Dattatray_More can you confirm if the problem is solved with this?

---

<div class="post-metadata">

### Author: ![Dattatray\_More](https://dub1.discourse-cdn.com/flex017/user_avatar/community.mosip.io/dattatray_more/32/899_2.png) [@Dattatray\_More](https://community.mosip.io/u/Dattatray_More)
#### Post date: [July 24, 2024, 6:22am UTC](https://community.mosip.io/t/artifact-and-mosip-key-manager/1463/9 "2024-07-24T06:22:01Z")

</div>

Hello @ckm007 [GitHub - mosip/artifactory-ref-impl: Contains all the necessary run time artifacts required by mosip modules](https://github.com/mosip/artifactory-ref-impl.git)  
i am using this as artifact and running on docker, container is successfully running and now i want to use this artifact server as backend to the key manager service, how can i use this container as artifact\_server\_url in kms

---

<div class="post-metadata">

### Author: ![ckm007](https://dub1.discourse-cdn.com/flex017/user_avatar/community.mosip.io/ckm007/32/264_2.png) [@ckm007](https://community.mosip.io/u/ckm007)
#### Post date: [July 25, 2024, 6:36am UTC](https://community.mosip.io/t/artifact-and-mosip-key-manager/1463/10 "2024-07-25T06:36:48Z")

</div>

pass an env variable  
Key = artifactory-ref-impl  
value: [http://artifact2:8080/](http://artifact2:8080/)

with this env variable being passed to the keymanager docker it should be able to connect to the artifactory and continue.  
Also make sure they are in same docker network so that they can access each other.

---

<div class="post-metadata">

### Author: ![Varaniya1](https://dub1.discourse-cdn.com/flex017/user_avatar/community.mosip.io/varaniya1/32/1322_2.png) [@Varaniya1](https://community.mosip.io/u/Varaniya1)
#### Post date: [August 19, 2024, 5:38am UTC](https://community.mosip.io/t/artifact-and-mosip-key-manager/1463/11 "2024-08-19T05:38:53Z")

</div>

Hi @Dattatray_More ,

Can you confirm whether this issue resolved? if you are facing anymore issues please let us know

Regards,  
Varaniya S  
On behalf of MOSIP

---

<div class="post-metadata">

### Author: ![sanchi-singh24](https://dub1.discourse-cdn.com/flex017/user_avatar/community.mosip.io/sanchi-singh24/32/538_2.png) [@sanchi-singh24](https://community.mosip.io/u/sanchi-singh24)
#### Post date: [July 16, 2025, 10:11am UTC](https://community.mosip.io/t/artifact-and-mosip-key-manager/1463/12 "2025-07-16T10:11:34Z")

</div>


