Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update get-started.md #14

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions core/get-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ $secureHttpClient = $secureHttpClientFactory->createSecureHttpClient($accountKey
// See AcmePhp\Core\Http\SecureHttpClient for all available methods.
```

### Generate a key pair if needed
### 2. Generate a key pair if needed

If you don't already have a KeyPair, you can generate one:

Expand All @@ -73,7 +73,7 @@ if (!file_exists($privateKeyPath)) {
}
```

### Set up the ACME client
### 3. Set up the ACME client

``` php
<?php
Expand All @@ -89,7 +89,7 @@ $acmeClient = new AcmeClient($secureHttpClient, 'https://acme-staging-v02.api.le
See `AcmePhp\Core\AcmeClientInterface` and `AcmePhp\Core\AcmeClientV2Interface` for detailed
explainations of each methods of the client.

### Create new account
### 4. Create new account

``` php
<?php
Expand All @@ -98,7 +98,7 @@ explainations of each methods of the client.
$acmeClient->registerAccount(null, '[email protected]');
```

### Request authorization
### 5. Request authorization

``` php
<?php
Expand All @@ -111,7 +111,7 @@ var_dump($authorizationChallenges);
// $acmeClient->challengeAuthorization($authorizationChallenges[0])
```

### Generate CSR and private key
### 6. Generate CSR and private key

``` php
<?php
Expand All @@ -130,7 +130,7 @@ var_dump($domainKeyPair->getPrivateKey()->getPem());
$csr = new CertificateRequest($dn, $domainKeyPair);
```

### Request certificate
### 7. Request certificate

``` php
<?php
Expand Down