### Bug description

I am trying to publish quarto-content to a server hosting RStudio Connect. When i run `quarto publish connect inst/quarto.qmd --token $API_KEY --server $CONNECT_SERVER` i get the following error :
```
ERROR: TypeError: error sending request for url (<CONNECT_SERVER>/__api__/v1/content): error trying to connect: invalid peer certificate contents: invalid peer certificate: UnknownIssuer
```

However, when I instead do a curl to the same url (`curl -H "Authorization: Key $API_KEY" ${CONNECT_SERVER}/__api__/v1/content`), I get a valid response with all the contents listings from my RStudio Connect server.

I have checked my certificates from where I run the `quarto publish` command and I do have a valid certificate for the server running RStudio Connect. Additionally, I am able to use [rsconnect-python](https://docs.posit.co/rsconnect-python/), to deploy a .qmd file using manifest.

Any idea why Quarto is unable to communicate with my server running RStudio Connect?

VERSIONS:
- Quarto: version 1.1.251
- OS:  Red Hat Enterprise Linux Server version 7.9. 
- RStudio Connect:  v2022.09.0





### Checklist

- [X] Please include a minimal, fully reproducible example in a single .qmd file? Please provide the whole file rather than the snippet you believe is causing the issue.
- [X] Please [format your issue](https://quarto.org/bug-reports.html#formatting-make-githubs-markdown-work-for-us) so it is easier for us to read the bug report.
- [x] Please document the RStudio IDE version you're running (if applicable), by providing the value displayed in the "About RStudio" main menu dialog?
- [X] Please document the operating system you're running. If on Linux, please provide the specific distribution.
2022-11-17T11:44:03Z
TheisFerre
bug
Future
open
Quarto publish connect BadCertificate
https://github.com/quarto-dev/quarto-cli/issues/3363