Skip to content

ezSign - Keys & certificates

A signing key is what actually signs. A key profile says how a signature is made; the key is the private half of the pair that makes it, and it lives inside the HSM - it is generated there and never leaves.

A key on its own cannot sign anything. It needs a certificate, and that comes from your certificate authority, not from ezSign. This page is where you drive that round trip: generate the key, hand the request to your CA, and bring the answer back.

Who does this

This is an administrator task. Operators never see this page - they notice it only in whether their documents can be signed at all.

The journey a key makes

flowchart LR
    Gen["Generate keypair<br/><i>in the HSM</i>"] --> Pending["PENDING CERT<br/><i>waiting on your CA</i>"]
    Pending -->|"you submit the CSR"| CA["Your CA<br/><i>issues the certificate</i>"]
    CA -->|"you import the chain"| Inactive["INACTIVE<br/><i>ready, not signing</i>"]
    Inactive -->|activate| Active["ACTIVE<br/><i>signing</i>"]
    Active -->|"a successor is activated"| Retired["RETIRED"]

Figure: the certificate round trip. The two steps in the middle happen at your CA, not in ezSign - which is why a key can sit at PENDING CERT for days, and why nothing switches over on its own.

ezSign never contacts your CA

There is no connection between ezSign and your certificate authority. You submit the request there yourself, and you bring the certificate back yourself. The same is true of revocation: ezSign can record that you revoked a certificate, but only your CA can actually revoke it.

This is deliberate. It means ezSign needs no credentials for your CA, and it works with whichever CA your organization already buys certificates from.

Before you start

You need a key profile to generate the key for. The profile decides what kind of key it will be - if the profile signs with ECDSA you will be generating an EC key, and you choose only the curve.

A disabled profile cannot take a new key. A certificate costs money and takes days, and a key generated for a profile that is out of service could not be used until somebody put it back.

Open the Keys & certificates page

In the administration area, open ManageKeys & certificates in the left-hand menu.

The list shows every signing key in the installation, across all profiles - so you can answer what expires soonest and what is still waiting on a certificate without opening each profile in turn.

Column What it shows
KEY The label you gave the key.
PROFILE The key profile that owns it. Filter on this column to see one profile's keys on their own.
CERT SERIAL The certificate's serial number, as your CA shows it. Until one is issued this shows the CA order reference instead, prefixed order - so a key waiting on a certificate is still identifiable.
GROUPS The groups that may sign with this key's profile, one chip each. A key has no groups of its own; it inherits its profile's.
EXPIRES How long the certificate has left, with the date beneath. Amber inside 90 days, and after it has lapsed. A dash where no certificate has been issued.
STATUS Where the key is in its life - see What the states mean.
CREATED The day the key was generated. The list is ordered by it, newest first.
ACTIONS Two icons plus the menu, on every row. A key waiting on its certificate offers Import certificate and Show CSR; one that has a certificate offers Download certificate and its next step - Activate while it is inactive, Suspend while it is signing, Renew once it is retired or revoked. Nothing that deletes is put on the row; the menu holds everything else.

Click any row to open the read-only detail sheet. Looking is the default gesture, so nothing changes because you clicked to check something.

Search the list

The search box asks the server, not just the rows on your screen.

What you type What you get
invoice Keys matching that whole word - in the label, the certificate subject, or the order reference.
"acme document" That exact phrase, in quotes.
invoice -archive Matches for invoice, minus anything mentioning archive.
0A:F2* A part-word match, for when you have half a serial number in front of you.

Searching by what your CA told you

Both the certificate serial and the CA order reference are searchable. Those are usually the only two things you have in hand when you come back from your CA's portal, which is exactly why they are.

Generate a keypair

Click + Generate keypair.

Field What it is for
Key profile Which profile the key belongs to. Only profiles that can sign are listed.
Key label The name you will know this key by - in this list, in the audit trail, and in the file name when you download its request. Letters, digits, dots, hyphens and underscores. No two keys may share one.
Curve / Key size The strength. Which of the two you are asked for depends on the profile: an ECDSA profile asks for a curve, an RSA one for a key size.

The dialog tells you what the profile decided - Profile signs with ECDSA - an EC key is generated - so a short list of curves is explained rather than mysterious.

Click Generate & create CSR. Three things happen at once:

  1. the keypair is generated inside the HSM;
  2. a certificate signing request (CSR) is created and signed with it;
  3. the key is recorded as PENDING CERT.

You are then shown the CSR.

The private key never leaves the HSM

Not at generation, not when the CSR is signed, not when you download anything from this page. ezSign stores the public key, the request, the certificate and some metadata - never the private key, and never anything from which it could be derived.

Order the certificate from your CA

This is the step that happens outside ezSign.

