title: Nodejs DNS verify using HTTP file upload
body: <p>I am trying to verify my DNS to get an SSL certificate using the file upload verification method:</p>
  <p><a href="https://i.stack.imgur.com/HPLs7.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/HPLs7.png" alt="enter image description here" /></a></p>
  <p><a href="https://i.stack.imgur.com/KAtEh.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/KAtEh.png" alt="enter image description here" /></a></p>
  <p>I am using Nodejs express and did this:</p>
  <pre><code>router.get(&quot;/.well-known/pki-validation/6BFB7F1676F92A093F1BF1E6E425082F.txt&quot;,async function(req,res){
      res.sendFile('./6BFB7F1676F92A093F1BF1E6E425082F.txt',{root: __dirname})
  })
  </code></pre>
  <p>When i go the the url I can see the contents of the file. But when I click verify I get:</p>
  <p><a href="https://i.stack.imgur.com/H9sbV.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/H9sbV.png" alt="enter image description here" /></a></p>
  <p>What am I doing wrong?</p>