解决Unbound报错unknown keyword ‘tls-*’

在配置Unbound时遇到如下错误:

/etc/unbound/unbound.conf:16: error: unknown keyword 'tls-service-key'
/etc/unbound/unbound.conf:16: error: stray ':'
/etc/unbound/unbound.conf:16: error: stray '"'
/etc/unbound/unbound.conf:16: error: unknown keyword 'key.pem'
/etc/unbound/unbound.conf:16: error: stray '"'
/etc/unbound/unbound.conf:17: error: unknown keyword 'tls-service-pem'
/etc/unbound/unbound.conf:17: error: stray ':'
/etc/unbound/unbound.conf:17: error: stray '"'
/etc/unbound/unbound.conf:17: error: unknown keyword 'fullchain.pem'
/etc/unbound/unbound.conf:17: error: stray '"'
/etc/unbound/unbound.conf:18: error: unknown keyword 'tls-port'
/etc/unbound/unbound.conf:18: error: stray ':'
/etc/unbound/unbound.conf:18: error: unknown keyword '853'
read /etc/unbound/unbound.conf failed: 13 errors in configuration file [1579421749] unbound[17698:0] fatal error: Could not read config file: /etc/unbound/unbound.conf

搜寻后得知是官方文档有变更,将tls全部改为ssl即可。