Skip to content

Commit

Permalink
Update Cloudflare-Readme.md (#174)
Browse files Browse the repository at this point in the history
Corrected the name of CFToken and CFTokenInsecure.
  • Loading branch information
mccanney authored and rmbolger committed Sep 17, 2019
1 parent ba7b7d8 commit a7d2d82
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Posh-ACME/DnsPlugins/Cloudflare-Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,20 +27,20 @@ There are two choices for authentication against the Cloudflare API. The old way

## Using the Plugin

If you're using the newer API Token method, you'll use the previously retrieved token value with either `CFAuthToken` or `CFAuthTokenInsecure`. The former requires a SecureString value which can only be used on Windows OSes or any OS with PowerShell 6.2 or later. If you're using the Global API Key method, you'll need to use the `CFAuthEmail` and `CFAuthKey` parameters with the account's email address and previously retrieved Global API Key.
If you're using the newer API Token method, you'll use the previously retrieved token value with either `CFToken` or `CFTokenInsecure`. The former requires a SecureString value which can only be used on Windows OSes or any OS with PowerShell 6.2 or later. If you're using the Global API Key method, you'll need to use the `CFAuthEmail` and `CFAuthKey` parameters with the account's email address and previously retrieved Global API Key.

### API Token Secure (Windows or PS 6.2+)

```powershell
$secToken = Read-Host -AsSecureString -Prompt 'API Token'
$pArgs = @{ CFAuthToken = $secToken }
$pArgs = @{ CFToken = $secToken }
New-PACertificate example.com -DnsPlugin Cloudflare -PluginArgs $pArgs
```

### API Token Insecure (Any OS)

```powershell
$pArgs = @{ CFAuthTokenInsecure = 'xxxxxxxxxx' }
$pArgs = @{ CFTokenInsecure = 'xxxxxxxxxx' }
New-PACertificate example.com -DnsPlugin Cloudflare -PluginArgs $pArgs
```

Expand Down

0 comments on commit a7d2d82

Please sign in to comment.