Create self-signed Certificates for Ingress
Create self-signed SSL/TLS Ingress Certificates
Need to modify the <FQDN> with your current FQDN before applying the following command.
Create the ingress Certs directory,
- CODE
mkdir ingress-certs cd ingress-certs set the Variable name to your FQDN
- CODE
export FQDN=<enter FQDN here> Now generate a secret with the following commands.
BASHopenssl req -x509 \ -newkey rsa:4096 \ -sha256 \ -days 3650 \ -nodes \ -keyout ${FQDN}.key \ -out ${FQDN}.crt \ -subj "/CN=${FQDN}" \ -addext "subjectAltName=DNS:www.${FQDN},DNS:${FQDN}"Create kubernetes secret in your required namespace
CODEkubectl -n <NAMESPACE> create secret tls ef-ingress-tls-secret --key ${FQDN}.key --cert ${FQDN}.crtSwitch to the previous directory
BASHcd ../