SSL certificates

Installing SSL into your hosting panel

How to connect cPanel with an API token so ZRAZU installs and renews the certificate in the panel: what we do, what we do not, and how to disconnect.

If your site runs on hosting with a cPanel panel, ZRAZU can install every next renewal of the certificate into it. You connect the panel once with a token and bind a certificate to it, and from then on you copy nothing by hand. Another way, without a token, is a cron script.

What we do and do not do

  • The panel creates the key. For a new certificate cPanel creates the key and the request (CSR), and we put only the certificate into the panel: the panel picks the matching key itself. The panel also returns the key in its reply when it creates it, so the key briefly passes through our protected process. We discard it at once: we do not store it, log it or pass it on.
  • We store the token encrypted. Neither the account nor our support shows it: only a separate protected process that calls your panel decrypts it.
  • We call only what is needed. In the panel we do only what concerns SSL: creating a key and a request, installing a certificate, listing the names of your keys (not the keys themselves), and in the panel’s DNS zone, if the domain is hosted there, we read the zone and add or remove only the service record for domain validation. We do not touch mail, files or databases.
  • Every call is logged. The “Hosting panels” screen shows what exactly we called, when and how it ended, without parameters or values.
  • A letter about connection changes. Connecting, pinning a fingerprint, binding, unbinding and disconnecting, and a failed installation: all owners and administrators of the organization get a letter.

Connecting cPanel

Only the owner and administrators of the organization can connect and disconnect panels. A second sign-in factor is required: connecting is confirmed with a code.

  1. In cPanel open Security → Manage API Tokens and press Create. Name the token, for example “zrazu” — you can enter this name when connecting.

  2. Set the token’s expiry date: we do not accept a token without one, or one longer than 13 months. If your cPanel can restrict a token by IP address, allow only the ZRAZU addresses (they are shown on the connect screen).

  3. Copy the token right away: cPanel shows it once.

  4. In the account open Team → Hosting panels (open).

  5. Choose the panel type cPanel, enter the server address (the name only, for example server.hoster.ua, without https:// or a port), the login of your hosting account, the token and the same expiry date. Optionally enter the token name exactly as in cPanel (Latin letters, digits, “_” and “-”): then, when you disconnect, we also revoke the token in the panel itself.

  6. Tick “I understand that the token gives access to the whole hosting account, and I instruct ZRAZU to use it only for SSL and the domain validation record”. Without it the Connect button is inactive.

  7. Press Connect and confirm with a code. In a few seconds we check the token in the panel and the connection becomes “Active”.

The address must be public, the port that of the user panel (2083 for cPanel, we fill it in ourselves). We do not accept the server administration panel (WHM) or the logins root and admin.

If the panel shows a self-signed certificate

Some hosters use their own certificate for the panel login, one that browsers do not trust. The connection then stops at “Checking” and the screen shows the SHA-256 fingerprint of the certificate. Compare it with the certificate your browser shows on the panel login page and, if they match, press This is my panel’s certificate. From then on we connect only to a certificate with this fingerprint. You can confirm within a day of connecting; after that, connect the panel again.

Binding a certificate to the panel

  1. Open the certificate page in SSL and go to the installation tab.

  2. In the Install into the panel block choose the connected panel and press Bind. The action is confirmed with a code.

  3. Starting with the next renewal: the panel creates its key and request, we issue the certificate, install it into the panel and check from outside that the site serves it. The current certificate stays as it is.

We install automatically only when the domain is validated by a DNS record: the zone is on our DNS servers or in this same panel. With validation by a file on the site or by email, or if the panel did not accept the record in the zone, the renewal goes the usual way — you download the certificate from the account and install it yourself, and we send you an email.

A certificate can be bound only to a panel in the “Active” state, and only to one. The domain is taken from the certificate itself. You can unbind a certificate in the same block or from the “Certificates” list on the panel screen, in one click and without a code: the certificate stays in the panel, but new ones stop being installed automatically.

Disconnecting

The Disconnect button on the “Hosting panels” screen disconnects the panel in one click. If you entered the token name when connecting, we revoke the token in the panel itself and then erase it on our side; if the panel does not answer, we erase it within two hours in any case — then delete the token in the panel yourself. Without a name, we erase the token on our side at once, and you delete the token in the panel itself: cPanel → Security → Manage API Tokens. Without a name, disconnecting in ZRAZU does not revoke the token in your panel: while it is valid there, anyone who knows it can use it. You get a letter about the disconnection.

A token stops working by itself when its expiry date passes. 30 days before that, a reminder appears in the account under “Needs attention”, and owners and administrators get a letter. 30 days after the expiry date we erase the token on our side unless the panel was connected again. Create a new token in the panel and connect the panel again: the previous connection is replaced by the new one. The same reminder appears if the panel stopped accepting the token.

Which panels we support

PanelState
cPanelavailable
DirectAdmincoming soon
Pleskcoming soon

The number of connection attempts is limited: at most five per hour for an organization and for one panel address.

If it did not work

  • “Not accepted” or “the token was revoked or has expired” — create a new token in cPanel and connect the panel again.
  • “Refused by the panel” — the token lacks rights or the host closed the SSL/TLS section in your plan. Check with your host that the SSL/TLS section is available in your plan, and connect the panel again with a new token.
  • A refusal at entry: “address”, “port”, “login” — check that the address is a server name without https:// and the login is your own, not root.
  • To set up renewal without a token, use the script for cPanel.

This page in Markdown