NetTalk Central

NetTalk Web Server => Web Server - Ask For Help => Topic started by: BColladay on October 19, 2011, 06:47:22 AM

Title: SSL CertMaker
Post by: BColladay on October 19, 2011, 06:47:22 AM
Has anybody attempted to create a web form for the process of creating the CSR?  Basically just a form that asks all of the questions the openssl.exe asks when creating the CRS and then allows the person to download the CSR and key after the form data is submitted.

Or - Is there any problem with supplying our clients with the CertMaker folder and allowing them to run the "CreateCertificateSigningRequest.bat" file themselves?

Thanks
Title: Re: SSL CertMaker
Post by: Johan de Klerk on October 19, 2011, 07:52:26 AM
Hi,

I am sure this is possible if you combine NetTalk and OddJob (http://www.capesoft.com/accessories/OddJobsp.htm).
Let OddJob run the process.
OddJob is very-very powefull.

Regards

Johan de Klerk
Title: Re: SSL CertMaker
Post by: Flint G on October 19, 2011, 10:55:51 AM
There is nothing against sending the CertMaker folder along with your application and having your clients do the work.  The only trouble would be the user security options at the client's system blocking execution of batch files.  But some users seize when they see a DOS window...

A web form done right, from the perspective of the user, is much simpler and easier to use.  You could also create an executable that does the same thing as the batch file, but then you're reinventing the wheel.  It wouldn't be tough since you can provide all the required values to the openssl.exe as command line options, instead of running openssl.exe in the interactive mode you're probably used to.

While you're at it, you could create a web form to accept the CSR and return a signed certificate using your own CA so your users can test their settings before flushing their money on a real certificate.  The danger is some users may try to get by on the certificate you signed, which they will ultimately be unhappy with, instead of a real one.

At the risk of proving my naivety, I suspect you can accomplish the task of a web form approach entirely within NetTalk (with openssl, of course) without the need for OddJob (which I haven't actually tried to use, yet).

If you go the web form route, I would very much like to see what you come up with, as I have contemplated the same approach.

Regards,
Flint
Title: Re: SSL CertMaker
Post by: BColladay on October 19, 2011, 11:12:05 AM
Thanks, I am going to check out the command line structure
Title: Re: SSL CertMaker
Post by: BColladay on October 21, 2011, 06:28:53 AM
As Clarion is not my IDE for web development where this page would reside, I ended up going a little different route.

On my c# Web form I am dynamically creating a .bat file and the executing it.  Then I offer the key and csr as links as well as the CSR text in a text box.  Pretty simple by the time I figured it out.  About 20 lines of code.

if you are interested here is an example of some clarion code to do something similar:

http://www.nettalkcentral.com/index.php?option=com_smf&Itemid=36&topic=258.0 (http://www.nettalkcentral.com/index.php?option=com_smf&Itemid=36&topic=258.0)