# Not able to configure SSL authentication

**URL:** <https://discourse.sensu.io/t/not-able-to-configure-ssl-authentication/1008>\
**Category:** Sensu Go\
**Created:** [November 13, 2018, 6:37pm UTC](https://discourse.sensu.io/t/not-able-to-configure-ssl-authentication/1008 "2018-11-13T18:37:45Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![balajik515](https://avatars.discourse-cdn.com/v4/letter/b/ee59a6/32.png) [@balajik515](https://discourse.sensu.io/u/balajik515)\
**Post date:** [November 13, 2018, 6:37pm UTC](https://discourse.sensu.io/t/not-able-to-configure-ssl-authentication/1008/1 "2018-11-13T18:37:46Z")

</div>

Facing below error

```auto
{&quot;component&quot;:&quot;sensu-etcd&quot;,&quot;error&quot;:&quot;error creating backend ID: error granting lease: context canceled&quot;,&quot;level&quot;:&quot;error&quot;,&quot;msg&quot;:&quot;error generating backend ID&quot;,&quot;time&quot;:&quot;2018-11-09T11:01:24-05:00&quot;}

WARNING: 2018/11/09 11:01:24 grpc: Server.processUnaryRPC failed to write status: connection error: desc = &quot;transport is closing&quot;

WARNING: 2018/11/09 11:01:24 grpc: addrConn.resetTransport failed to create client transport: connection error: desc = &quot;transport: Error while dialing dial tcp 127.0.0.1:2379: operation was canceled&quot;; Reconnecting to {127.0.0.1:2379 0 &lt;nil&gt;}

WARNING: 2018/11/09 11:01:24 grpc: addrConn.transportMonitor exits due to: grpc: the connection is closing

WARNING: 2018/11/09 11:01:24 grpc: addrConn.resetTransport failed to create client transport: connection error: desc = &quot;transport: Error while dialing dial tcp 127.0.0.1:2379: connect: connection refused&quot;; Reconnecting to {127.0.0.1:2379 0 &lt;nil&gt;}

WARNING: 2018/11/09 11:01:24 grpc: addrConn.transportMonitor exits due to: grpc: the connection is closing

WARNING: 2018/11/09 11:01:24 grpc: addrConn.resetTransport failed to create client transport: connection error: desc = &quot;transport: Error while dialing dial tcp 127.0.0.1:2379: connect: connection refused&quot;; Reconnecting to {127.0.0.1:2379 0 &lt;nil&gt;}

{&quot;component&quot;:&quot;etcd&quot;,&quot;level&quot;:&quot;warning&quot;,&quot;msg&quot;:&quot;simple token is not cryptographically signed&quot;,&quot;pkg&quot;:&quot;auth&quot;,&quot;time&quot;:&quot;2018-11-09T11:01:25-05:00&quot;}

```

Backend yml is mentioned below

**Configuration**

```auto
---

##

# general configuration

##

state-dir: &quot;/var/lib/sensu&quot;

##

# agent configuration

##

agent-host: &lt;IP&gt; # listen on all IPv4 and IPv6 addresses

agent-port: 8081

##

# api configuration

##

api-host: 127.0.0.1 # listen on all IPv4 and IPv6 addresses

api-port: 8080

##

# ssl configuration

##

cert-file: &quot;/etc/sensu/ssl/cert.pem&quot;

key-file: &quot;/etc/sensu/ssl/key&quot;

trusted-ca-file: &quot;/etc/sensu/ssl/cacerts/Citi_DEVELOPMENT_chain.pem&quot;

#insecure-skip-tls-verify: false

##

# store configuration

##

#etcd-listen-client-urls: &quot;&quot;

#etcd-listen-peer-urls: &quot;&quot;

#etcd-initial-cluster: &quot;&quot;

#etcd-initial-advertise-peer-urls: &quot;&quot;

#etcd-initial-cluster-state: &quot;&quot;

#etcd-initial-cluster-token: &quot;&quot;

#etcd-name: &quot;&quot;

##

# dashboard configuration

##

#dashboard-host: &quot;[::]&quot; # listen on all IPv4 and IPv6 addresses

dashboard-port: 3000

##

# other

##

#cache-dir: &quot;/var/cache/sensu/sensu-backend&quot;

#config-file: &quot;&quot;

#debug: false

#deregistration-handler: &quot;&quot;

#log-level: &quot;warn&quot;

```

---

<div class="post-metadata">

**Author:** ![palourde](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.sensu.io/palourde/32/60_2.png) [@palourde](https://discourse.sensu.io/u/palourde)\
**Post date:** [November 13, 2018, 6:47pm UTC](https://discourse.sensu.io/t/not-able-to-configure-ssl-authentication/1008/2 "2018-11-13T18:47:35Z")

</div>

Hello again @balajik515 🙂

It looks like the pasted configuration and logs have a lot of HTML artifacts (e.g. `&quot;`) but from what I can see, your path to your `key-file` doesn’t seem right. Make sure it points to a `PEM` file!

---

<div class="post-metadata">

**Author:** ![aaronsachs](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.sensu.io/aaronsachs/32/47_2.png) [@aaronsachs](https://discourse.sensu.io/u/aaronsachs)\
**Post date:** [November 13, 2018, 6:50pm UTC](https://discourse.sensu.io/t/not-able-to-configure-ssl-authentication/1008/3 "2018-11-13T18:50:49Z")

</div>

@palourde that may be a result of my adding ``` to the code to make it a bit more readable. @balajik515 can you paste the config in again, but ensure that you’ve surrounded the example with ``` ?
