I'm new to Openshift and I'm currently trying to learn how to create a secure passthrough route. So far I have to create a private key, generate a CSR, and generate a self-signed certificate. I'm getting stuck on the next steps. I believe I have to create a TLS secret and then mount cert inside the container? Can anyone show me the next steps?
Generate private key
$ openssl genrsa -out php.key 2048
generate CSR
$ openssl req -new -key php.key -out php.csr \
-subj "/C=GB/ST=London/L=London/O=IT/OU=IT/CN=www.example.com"
generate self-signed certificate
$ openssl x509 -req -days 366 -in php.csr \
-signkey php.key -out php.crt
After this step I'm not sure how to do the TLS secret and mount cert in container