# Error generating test.json file . cert-tools :: the following arguments are required: --issuer\_id

**URL:** <https://community.blockcerts.org/t/error-generating-test-json-file-cert-tools-the-following-arguments-are-required-issuer-id/2727>\
**Category:** Technical\
**Created:** [January 29, 2021, 12:51pm UTC](https://community.blockcerts.org/t/error-generating-test-json-file-cert-tools-the-following-arguments-are-required-issuer-id/2727 "2021-01-29T12:51:40Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![nitinb](https://avatars.discourse-cdn.com/v4/letter/n/82dd89/32.png) [@nitinb](https://community.blockcerts.org/u/nitinb)\
**Post date:** [January 29, 2021, 12:51pm UTC](https://community.blockcerts.org/t/error-generating-test-json-file-cert-tools-the-following-arguments-are-required-issuer-id/2727/1 "2021-01-29T12:51:40Z")

</div>

I am trying to create test.json file in cert-tools rep.

I used  
create-certificate-template -c conf.ini to generate but got following error-

usage: create-certificate-template [-h] [-c MY\_CONFIG] [–data\_dir DATA\_DIR]  
[–issuer\_logo\_file ISSUER\_LOGO\_FILE]  
[–cert\_image\_file CERT\_IMAGE\_FILE]  
[–issuer\_url ISSUER\_URL]  
[–issuer\_certs\_url ISSUER\_CERTS\_URL]  
–issuer\_email ISSUER\_EMAIL --issuer\_name  
ISSUER\_NAME --issuer\_id ISSUER\_ID  
[–issuer\_key ISSUER\_KEY]  
[–certificate\_description CERTIFICATE\_DESCRIPTION]  
–certificate\_title CERTIFICATE\_TITLE  
–criteria\_narrative CRITERIA\_NARRATIVE  
[–template\_dir TEMPLATE\_DIR]  
[–template\_file\_name TEMPLATE\_FILE\_NAME]  
[–hash\_emails]  
[–revocation\_list REVOCATION\_LIST]  
[–issuer\_public\_key ISSUER\_PUBLIC\_KEY]  
–badge\_id BADGE\_ID  
[–issuer\_signature\_lines ISSUER\_SIGNATURE\_LINES]  
[–additional\_global\_fields ADDITIONAL\_GLOBAL\_FIELDS]  
[–additional\_per\_recipient\_fields ADDITIONAL\_PER\_RECIPIENT\_FIELDS]  
[–display\_html DISPLAY\_HTML]  
create-certificate-template: error: the following arguments are required: --issuer\_id

@madison @enriquelizaso Please help.

Thanks

---

<div class="post-metadata">

**Author:** ![nitinb](https://avatars.discourse-cdn.com/v4/letter/n/82dd89/32.png) [@nitinb](https://community.blockcerts.org/u/nitinb)\
**Post date:** [January 29, 2021, 12:55pm UTC](https://community.blockcerts.org/t/error-generating-test-json-file-cert-tools-the-following-arguments-are-required-issuer-id/2727/2 "2021-01-29T12:55:00Z")

</div>

My conf.ini file looks like this–

# issuer information

issuer\_url = [https://www.collegeURL.com/](https://www.collegeURL.com/)  
issuer\_email = [college@issuer.org](mailto:college@issuer.org)  
issuer\_name = College X  
issuer\_signature\_lines={“fields”: [{“job\_title”: “Professor”,“signature\_image”: “images/issuer-signature.png”,“name”: “Professor X”}]}

# certificate information

certificate\_description =This Certificate verifies that the certificate is genuine.  
certificate\_title = Certificate of Authenticity  
criteria\_narrative=details are genuine and verified.  
badge\_id = 7aecc414-ee70-4fe8-952f-2be7d037d61e

# images

issuer\_logo\_file = images/My\_LOGO.png

# images/logo.png

cert\_image\_file = images/certificate-image.png  
issuer\_signature\_file = images/issuer-signature.png

###################

## TEMPLATE DATA

###################

data\_dir = sample\_data

# template output directory

template\_dir = certificate\_templates  
template\_file\_name = test.json

##############################

## INSTANTIATE BATCH CONFIG

##############################  
unsigned\_certificates\_dir = unsigned\_certificates  
roster = rosters/roster\_testnet.csv  
filename\_format = uuid  
no\_clobber = True

---

<div class="post-metadata">

**Author:** ![nitinb](https://avatars.discourse-cdn.com/v4/letter/n/82dd89/32.png) [@nitinb](https://community.blockcerts.org/u/nitinb)\
**Post date:** [January 29, 2021, 12:56pm UTC](https://community.blockcerts.org/t/error-generating-test-json-file-cert-tools-the-following-arguments-are-required-issuer-id/2727/3 "2021-01-29T12:56:13Z")

</div>

> [@nitinb](#):
>
> –issuer\_id

So basically How can I generate a new issuer\_id?

---

<div class="post-metadata">

**Author:** ![ampatt97](https://avatars.discourse-cdn.com/v4/letter/a/dfb087/32.png) [@ampatt97](https://community.blockcerts.org/u/ampatt97)\
**Post date:** [February 1, 2021, 9:49pm UTC](https://community.blockcerts.org/t/error-generating-test-json-file-cert-tools-the-following-arguments-are-required-issuer-id/2727/4 "2021-02-01T21:49:53Z")

</div>

fill in issuer-id as the url where you are hosting the issuer json. For example  
issuer\_id = “[https://www.collegeURL.com/issuerJSON](https://www.collegeURL.com/issuerJSON)”

---

<div class="post-metadata">

**Author:** ![nitinb](https://avatars.discourse-cdn.com/v4/letter/n/82dd89/32.png) [@nitinb](https://community.blockcerts.org/u/nitinb)\
**Post date:** [February 2, 2021, 11:05am UTC](https://community.blockcerts.org/t/error-generating-test-json-file-cert-tools-the-following-arguments-are-required-issuer-id/2727/5 "2021-02-02T11:05:36Z")

</div>

Hi @ampatt97

Thanks for your reply.

I understood I need to generate this issuer.json file & host it on the web/localhost.  
I believe it can be generated using following command. " python create\_v2\_issuer.py -c conf-ini -o issuer.json "

But for this I would be needing a issuer\_public\_key.

So How can I generate this issuer\_public\_key?

Many Thanks  
Nitin

---

<div class="post-metadata">

**Author:** ![nSync](https://sea2.discourse-cdn.com/flex016/user_avatar/community.blockcerts.org/nsync/32/742_2.png) [@nSync](https://community.blockcerts.org/u/nSync)\
**Post date:** [February 5, 2021, 2:21pm UTC](https://community.blockcerts.org/t/error-generating-test-json-file-cert-tools-the-following-arguments-are-required-issuer-id/2727/6 "2021-02-05T14:21:46Z")

</div>

Hi @ampatt97  
I generate mine through Bitcoin Core. With it i can generate wallets and addresses for every chain (regtest, testnet and mainnet)  
I don’t know if there is a more convenient method too 🤔

---

<div class="post-metadata">

**Author:** ![jackblock](https://sea2.discourse-cdn.com/flex016/user_avatar/community.blockcerts.org/jackblock/32/743_2.png) [@jackblock](https://community.blockcerts.org/u/jackblock)\
**Post date:** [February 5, 2021, 2:53pm UTC](https://community.blockcerts.org/t/error-generating-test-json-file-cert-tools-the-following-arguments-are-required-issuer-id/2727/7 "2021-02-05T14:53:19Z")

</div>

You can use [https://www.myetherwallet.com/](https://www.myetherwallet.com/) . It is very convenient to use.

Generate, get the public key and download the private key and follow the create issuer parameters to pass the pk folder and file name

---

<div class="post-metadata">

**Author:** ![nitinb](https://avatars.discourse-cdn.com/v4/letter/n/82dd89/32.png) [@nitinb](https://community.blockcerts.org/u/nitinb)\
**Post date:** [February 11, 2021, 10:00am UTC](https://community.blockcerts.org/t/error-generating-test-json-file-cert-tools-the-following-arguments-are-required-issuer-id/2727/8 "2021-02-11T10:00:34Z")

</div>

Great , Thanks a ton. I generated this now.

---

<div class="post-metadata">

**Author:** ![pranayperiwal](https://avatars.discourse-cdn.com/v4/letter/p/b2d939/32.png) [@pranayperiwal](https://community.blockcerts.org/u/pranayperiwal)\
**Post date:** [December 20, 2022, 11:22am UTC](https://community.blockcerts.org/t/error-generating-test-json-file-cert-tools-the-following-arguments-are-required-issuer-id/2727/9 "2022-12-20T11:22:35Z")

</div>

Hi, could you share some more details on what you did after generating a public and private key for Ethereum? Did you simply add ` issuer_public_key=0x...21`? Where do you add a private key folder and file name?

---

<div class="post-metadata">

**Author:** ![lemoustachiste](https://avatars.discourse-cdn.com/v4/letter/l/7c8e57/32.png) [@lemoustachiste](https://community.blockcerts.org/u/lemoustachiste)\
**Post date:** [January 3, 2023, 1:03pm UTC](https://community.blockcerts.org/t/error-generating-test-json-file-cert-tools-the-following-arguments-are-required-issuer-id/2727/10 "2023-01-03T13:03:10Z")

</div>

Hi @pranayperiwal,

You need to adjust your conf.ini to highlight the private and public key location.

setting the issuing address property gives you the public key:

```auto
issuing_address=0x40Cf9B7DB6FCc742ad0a76B8588C7f8De2b54a60

```

and then the private key should be written in the file of your choosing, in my case:

```auto
key_file=pk_issuer.txt

```
