Skip to content

Commit

Permalink
Small crypto docs fix
Browse files Browse the repository at this point in the history
  • Loading branch information
nmorsman committed May 22, 2024
1 parent cebe49e commit eb5f4f5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions docs/crypto.md
Original file line number Diff line number Diff line change
Expand Up @@ -299,6 +299,7 @@ Create a ALPN certificate with ECDSA private key
```js
const alpnKey = await acme.crypto.createPrivateEcdsaKey();
const [, alpnCertificate] = await acme.crypto.createAlpnCertificate(authz, keyAuthorization, alpnKey);
```
<a name="isAlpnCertificateAuthorizationValid"></a>

## isAlpnCertificateAuthorizationValid(certPem, keyAuthorization) ⇒ <code>boolean</code>
Expand Down
1 change: 1 addition & 0 deletions src/crypto/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -517,6 +517,7 @@ exports.createCsr = async (data, keyPem = null) => {
* ```js
* const alpnKey = await acme.crypto.createPrivateEcdsaKey();
* const [, alpnCertificate] = await acme.crypto.createAlpnCertificate(authz, keyAuthorization, alpnKey);
* ```
*/

exports.createAlpnCertificate = async (authz, keyAuthorization, keyPem = null) => {
Expand Down

0 comments on commit eb5f4f5

Please sign in to comment.