fix bug #61930: openssl corrupts ssl key resource when using openssl_get_publickey()