From the CSR panel you can Copy to clipboard or Download .csr. Give that request to your certificate authority however they take it - usually by pasting it into their portal.

Then come back and record the CA order reference they gave you, in the field on the same panel. It is optional, but it is the only thread tying this key to the order it is waiting on, and issuance can take days. The field holds up to 64 characters and stops there, so a reference that would be refused cannot be typed in the first place. Saving keeps the panel open - the CSR is still there.

You can leave and come back

Closing the dialog changes nothing. The key stays PENDING CERT, and Show CSR on its row brings the same request back whenever you need it.

Import the certificate

When your CA sends the certificate back, find the key in the list and click Import certificate.

Either choose the file the CA sent, or paste the PEM text into the box. Include the whole chain - the certificate and the intermediate certificates that came with it - not just the certificate on its own.

Before anything is stored, ezSign checks that:

  • the text really is one or more X.509 certificates;
  • one of them carries this key's public key - the surest way to catch importing the wrong file;
  • the certificate is within its validity dates;
  • it is permitted to create signatures;
  • the chain hangs together, each certificate signed by the next one up.

If any check fails, nothing is stored, the key stays PENDING CERT, and the dialog tells you which check failed and what to do about it.

If they all pass, the certificate is bound and the key becomes INACTIVE - it is ready, but it is not signing yet.

Activate straight away if you want to

The import dialog has an Activate this key once the certificate is imported box. It is off by default, because binding a certificate is safe while switching production signing over to a new key is a decision. Tick it and both happen in one go.

Activate a key

Click Activate key on the row, or Activate in the import dialog.

A profile signs with exactly one key at a time. Activating a key retires whichever key of the same profile was signing before - the confirm names it, so you can see what is about to stop.

A retired key keeps its certificate. Documents already signed with it stay valid; the certificate is untouched and remains verifiable for as long as your CA says it is.

What the states mean

Status What it means What you can do next
PENDING CERT The key exists in the HSM and its request is waiting on your CA. Import the certificate, or cancel the order.
INACTIVE It has a valid certificate but is not signing - either never activated, or suspended. Activate it, or record a revocation.
ACTIVE This is the key its profile signs with. Suspend it, renew it, or record a revocation.
RETIRED Superseded when a successor was activated. Renew from it, record a revocation, or delete it.
REVOKED You recorded that its certificate was revoked at your CA. Final. Delete it.

A key never goes backwards. A retired key is not brought back into service - you activate a successor instead - and a revoked one is the end of that key's life.

Nothing changes state on its own when a certificate expires

Expiry is not a status. A key whose certificate has run out still reads ACTIVE, and its profile still reads Enabled - nobody is emailed, and the status does not move.

What does change is that signing stops. Every document sent to that profile is accepted and then fails, because the certificate is checked again at the moment of signing.

So watch the EXPIRES column, which turns amber 90 days out and again once a certificate has lapsed, and renew from there. If one has already expired, suspend the key: that drops its profile back to Pending and stops work being accepted while you sort out a replacement.

See everything about a key

Click the row, or choose View details from the menu.

The list shows eight of a key's fields; the sheet shows the rest - the HSM alias, the key identifier, the certificate's full subject and issuer, its validity window, the CA order reference, when the key was last updated, and the key's ID.

The subject, issuer, serial and CA order reference are what your CA's support desk will ask for. The HSM alias is for the other direction: it is the name the key has inside the HSM, and the only name your HSM administrator can act on - the label you chose never leaves ezSign.

Where a certificate has been imported, the sheet also offers the chain as a PEM download.

Renew a key

On a retired or revoked key it is the second icon on the row - those are the two states where a successor is the only way forward. On any other key with a certificate it is Renew key in the menu. Either way, do it well before the certificate expires.

Renewing generates a successor on the same profile, with the same algorithm and a label suggested from the old one - hsm-invoice-ecdsa-01 becomes hsm-invoice-ecdsa-02. From there it is the same journey as any new key: submit the CSR, import the certificate, activate.

Signing does not stop while you renew

The old key keeps signing the whole time. Nothing switches over until you activate the successor, which is precisely why you start early - issuance takes as long as it takes.

Suspend a key

Suspend is the second icon on the row of the key that is signing - it is the one thing you are most likely to do to an active key, so it does not hide in the menu.

The key stops being used and drops back to INACTIVE. Its certificate is untouched and you can activate it again at any time.

Suspending leaves the profile with nothing to sign with

A profile signs with exactly one key. Suspend it and that profile has none, so signing under it stops until you activate a key again. If you want to swap keys rather than stop, activate the other key instead - that retires the first one in the same step.

Record a revocation

Choose Record revocation from the menu.

This does not revoke anything

