Error installing on WSL2 Ubuntu related to SSL certificates

Hi all. I received an error in the installation process I followed here. I am trying to install on WSL2 Ubuntu on my Windows machine via WSL2 command line. I am on a corporate computer which may have some firewalls and VPNs. Appreciate any help.

This is the command that produced the error.

curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg

This is the error message.

File '/usr/share/keyrings/docker-archive-keyring.gpg' exists. Overwrite? (y/N) curl: (60) SSL certificate problem: unable to get local issuer certificate
More details here: https://curl.haxx.se/docs/sslcerts.html

curl failed to verify the legitimacy of the server and therefore could not
establish a secure connection to it. To learn more about this situation and
how to fix it, please visit the web page mentioned above.
Y
gpg: no valid OpenPGP data found.

I am not a linux expert, but I did a little bit of due dilligence by reading the link supplied by the error message and trying to download the certificate myself, but received this message.

openssl s_client -showcerts -servername server -connect server:443 > cacert.pem
140138245563712:error:2008F002:BIO routines:BIO_lookup_ex:system lib:../crypto/bio/b_addr.c:726:Name or service not known
connect:errno=22