Rewind the file before trying to use PEM_read_RSA_PUBKEY().
[tinc] / src / mingw /
drwxr-xr-x   ..
-rw-r--r-- 3179 common.h
-rw-r--r-- 6428 device.c