# cPanel API 2 Modules - Gpg

Warning:
The cPanel API 2 system is deprecated. We **strongly** recommend that you use [UAPI](/cpanel/introduction) instead of cPanel API 2.

## Introduction

The `Gpg` module creates and manages GnuPG keys.

div
Important:

When you enable a non-Standard Node server profile, the system disables API calls associated with that profile's disabled roles.

## Available functions

* [cPanel API 2 Functions - `Gpg::listgpgkeys`](/cpanel-api-2/cpanel-api-2-modules-gpg/cpanel-api-2-functions-gpg-listgpgkeys) — This function retrieves public GPG keys.
* [cPanel API 2 Functions - `Gpg::listsecretgpgkeys`](/cpanel-api-2/cpanel-api-2-modules-gpg/cpanel-api-2-functions-gpg-listsecretgpgkeys) — This function retrieves a user's private GPG keys.
* [cPanel API 2 Functions - `Gpg::number_of_private_keys`](/cpanel-api-2/cpanel-api-2-modules-gpg/cpanel-api-2-functions-gpg-number_of_private_keys) — This function retrieves the number of private GPG keys.
* [cPanel API 2 Functions - `Gpg::number_of_public_keys`](/cpanel-api-2/cpanel-api-2-modules-gpg/cpanel-api-2-functions-gpg-number_of_public_keys) — This function retrieves the number of public GPG keys.