Error generating test.json file . cert-tools :: the following arguments are required: --issuer_id

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

My conf.ini file looks like this–

issuer information

issuer_url = https://www.collegeURL.com/
issuer_email = 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

So basically How can I generate a new issuer_id?

fill in issuer-id as the url where you are hosting the issuer json. For example
issuer_id = “https://www.collegeURL.com/issuerJSON

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

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 :thinking:

You can use 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

Great , Thanks a ton. I generated this now.

1 Like