Results 1 to 2 of 2

Thread: Generation of a CSR via API

  1. #1
    Member
    Join Date
    Feb 2012
    Location
    Russia
    Posts
    9
    cPanel/WHM Access Level

    Reseller Owner

    Post Generation of a CSR via API

    Hello.

    Can anybody tell me please what are requirements for the CSR password from this API call: SSL Module Documentation ? I want to manually check the password strength in my code avoiding additional API calls.

    Also, the documentation incorrectly calls it 'password', while cPanel itself does not recognize the 'password' parameter and requires 'pass' instead.

    Also, it's not very fast to retrieve CSR via Fileman module (or probably via SSH) - is it possible to return its contents in the response of the SSL::gencsr function (just as SSL::genkey response contains key contents)?

    Thanks.
    Last edited by odmink0; 06-08-2012 at 12:11 PM. Reason: Added a note about returning CSR contents

  2. #2
    Member This forum account has been confirmed by cPanel staff to represent a vendor. KostonConsulting's Avatar
    Join Date
    Jun 2010
    Location
    Austin, TX
    Posts
    154
    cPanel/WHM Access Level

    Root Administrator

    Default Re: Generation of a CSR via API

    Not sure on the password requirements as all the SSL functions call /usr/local/cpanel/bin/ssladmin which is not plain text. However, you can use the API1 call for SSL::showcsr to get the CSR after generation: SSL Module Documentation
    Dave Koston
    Koston Consulting
    http://www.kostonconsulting.com

Similar Threads

  1. Fetch or Get CSR from the API
    By enflexion in forum cPanel Developers
    Replies: 4
    Last Post: 11-02-2011, 06:30 AM
  2. Question on CSR generation
    By Bruce123 in forum cPanel & WHM Discussions
    Replies: 1
    Last Post: 08-10-2011, 01:11 PM
  3. SSL CSR generation - pass phrase required ?
    By bassul in forum cPanel & WHM Discussions
    Replies: 1
    Last Post: 04-03-2007, 06:53 AM
  4. CSR generation troubles
    By mpope2 in forum cPanel & WHM Discussions
    Replies: 3
    Last Post: 07-10-2002, 09:05 AM
  5. SSL Generation Confusion (Please Help)
    By Lakmarh in forum cPanel & WHM Discussions
    Replies: 1
    Last Post: 03-03-2002, 09:02 PM

Tags for this Thread