Skip to content

Commit

Permalink
certificate issue resolved
Browse files Browse the repository at this point in the history
  • Loading branch information
ITMonta committed May 14, 2021
1 parent 9cd29fd commit a52cb93
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,28 @@ provider "mongodb" {
password = "root"
auth_database = "admin"
ssl = true
replica_set = "replica-set" #optional
}
```

## Example Usage with ssl

```hcl
# Configure the MongoDB Provider
provider "mongodb" {
insecure_skip_verify = true # default false (set to true to ignore hostname verification)
# -> specify either
cert_path = pathexpand("path/to/certificate")
# -> or the following ( you can use this if you are using a custom key and cert)
ca_material = file(pathexpand("path/to/certificate/ca.pem")) # this can be omitted
cert_material = file(pathexpand("path/to/certificate/cert.pem"))
key_material = file(pathexpand("path/to/certificate/key.pem"))
}
```
Expand Down

0 comments on commit a52cb93

Please sign in to comment.