Generating TLS Certificates

Self-signed certificate for testing

To create a new certificate, run the following command:

openssl req -x509 -nodes -days 365 -newkey rsa:2048 \
    -keyout ui_tls.key \
    -out ui_tls.crt \
    -subj "/CN=yourname"
    
openssl req -x509 -nodes -days 365 -newkey rsa:2048 \
    -keyout backend_tls.key \
    -out backend_tls.crt \
    -subj "/CN=yourname"    


Then update the environment variables with the certificates using:

export AB_UI_TLS_CERTIFICATE_KEY="$(cat ui_tls.key | base64)"
export AB_UI_TLS_CERTIFICATE_CRT="$(cat ui_tls.crt | base64)"

export AB_BACKEND_TLS_CERTIFICATE_KEY="$(cat backend_tls.key | base64)"
export AB_BACKEND_TLS_CERTIFICATE_CRT="$(cat backend_tls.crt | base64)"