ezSign has no connection to your CA and cannot revoke a certificate. Revoke it at your CA, then use this to record that you have. What this does is stop the key being offered for signing and leave an entry in the audit trail.

Do it in that order. Once you record the revocation the key is final, and once you delete the key its serial number goes with it - and the serial is what your CA will ask you for.

Cancel an order, or delete a key

Both live in the menu, and which one you see depends on the key. Neither is ever put on the row itself: they cannot be undone, so they keep the extra click.

Cancel order, on a key still waiting for its certificate, discards the request and removes the key from the HSM. If your CA has already issued the certificate, cancel it there too - you will have nothing left to import it against.

Delete key, on a key that has one, removes the key material from the HSM and the record from ezSign.

Revoke before you delete

A deleted key takes its certificate serial with it, and the serial is what you need in order to revoke. The certificate itself stays valid at your CA until you revoke it there. Do that first.

The key that is currently ACTIVE cannot be deleted at all. Activate another key or suspend it first - a profile should never lose the key it signs with by accident.

Troubleshooting

What you see What it means
That is not a PEM certificate. Paste the text between BEGIN and END CERTIFICATE, or upload the file the CA sent you. The box holds something that is not a certificate - an email, a link, or a binary file pasted as text.
This certificate was issued for a different key. Check that you are importing the certificate for the order this key is waiting on. The certificate is real, but its public key is not this key's. Almost always the certificate for a different order.
Only the certificate itself was supplied. Paste the whole chain, including the intermediate certificates the CA sent with it. The intermediates are missing. Your CA sends them with the certificate; use the full bundle.
The certificate chain does not verify The certificates do not link up - a missing or mismatched intermediate.
This certificate expired on … / This certificate is not valid until … The certificate is outside its validity dates. Check you have the current one.
This certificate is not permitted to create signatures Its key usage does not allow signing. It is probably not a document-signing certificate.
A signing key with this label already exists Labels are unique across every profile. Pick another.
Key profile "…" is disabled and cannot take a new key Re-enable the profile on the Key profiles page first.
That key size or curve does not match the profile's signature algorithm The profile decides the key type. Reopen the dialog to get the right list.
… is ACTIVE, so that action is not available Somebody changed the key since your list was drawn. Refresh and look again.
… is the profile's active key. Activate another key before deleting it. Exactly that - a profile is never left with nothing to sign with.
… already has a certificate. Importing is only for a key still waiting on one. You reached the import screen for a key that is past that step. The same panel offers its issued certificate to download.
This signing key no longer exists. The key was deleted, most likely in another tab. Refresh the list.

FAQ

Does my private key ever leave the HSM?

No. It is generated inside the hardware security module and stays there. ezSign stores the public key, the signing request, the certificate chain and some metadata - never the private key.

Why does ezSign not just order the certificate for me?

Because it has no connection to your certificate authority, by design. That means ezSign needs no credentials for your CA and works with whichever one your organization already uses. You submit the request and bring the certificate back.

How long does a key stay at PENDING CERT?

As long as your CA takes - minutes for some, days for others. Nothing expires while you wait, and the request is still there when you come back. Record the CA order reference so you can tell which key is waiting on which order.

Why did my certificate import fail?

The two common reasons are importing the certificate for a different key, and pasting only the certificate without the intermediates that came with it. The dialog names which check failed. Nothing is stored on a failure, so you can simply try the right file.

Why is my key INACTIVE after I imported the certificate?

Because importing and activating are separate steps on purpose. A certificate arriving does not mean you want to switch production signing over that second. Click Activate key when you are ready, or tick the activate box while importing.

Can a profile have more than one active key?

No - exactly one. Activating a key retires whichever key of that profile was signing before, so there is never any doubt about which key made a given signature.

Are documents signed with a retired key still valid?

Yes. Retiring a key changes nothing about the signatures it already made: the certificate is untouched and stays verifiable for as long as your CA says it is. Retiring only means the key is no longer used for new signatures.

When should I renew?

Well before the certificate expires - the EXPIRES column turns amber at 90 days as a prompt. The old key keeps signing for the whole renewal, so starting early costs nothing.

Do not rely on being told: nothing emails you, and a key whose certificate has run out still reads ACTIVE while signing quietly fails.

What is the difference between suspending and revoking?

Suspending is reversible and local: the key stops signing, keeps its certificate, and can be activated again. Revoking records that you had the certificate revoked at your CA, which is permanent - and you must actually do that at your CA, ezSign cannot.

What happens to the HSM key when I delete it here?

Deleting a key removes the key material from the HSM as well as the record from ezSign. The certificate is a separate matter: it stays valid at your CA until you revoke it there, which is why you should revoke before deleting rather than after.