Child pages
  • cPanel API 1 Functions - Gpg::exportkey

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

 

Description

Excerpt

This function returns a public GnuPG key.


Include Page
LIB:_cPanelAPI1NoEquivalent
LIB:_cPanelAPI1NoEquivalent

Panel
bgColor#F2F2F2
borderStylenone

Examples 


Panel
bgColor#FFFFFF
borderStylenone
Expand
titleLiveAPI PHP Class
Code Block
languagephp
linenumberstrue
$cpanel = new CPANEL(); // Connect to cPanel - only do this once.
$export_public_key = $cpanel->api1('Gpg', 'exportkey', array('75442F4C') ); // Call the function.

Include Page
LIB:_LiveAPIPHPLink
LIB:_LiveAPIPHPLink

 

Expand
titleLiveAPI Perl Module
Code Block
languageperl
linenumberstrue
my $cpliveapi = Cpanel::LiveAPI->new(); # Connect to cPanel - only do this once.
my $export_public_key = $cpliveapi->api1('Gpg', 'exportkey', ['75442F4C'] ); # Call the function.

Include Page
LIB:_LiveAPIPerlLink
LIB:_LiveAPIPerlLink

 

Expand
titlecPanel Tag System (deprecated)

Include Page
LIB:_cPanelTagsWarning
LIB:_cPanelTagsWarning

Code Block
languagetext
<cpanel Module="Gpg::exportkey($FORM('key'))">
Expand
titleCommand Line
Code Block
languagebash
cpapi1 --user=username Gpg exportkey 75442F4C

Include Page
LIB:_WHMAPI1CLINote
LIB:_WHMAPI1CLINote

Expand
titleOutput (string)
Code Block
languagexml
linenumberstrue
-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: GnuPG v1.4.5 (GNU/Linux)
lQHhBFQbVRwRBADD5zKtI27LponwS2aM5dt3HJQHkcg2TOUShSIKZfHUpCPFDOTP
ei/30910wIPtknukevqujoXMwVFlGk6bIc1MfhLC6G3DeT8Soit9MRBdTbr0R10P
ggp7gOPlseZidlM+qgh5ksh//vR5F5ZFkYQisTDol+yaBzhHdDa2qQ5OQwCg+Szr
17GVZLVlDC6x2Ieid1gAVFsEAL0XPApKQ9OKsx5XdsN8zJbpQPh8WjL4tT2oxiTZ
7GPNcd4a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6ukdqkBO8TCbwKMH
vlLk8egV+lTJIuXEdHlL3mqNrPuxK84ArHhnYpdjYJnbsJ/Wn3x99ztbq0jHD0Vu
IVNfzGFUAF51V3whvpiudjCtaARjoINhTVc5Z8AHwKwOrQ8w9xB8VTYE9l8gOWAn
zfJE0zA/+yqzJXMx3yRsOjCNkwvUEEMETXEmRhovx80tvqa4zFL93RgJRiVzWI56
nf60Fv9ld1SLGDq+SMJta+vcvWkpZ2pOyf4DAwJZw21+ux7xu2AgkjEBledA3jjA
LZO1NN+IqeH6Bqwn1HrM3WgVg2YSPZB/rgCtgwwFCgNdmnQlhQoQch4ByB8wwi/L
Hit9DTWgcxHlTE6LUqaliE8EGBECAA8FAlQbVS4CGwwFCQHhM4AACgkQT/0i8MnR
zimuHgCeOYqkElHuVE73dqzZdG1b6E7AvFIAoIdjO8yRV8HJWOAMy/yNpUsiAlsn
=C1Qn
-----END PGP PUBLIC KEY BLOCK-----

   

Parameters

ParameterTypeDescriptionPossible valuesExample
keystring

Required

The key's identifier.

The identifier for a key on the server.

Note
titleNote:

This value should closely resemble the example value. 

75442F4C

Returns

This function returns the public key.