Unable to complete install of Matomo in IIS/Windows Server 2022

I figured it out!
In the php.ini file I already had
extension=php_openssl.dll
and it did not work, but when I uncommented
extension=openssl
and reloaded IIS, the error cleared.