The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Generation of a CSR via API

Discussion in 'cPanel Developers' started by odmink0, Jun 8, 2012.

  1. odmink0

    odmink0 Member

    Joined:
    Feb 29, 2012
    Messages:
    11
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Russia
    cPanel Access Level:
    Reseller Owner
    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.
     
    #1 odmink0, Jun 8, 2012
    Last edited: Jun 8, 2012
  2. KostonConsulting

    KostonConsulting Well-Known Member

    Joined:
    Jun 17, 2010
    Messages:
    255
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    San Francisco, CA
    cPanel Access Level:
    Root Administrator
    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
     
Loading...

Share This Page