Rewind the file before trying to use PEM_read_RSA_PUBKEY().
[tinc] / bash_completion.d /
drwxr-xr-x   ..
-rw-r--r-- 2810 tinc