OpenSSL : One Line command solution required

Posted on 2006-05-08
Last Modified: 2012-08-14

I am making a SSL certificate generator software for linux, In this I will be making a Web interface to collect some basic information like
Common Name, Organization Name and when submitted IT will generate csr and than key etc..

I know how to make these certificate file through command line, but they take input from user on Command line. Is there any way I can pass these inputs without any user interaction.

I will be coding this part in PERL running as root so no issue of other things comes in between , Just need to know the method so that I can user OpenSSL in one line


openssl req -new ... -CN MYname -O My org

somethign like this or may be passing entries through Text file.

Please Let me know exact working command for this.....

Thanks & Regards,
Question by:VIkasumit
    LVL 2

    Accepted Solution

    If you have alook at section 6 of the OpenSSL cookbook it includes the cgi scripts that you can use to gnerate the certificate.
    LVL 4

    Author Comment


    Thanks your link gives me what I need  :o)


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Looking for New Ways to Advertise?

    Engage with tech pros in our community with native advertising, as a Vendor Expert, and more.

    Suggested Solutions

    Here we come across an interesting topic of coding guidelines while designing automation test scripts. The scope of this article will not be limited to QTP but to an overall extent of using VB Scripting for automation projects. Introduction Now…
    This article will show, step by step, how to integrate R code into a R Sweave document
    In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…
    In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

    737 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    18 Experts available now in Live!

    Get 1:1 Help Now