Description

This function retrieves a certificate signing request (CSR).



Examples 




$cpanel = new CPANEL(); // Connect to cPanel - only do this once.
$set_csr = $cpanel->api1('SSL','showcsr', array('TestCSR', '0') ); // Call the function.



my $cpliveapi = Cpanel::LiveAPI->new(); # Connect to cPanel - only do this once.
my $set_csr = $cpliveapi->api1('SSL','showcsr', ['TestCSR', '0'] ); # Call the function.


<cpanel Module="SSL::showcsr( $FORM('host','textmode') )">




cpapi1 --user=username SSL showcsr TestCSR 0


This function returns the contents of the CSR.



Parameters

ParameterTypeDescriptionPossible valuesExample
host

string

Required

The CSR's name.

Any valid string.TestCSR
textmodeBooleanWhether to display the CSR in human-readable format or the literal data.
  • 1 — Display in human-readable format.
  • 0 — Display the literal CSR data.
0

Returns

This function displays the CSR's contents.