Sample Code: OpenAI service failed to complete the prompt, APIConnectionError issue with Python 3.10
## The problem
Issue microsoft/semantic-kernel#627 (closed, 26 comments): **Describe the bug** Unable to run the sample code here: https://github.com/microsoft/semantic-kernel/blob/main/python/README.md **To Reproduce** Steps to reproduce the behavior: 1. Create new virtual environment `python -m venv venv` 2. `python -m pip install --upgrade semantic-kernel` 3. Create a `.env` file following these instructions: https://github.com/microsoft/semantic-kernel/blob/main/python/README.md#openai--azure-openai-api-keys 4.
## The fix
Semantic Kernel Python sample failing with APIConnectionError / SSL certificate verify errors on macOS: the bundled Python install lacks the system CA certs. Fix: run the Install Certificates command for your Python version (e.g. bash /Applications/Python*/Install\ Certificates.command), then restart your Jupyter kernel or Python process. Maintainer-tested.
## Notes
Thread: https://github.com/microsoft/semantic-kernel/issues/627. Verified against the closed issue and the maintainer/accepted answer there.