title: Webpage works in browser, but not from R: SSL certificate problem: certificate has expired
body: <p><a href="https://api.worldbank.org/v2/country?format=json" rel="nofollow noreferrer">This</a> url works in the browser, providing some JSON data. </p>
  
  <p>It worked from R until very recently, it now returns:</p>
  
  <pre><code>library(jsonlite)
  fromJSON("https://api.worldbank.org/v2/country?format=json")
  
  # Error in open.connection(con, "rb") : 
  #   SSL certificate problem: certificate has expired
  
  library(rvest)
  read_html("https://api.worldbank.org/v2/country?format=json")
  
  # Error in open.connection(con, "rb") : 
  #   SSL certificate problem: certificate has expired
  </code></pre>
  
  <h3>What I know so far</h3>
  
  <p>I am not sure if this is an issue on the API side, or somewhere in R?</p>
  
  <ul>
  <li>There seems to be an analogous solution <a href="https://stackoverflow.com/a/45295194/5783745">here</a>, although any solution I use must not use browser automation (selenium), but instead must use either jsonlite or rvest</li>
  </ul>