fixed README
This commit is contained in:
parent
6a6470d881
commit
acd2d6b980
10
README.md
10
README.md
|
@ -39,15 +39,15 @@ usually located at `$HOME/.config` or defined by the `XDG_CONFIG_HOME` environme
|
||||||
An example config looks like this:
|
An example config looks like this:
|
||||||
|
|
||||||
```toml
|
```toml
|
||||||
[registry.verisign
|
[registry.verisign]
|
||||||
host = 'epp.verisign-grs.com'
|
host = 'epp.verisign-grs.com'
|
||||||
port = 700
|
port = 700
|
||||||
username = 'username'
|
username = 'username'
|
||||||
password = 'password'
|
password = 'password'
|
||||||
# service extensions
|
# service extensions
|
||||||
ext_uris = [
|
ext_uris = []
|
||||||
|
|
||||||
[registry.verisign.tls_files
|
[registry.verisign.tls_files]
|
||||||
# the full client certificate chain in PEM format
|
# the full client certificate chain in PEM format
|
||||||
cert_chain = '/path/to/certificate/chain/pemfile'
|
cert_chain = '/path/to/certificate/chain/pemfile'
|
||||||
# the RSA private key for your certificate
|
# the RSA private key for your certificate
|
||||||
|
@ -56,7 +56,7 @@ key = '/path/to/private/key/pemfile'
|
||||||
|
|
||||||
## Operation
|
## Operation
|
||||||
|
|
||||||
Once the config is set correctly, you can create a mut variable of type [`EppClient`
|
Once the config is set correctly, you can create a mut variable of type `EppClient`
|
||||||
with the domain registry
|
with the domain registry
|
||||||
|
|
||||||
```rust
|
```rust
|
||||||
|
@ -64,7 +64,7 @@ use epp_client::EppClient;
|
||||||
use epp_client::epp::{EppDomainCheck, EppDomainCheckResponse};
|
use epp_client::epp::{EppDomainCheck, EppDomainCheckResponse};
|
||||||
use epp_client::epp::generate_client_tr_id;
|
use epp_client::epp::generate_client_tr_id;
|
||||||
|
|
||||||
#[tokio::main
|
#[tokio::main]
|
||||||
async fn main() {
|
async fn main() {
|
||||||
// Create an instance of EppClient, specifying the name of the registry as in
|
// Create an instance of EppClient, specifying the name of the registry as in
|
||||||
// the config file
|
// the config file
|
||||||
|
|
|
@ -64,7 +64,7 @@ use epp_client::EppClient;
|
||||||
use epp_client::epp::{EppDomainCheck, EppDomainCheckResponse};
|
use epp_client::epp::{EppDomainCheck, EppDomainCheckResponse};
|
||||||
use epp_client::epp::generate_client_tr_id;
|
use epp_client::epp::generate_client_tr_id;
|
||||||
|
|
||||||
#[tokio::main
|
#[tokio::main]
|
||||||
async fn main() {
|
async fn main() {
|
||||||
// Create an instance of EppClient, specifying the name of the registry as in
|
// Create an instance of EppClient, specifying the name of the registry as in
|
||||||
// the config file
|
// the config file
|
||||||
|
|
Loading…
Reference in New Issue