Downloading maps using OSM in Agents.jl. OpenSSLError

I am trying to use the OSM module og Agents.jl to download maps from openstreetmaps. With the following MWE

using Agents

map_path = OSM.download_osm_network(:place_name;
        place_name = "Trondheim",
        network_type = :drive,
        save_to_file_location = "trondheim.json"
    )

I get the error

ERROR: LoadError: HTTP.ConnectError for url = `https://nominatim.openstreetmap.org/search?polygon_geojson=1&format=json&dedupe=0&q=Trondheim&limit=5`: OpenSSL.OpenSSLError("unable to get local issuer certificate")

Top of the call stack (it was very long…):

caused by: OpenSSL.OpenSSLError("unable to get local issuer certificate")
Stacktrace:
  [1] macro expansion
    @ C:\Users\magnusl\.julia\packages\OpenSSL\2SUGA\src\ssl.jl:532 [inlined]
  [2] macro expansion
    @ .\lock.jl:273 [inlined]
  [3] connect(ssl::OpenSSL.SSLStream; require_ssl_verification::Bool)
    @ OpenSSL C:\Users\magnusl\.julia\packages\OpenSSL\2SUGA\src\ssl.jl:525
  [4] connect
    @ C:\Users\magnusl\.julia\packages\OpenSSL\2SUGA\src\ssl.jl:509 [inlined]
  [5] #sslconnection#19
    @ C:\Users\magnusl\.julia\packages\HTTP\ShTJs\src\Connections.jl:599 [inlined]
  [6] sslconnection
    @ C:\Users\magnusl\.julia\packages\HTTP\ShTJs\src\Connections.jl:589 [inlined]
  [7] getconnection(::Type{…}, host::SubString{…}, port::SubString{…}; kw::@Kwargs{…})
    @ HTTP.Connections C:\Users\magnusl\.julia\packages\HTTP\ShTJs\src\Connections.jl:586
...

I am not very knowledgable about ssl or how Julia handles this so any pointers would be appreciated.