Rewind the file before trying to use PEM_read_RSA_PUBKEY().
[tinc] / src / solaris /
drwxr-xr-x   ..
-rw-r--r-- 9989 device.c