core/homeassistant
Soós Péter 3891f2eebe Add mikrotik SSL support (#17898)
* Update mikrotik.py

* Update mikrotik.py

* Added basic  api_ssl support

Added preliminary support to use api_ssl instead of api. It don't check the validity of the certificate need it.
At Home Assistant side add ssl = true to your sensor configuration, and don't forget to change the port too (to 8729 by default):

device_tracker:
  - platform: mikrotik
    host: 192.168.88.1
    port: 8729
    ssl: true
    username: homeassistant
    password: TopSecret

At MikroTik side you have to add or generate a certificate, and configure api_ssl to use it. Here is an example:

/certificate add common-name="Self signed demo certificate for API" days-valid=3650 name="Self signed demo certificate for API" key-usage=digital-signature,key-encipherment,tls-server,key-cert-sign,crl-sign
/certificate sign "Self signed demo certificate for API"
/ip service set api-ssl certificate="Self signed demo certificate for API"
/ip service enable api-ssl
/ip service disable api
/user group add name=homeassistant policy=read,api,!local,!telnet,!ssh,!ftp,!reboot,!write,!policy,!test,!winbox,!password,!web,!sniff,!sensitive,!romon,!dude,!tikapp
/user add group=homeassistant name=homeassistant
/user set password="TopSecret" homeassistant

* Fixed import missind ssl lib

* SSL support code cleanup, use ssl-api port by default if ssl enabled

* Restored accidentalli deleted method parameter

* Fixed Python 3.5.3 compilation errors

Fixed Python 3.5.3 compilation errors reported by Travis CI

* Removed duplicated MTK_DEFAULT_API_PORT
2018-11-19 16:54:09 +01:00
..
auth System groups (#18303) 2018-11-08 12:57:00 +01:00
components Add mikrotik SSL support (#17898) 2018-11-19 16:54:09 +01:00
helpers Log delay and wait_template steps in scripts (#18448) 2018-11-19 11:14:00 +01:00
scripts Update credstash.py (#18349) 2018-11-10 08:21:39 +01:00
util Fix including from sub dir (#18378) 2018-11-11 17:15:58 +01:00
__init__.py
__main__.py Lint 2018-10-02 10:35:00 +02:00
bootstrap.py Remove usage of "run_until_complete" (#16617) 2018-09-19 15:40:02 +02:00
config.py Import homeassistant domain instead of hardcoding it (#17985) 2018-10-30 17:38:09 +02:00
config_entries.py Support for Point component (#17466) 2018-11-19 12:52:21 +01:00
const.py Bump version to 0.83.0 2018-11-11 18:22:28 +01:00
core.py Fire an event when timer gets out of sync (#17398) 2018-10-15 11:34:36 +02:00
data_entry_flow.py Add webhook + IFTTT example (#16817) 2018-09-30 14:45:48 +02:00
exceptions.py Allow config entry setup to raise not ready (#17135) 2018-10-04 15:53:50 +02:00
loader.py Doc fix: a circular dependency does not raise an error. (#18298) 2018-11-08 12:59:58 +01:00
monkey_patch.py Narrow scope of various pylint inline disables (#15364) 2018-10-10 12:17:11 +02:00
package_constraints.txt Upgrade ruamel.yaml to 0.15.78 (#18508) 2018-11-17 13:20:17 +01:00
requirements.py Improve package loadable (#16237) 2018-08-28 12:52:18 +02:00
setup.py Report *which* component didn't return a bool (#18258) 2018-11-06 12:41:39 +01:00