So I did various other things.
I added this to my php.ini
curl.cainfo ="/etc/cacert.pem"
I download the file from curl's site at http://curl.haxx.se/ca/cacert.pem
I tried manually curling my site's api page
curl --cacert /etc/cacert.pem https://<my wiki site>/api.php
That still gave me an error
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.
So I added my SSL pem cert to the end of the file /etc/cacert.pem
Then I added this to my LocalSettings.php
wfLoadExtension( 'Parsoid', '/home/un9/mediawiki/vendor/wikimedia/parsoid/extension.json' );
$wgGroupPermissions['user']['writeapi'] = true;
That's what I did and now it works, not sure if every step is necessary.