Sending data as ints instead of bytes and ssl works now