openssl_pkey_export(): cannot get key from parameter 1

NoSuchKey