Error implementation web with cert tools

Hi people
I have other question, I am implementation cert tools in my web site like this:

import certTools

in my function

@app.route(‘generate-cert’, methods=[‘GET’,‘POST’])
def generatecert()
“”" with this line, I try replace the command line create-certificate-template -c conf.ini
in file in function get_config() I changed
this line
base_dir = os.path.abspath(os.path.join(os.path.dirname(file), os.pardir))
p = configargparse.getArgumentParser(default_config_files=[os.path.join(base_dir, ‘/home/ngel/Documents /Projects/accreditablockcertalfa/certTools/conf.ini’)])
func_run = certTools.create_v2_certificate_template
return ‘ok’

and show me this error like this:

do you know,what file I can use for replace command console please, I want replace this create-certificate-template -c conf.ini, for one function like above in my function.


Hello Angel,
This code is not part of cert-tools; my guess is that either you inadvertently added it or your IDE is.

Hi kim,

thanks for your reply, and yes I add cert-tools in my project web, well I need to integrate cert-tools in my web project have you idea how to integrate in my web project this tool,