Open ssl.conf in a text editor.
Edit the domain(s) listed under the [alt_names] section so that they match the local domain name you want to use for your project, e.g.
DNS.1 = my-project.dev
Additional FQDNs can be added if required:
| #!/bin/bash | |
| TEXT_RESET='\e[0m' | |
| TEXT_YELLOW='\e[0;33m' | |
| TEXT_RED_B='\e[1;31m' | |
| # Get list of installed kernels. The `head -n -1` removes the | |
| # last kernel in the list, which should be the latest kernel. | |
| old_kernels=($(dpkg -l | grep linux-image | tr -s " " | \ | |
| cut -f 2 -d ' ' | sort -V | uniq | head -n -1)) |
| #!/usr/bin/env bash | |
| # | |
| # Usage: dev_signed_cert.sh HOSTNAME | |
| # | |
| # Creates a CA cert and then generates an SSL certificate signed by that CA for the | |
| # given hostname. | |
| # | |
| # After running this, add the generated dev_cert_ca.cert.pem to the trusted root | |
| # authorities in your browser / client system. | |
| # |
| #!/bin/bash | |
| TEXT_RESET='\e[0m' | |
| TEXT_YELLOW='\e[0;33m' | |
| TEXT_RED_B='\e[1;31m' | |
| sudo apt-get update | |
| echo -e $TEXT_YELLOW | |
| echo 'APT update finished...' | |
| echo -e $TEXT_RESET |