1. Appendices

Create the TLS/HTTPS certificates

Version: 10.5

To generate the TLS/SSL certificates that are required by the NGINX ingress controller:

  1. Open a Windows Command Prompt with Administrator rights.

  2. Navigate to the folder containing Kubernetes specification files for the topology you are using.

  3. Run the following commands one by one:

    
    IF NOT EXIST mkcert.exe powershell Invoke-WebRequest https://github.com/FiloSottile/mkcert/releases/download/v1.4.1/mkcert-v1.4.1-windows-amd64.exe -UseBasicParsing -OutFile mkcert.exe
    
    mkcert -install
    
    del /Q /S *.crt
    
    del /Q /S *.key
    
    mkcert -cert-file secrets\tls\global-cm\tls.crt -key-file secrets\tls\global-cm\tls.key "cm.globalhost"
    
    mkcert -cert-file secrets\tls\global-cd\tls.crt -key-file secrets\tls\global-cd\tls.key "cd.globalhost"
    
    mkcert -cert-file secrets\tls\global-id\tls.crt -key-file secrets\tls\global-id\tls.key "id.globalhost"
    
    Note

    The first time the mkcert utility runs, it might prompt you to install the generated self-signed root certificate authority.

If you have suggestions for improving this article, let us know!