<p>You can try this </p>

<pre><code>openssl req -new -x509 -days 365 -nodes -out cert.chain -keyout key.pem
</code></pre>

<p>The cert itself is one CA added to the chain from the above command.
A .chain file is just a concatenation of signed ca certs</p>

CC BY-SA 3.0
2017-12-02T09:51:38.760Z
2017-12-02T09:51:38.760Z
Kennedy Cheskaki
<p>İn electrum's site; </p>

<blockquote>
  <p>Create a file that contains only the private key:</p>
  
  <p>-----BEGIN PRIVATE KEY----- your private key
  -----BEGIN END KEY-----</p>
  
  <p>Set the path to your the private key file with setconfig:</p>
  
  <p>electrum setconfig ssl_privkey /path/to/ssl.key</p>
  
  <p>Create another file, file that contains your certificate, and the list
  of certificates it depends on, up to the root CA. Your certificate
  must be at the top of the list, and the root CA at the end.</p>
  
  <p>-----BEGIN CERTIFICATE----- your cert
  -----END CERTIFICATE-----
  -----BEGIN CERTIFICATE----- intermediate cert
  -----END CERTIFICATE-----
  -----BEGIN CERTIFICATE----- root cert
  -----END CERTIFICATE-----</p>
  
  <p>Set the ssl_chain path with setconfig:</p>
  
  <p>electrum setconfig ssl_chain /path/to/ssl.chain</p>
</blockquote>

<p>I'm working on localhost only. I created a self-signed cert. I have ".key" and ".crt" files. <strong>But have not a ".chain" file?</strong></p>

<p>How can I come from above? Thx...</p>

<bitcoind><electrum><ssl>
Electrum SSL Cert Prorblem
Cihan Sancak
# Electrum SSL Cert Prorblem

(Asked by: username_0 on 2016-12-07)

İn electrum's site;

> Create a file that contains only the private key:
>
> -----BEGIN PRIVATE KEY----- your private key
> -----BEGIN END KEY-----
>
> Set the path to your the private key file with setconfig:
>
> electrum setconfig ssl\_privkey /path/to/ssl.key
>
> Create another file, file that contains your certificate, and the list
> of certificates it depends on, up to the root CA. Your certificate
> must be at the top of the list, and the root CA at the end.
>
> -----BEGIN CERTIFICATE----- your cert
> -----END CERTIFICATE-----
> -----BEGIN CERTIFICATE----- intermediate cert
> -----END CERTIFICATE-----
> -----BEGIN CERTIFICATE----- root cert
> -----END CERTIFICATE-----
>
> Set the ssl\_chain path with setconfig:
>
> electrum setconfig ssl\_chain /path/to/ssl.chain

I'm working on localhost only. I created a self-signed cert. I have ".key" and ".crt" files. **But have not a ".chain" file?**

How can I come from above? Thx...

**Tags:** bitcoind, electrum, ssl


---

## 1 answers

### Answer by username_1 on 2017-12-02. Score: 1

You can try this

```
openssl req -new -x509 -days 365 -nodes -out cert.chain -keyout key.pem

```

The cert itself is one CA added to the chain from the above command.
A .chain file is just a concatenation of signed ca certs


---

