You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+17-28Lines changed: 17 additions & 28 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -25,35 +25,24 @@ Etcd based configuration provider for Microsoft.Extensions.Configuration.
25
25
varmyKeyValue=mySection["MyKeyName"];
26
26
```
27
27
28
-
### HTTPS with certificate in environment variables
28
+
### HTTPS
29
29
30
-
1. Add `ETCD_CLIENT_CA_FILE` environment variable with path to etcd CA file (shoule be provided by etcd administrator), for example: `C:\etcd\cert\EtcdCa.crt`
30
+
When using HTTPS, *.crt CA certificate (should be provided by etcd administrator) should be placed in well known system certificate store (depending on OS).
31
31
32
-
```csharp
33
-
varconfig=newConfigurationBuilder()
34
-
.AddEtcd(
35
-
newCredentials("MyEtcdUserName", "passw"),
36
-
newEtcdSettings("https://serveraddress:2379"))
37
-
.Build();
38
-
39
-
varmySection=config.GetSection("MySection");
40
-
varmyKeyValue=mySection["MyKeyName"];
41
-
```
32
+
* For Windows it is `Trusted Root Certification Authority`.
33
+
* For Linux, at least for Arch/Manjaro Linux it should be placed in : `/etc/ca-certificates/trust-source/anchors/` followed by `sudo trust extract-compat` command
@@ -71,20 +60,20 @@ var mySection = config.GetSection("MySection");
71
60
varmyKeyValue=mySection["MyKeyName"];
72
61
```
73
62
74
-
Settings can be mixed from different locations, for example, you can set only CA file in environment variable and only connection string in JSON file.
63
+
Settings can be mixed from different locations.
75
64
76
65
## Contributing
77
66
78
67
There are many ways in which you can participate in the project. Like most open-source software projects, contributing code is just one of many outlets where you can help improve. Some of the things that you could help out with are:
0 commit comments