Depends on your TLS Settings you configured in Cloudflare. When the Mode is on Full or Strict Cloudflare would need a Certificate on Server Side.
I checked again which error i get exactly and its a 522. This means that Cloudflare was able to connect to the Server but the Response didnt finish in Time