Using javascript to pass web forms values to python script
Django is a good option to create applications using python. You can start an application, and embed your code in template and write a view to handle requests and responses.
What I have done:
1- Created a web form using HTML and javascript to create a SSL certificate that can create dynamic certificates.
2- Successfully parsed through an existing certificate and passed the required values to the web form.
3- I am using the HTML+javascript inside the python script itself and appending the parsed certificate values to the javascript before displaying it.
What I need to do:
1-Take values from the web form, assign those to particular variables and pass those variables to a python script, that can create a CSR using those and sign it using a dummy key.
So, basically, I want to call a python script on a click of a button that can take web form values and create a certificate.
P.S. PHP isn't an option for me, as the server I am working on doesn't support it.
Can someone guide me in the right direction as for how to proceed? Any examples or study material? Or should I start working with Flask?