How to install SSL certificate in OpenPAI?
Organization Name:
Short summary about the issue/question: Hello, I installed OpenPAI v0.13.0 and it works fine. But now I want to access to OpenPAI using https protocal. I don't know how to install SSL certificates and modify OpenPAI codes to make it support https. I would greatly appreciate if someone gives a little guides. Thanks in advance!
Brief what process you are following:
How to reproduce it:
OpenPAI Environment:
- OpenPAI version:
- Cloud provider or hardware configuration:
- OS (e.g. from /etc/os-release):
- Kernel (e.g.
uname -a): - Hardware (e.g. core number, memory size, storage size, GPU type etc.):
- Others:
Anything else we need to know:
You can refer to this document: https://github.com/microsoft/pai/blob/v0.17.0/docs/aad-e2e/aad-e2e.md#pylon-prepare-your-certificate-for-https-self-sign-cert-as-an-example
You can refer to this document: https://github.com/microsoft/pai/blob/v0.17.0/docs/aad-e2e/aad-e2e.md#pylon-prepare-your-certificate-for-https-self-sign-cert-as-an-example
Thanks for your reply.
I have installed OpenPAI and it works for a few months. I prefer to deploy a standalone pyloy service rather than redeploy the whole OpenPAI. My OpenPAI version is v0.13.0.
Firstly, I refer to https://github.com/microsoft/pai/tree/v0.13.0/docs/pylon to deploy a standalone pylone, set up the following environment, and I can successfully visit existing OpenPAI using http://pylon_ip:80
REST_SERVER_URI: String. The root url of the REST server.
K8S_API_SERVER_URI: String. The root url of Kubernetes's API server.
WEBHDFS_URI: String. The root url of WebHDFS's API server.
PROMETHEUS_URI: String. The root url of Prometheus's API server.
K8S_DASHBOARD_URI: String. The root url of the Kubernetes dashboard.
YARN_WEB_PORTAL_URI: String. The root url of the Yarn web portal.
GRAFANA_URI: String. The root url of Grafana.
PAI_WEB_PORTAL_URI: String. The root url of the PAI web portal.
Now I want to visit my Existing OpenPAI using https://pylon_ip:80 without redeploying the whole OpenPAI. Secondly, I refer to https://github.com/microsoft/pai/blob/v0.17.0/docs/aad-e2e/aad-e2e.md#pylon-prepare-your-certificate-for-https-self-sign-cert-as-an-example to generate CRT and KEY file.
Thirdly, I refer to https://github.com/microsoft/pai/blob/v1.1.1/src/pylon/deploy/pylon-config/run.sh.template to execute the following command in my standalone deployed pylon container : python /pylon-config/render.py cp /root/nginx.conf /etc/nginx/nginx.conf cp /root/location.conf /etc/nginx/location.conf
I copy the generated CRT and KEY file to /root path,and chmod it to 664.
Finally, I start nginx service. But I still can only visit my existing OpenPAI using http://pylon_ip:80. I can't visit it using http://pylon_ip:80.
I tried to change my standalone deployed pylon service docker image from v0.13.0 to v1.1.1, but It still doesn't work.
Can I achieve visiting my exisiting OpenPAI v0.13.0 using https protocol without redeploying it ?
I think I need your further help, thanks a lot.
I suggest you use our latest version.
I suggest you use our latest version.
Thanks