Skip to content

Commit

Permalink
Corrections
Browse files Browse the repository at this point in the history
  • Loading branch information
DerekRoberts committed Mar 11, 2024
1 parent d2f2575 commit cf4b84f
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions support/custom_url.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,21 +11,22 @@ echo "Enter the fully qualified domain name (FQDN) name for the certificate:"
read DOMAIN

# Default subject
SUBJECT="/C=CA/ST=British Columbia/L=Victoria/O=Government of the Province of British Columbia/OU=EMPR/CN=${DOMAIN}"
SUBJECT="/C=CA/ST=British Columbia/L=Victoria/O=Government of the Province of British Columbia/CN=${DOMAIN}"
echo "Subject: $SUBJECT"

# Accept or create a new subject
echo "Accept subject? (y/n)"
read ACCEPT
[[ "${ACCEPT^}" == "Y" ]]|| \
if [[ "${ACCEPT^}" != "Y" ]]; then
echo "Subject: " && read SUBJECT
fi

# Generate the key and csr
openssl req -new -newkey ed25519 -nodes -keyout ${DOMAIN}.key -out ${DOMAIN}.csr -subj "${SUBJECT}"
echo -e "The following have been created:"
ls -l ${DOMAIN}.{csr,key}

echo -e "BC Gov Only! --- \n"
echo -e "\nBC Gov Only! --- \n"
echo "Create a JIRA issue with the following"
echo " Title: SSL Certificate Request for ${DOMAIN}"
echo " Description: Please create an SSL certificate for: ${DOMAIN}"
Expand All @@ -34,5 +35,6 @@ echo " Provide the generated Attach both generated files"
# Open JIRA - optional
echo "Would you like to be redirected to Natural Resources JIRA? (y/n)"
read ACCEPT
[[ "${ACCEPT^}" != "Y" ]]|| \
if [[ "${ACCEPT^}" == "Y" ]]; then
xdg-open 'https://apps.nrs.gov.bc.ca/int/jira/secure/CreateIssue!default.jspa'
fi

0 comments on commit cf4b84f

Please sign in to comment.