From 07db4dae7a9fd4d9a47f239425fb08fe4aaa1795 Mon Sep 17 00:00:00 2001 From: Ivan Nastyukhin Date: Wed, 22 Jun 2016 19:29:12 +0300 Subject: [PATCH] documentation update --- src/site/markdown/usage/certificate.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/site/markdown/usage/certificate.md b/src/site/markdown/usage/certificate.md index 233afc53..99891b24 100644 --- a/src/site/markdown/usage/certificate.md +++ b/src/site/markdown/usage/certificate.md @@ -33,7 +33,7 @@ Now all you need to do is to pass in a binary representation of the CSR and requ ```java byte[] csr = ... // your CSR -CertificateURIs certUris = client.requestCertificate(account, csr); +CertificateURIs certUris = client.requestCertificate(registration, csr); ``` `certUris` contains an URI where the signed certificate can be downloaded from. Optionally (if delivered by the ACME server) it also contains the URI of the first part of the CA chain. You can either download the certificate yourself (e.g. with `curl`), or just use the `AcmeClient`: @@ -85,7 +85,7 @@ For renewal, just request a new certificate using the original CSR: PKCS10CertificationRequest csr = CertificateUtils.readCSR( new FileInputStream("example.csr")); -CertificateURIs certUris = client.requestCertificate(account, csr.getEncoded()); +CertificateURIs certUris = client.requestCertificate(registration, csr.getEncoded()); X509Certificate cert = client.downloadCertificate(certUris.getCertUri()); ```