# Error of openssl after installing mitmproxy

**URL:** <https://discourse.mitmproxy.org/t/error-of-openssl-after-installing-mitmproxy/353>\
**Category:** help\
**Created:** [February 12, 2017, 10:01am UTC](https://discourse.mitmproxy.org/t/error-of-openssl-after-installing-mitmproxy/353 "2017-02-12T10:01:21Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bluefissure](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.mitmproxy.org/bluefissure/32/114_2.png) [@Bluefissure](https://discourse.mitmproxy.org/u/Bluefissure)\
**Post date:** [February 12, 2017, 10:01am UTC](https://discourse.mitmproxy.org/t/error-of-openssl-after-installing-mitmproxy/353/1 "2017-02-12T10:01:21Z")

</div>

My OS is Ubuntu 14.04 and after installing the mitmproxy as [Installation](http://docs.mitmproxy.org/en/stable/install.html) and run it, error occur:

```
Traceback (most recent call last):
  File "/root/.pyenv/versions/3.5.2/bin/mitmproxy", line 11, in <module>
    sys.exit(mitmproxy())
  File "/root/.pyenv/versions/3.5.2/lib/python3.5/site-packages/mitmproxy/tools/main.py", line 83, in mitmproxy
    server = process_options(parser, console_options, args)
  File "/root/.pyenv/versions/3.5.2/lib/python3.5/site-packages/mitmproxy/tools/main.py", line 42, in process_options
    pconf = config.ProxyConfig(options)
  File "/root/.pyenv/versions/3.5.2/lib/python3.5/site-packages/mitmproxy/proxy/config.py", line 65, in __init__
    self.configure(options, set(options.keys()))
  File "/root/.pyenv/versions/3.5.2/lib/python3.5/site-packages/mitmproxy/proxy/config.py", line 97, in configure
    CONF_BASENAME
  File "/root/.pyenv/versions/3.5.2/lib/python3.5/site-packages/mitmproxy/certs.py", line 223, in from_store
    raw)
  File "/root/.pyenv/versions/3.5.2/lib/python3.5/site-packages/OpenSSL/crypto.py", line 1661, in load_certificate
    _raise_current_error()
  File "/root/.pyenv/versions/3.5.2/lib/python3.5/site-packages/OpenSSL/_util.py", line 48, in exception_from_error_queue
    raise exception_type(errors)
OpenSSL.crypto.Error: [('PEM routines', 'PEM_read_bio', 'no start line')]

```

Environments:

```
root@vultr:~# python -V
Python 3.5.2
root@vultr:~# openssl version -a
OpenSSL 1.0.2k 26 Jan 2017
built on: reproducible build, date unspecified
platform: linux-x86_64
options: bn(64,64) rc4(16x,int) des(idx,cisc,16,int) idea(int) blowfish(idx) 
compiler: gcc -I. -I.. -I../include -fPIC -DOPENSSL_PIC -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -Wa,--noexecstack -m64 -DL_ENDIAN -O3 -Wall -DOPENSSL_IA32_SSE2 -DOPENSSL_BN_ASM_MONT -DOPENSSL_BN_ASM_MONT5 -DOPENSSL_BN_ASM_GF2m -DRC4_ASM -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DMD5_ASM -DAES_ASM -DVPAES_ASM -DBSAES_ASM -DWHIRLPOOL_ASM -DGHASH_ASM -DECP_NISTZ256_ASM
OPENSSLDIR: "/usr/local/ssl"
root@vultr:~# mitmproxy --version
mitmproxy 1.0.2

```

I manually updated the openssl after installing mitmproxy, but the system info of mitmproxy remains old version of openssl:

```
root@vultr:~# mitmproxy --sysinfo
Mitmproxy version: 1.0.2
Python version: 3.5.2
Platform: Linux-3.13.0-105-generic-x86_64-with-debian-jessie-sid
SSL version: OpenSSL 1.0.1f 6 Jan 2014
Linux distro: debian jessie/sid 

```

Maybe I should reinstall the mitmproxy??

What’s this problem and how to fix it??

---

<div class="post-metadata">

**Author:** ![mhils](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.mitmproxy.org/mhils/32/7_2.png) [@mhils](https://discourse.mitmproxy.org/u/mhils)\
**Post date:** [February 17, 2017, 1:17pm UTC](https://discourse.mitmproxy.org/t/error-of-openssl-after-installing-mitmproxy/353/2 "2017-02-17T13:17:21Z")

</div>

How did you install mitmproxy?
