Skip to content

Commit

Permalink
Add exclamation mark to CA OS directory
Browse files Browse the repository at this point in the history
  • Loading branch information
antonkomarev committed Oct 22, 2019
1 parent f7909dc commit ea22de7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ $ sh pric.sh

This command will:

1. Generate Certificate Authority private key in `/usr/local/share/ca-certificates/pric/ca.key`
2. Generate Certificate Authority self-signed certificate in `/usr/local/share/ca-certificates/pric/ca.crt`
1. Generate Certificate Authority private key in `/usr/local/share/ca-certificates/!pric/ca.key`
2. Generate Certificate Authority self-signed certificate in `/usr/local/share/ca-certificates/!pric/ca.crt`
3. Generate localhost private key in `./output/localhost.key`
4. Generate localhost certificate signing request in `./output/localhost.csr`
5. Generate localhost certificate signed by Certificate Authority in `./output/localhost.crt`
Expand All @@ -33,14 +33,14 @@ Terminal output:

1. Go to `about:preferences` in address bar.
2. Search for `Certificates` and click `View Cerficicates` button.
3. In `Authorities` tab click `Import` and choose `/usr/local/share/ca-certificates/pric/ca.crt` certificate.
3. In `Authorities` tab click `Import` and choose `/usr/local/share/ca-certificates/!pric/ca.crt` certificate.

`!pric` Certificate Authority will be added to the list.

#### Chromium (Chrome)

1. Go to `chrome://settings/certificates` in address bar.
2. In `Authorities` tab click `Import` and choose `/usr/local/share/ca-certificates/pric/ca.crt` certificate.
2. In `Authorities` tab click `Import` and choose `/usr/local/share/ca-certificates/!pric/ca.crt` certificate.

`org-!pric` Certificate Authority will be added to the list.

Expand Down
6 changes: 3 additions & 3 deletions pric.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
CA_PATH="/usr/local/share/ca-certificates/pric"
CA_PATH="/usr/local/share/ca-certificates/!pric"
CA_PRIVATE_KEY="${CA_PATH}/ca.key"
CA_CERTIFICATE="${CA_PATH}/ca.crt"
CERTIFICATE_CHAIN="${HOME}/localhost-certificate.pem"
Expand Down Expand Up @@ -31,8 +31,8 @@ fi

## Determine if CA registry directory is missing
if [ ! -d ${CA_PATH} ]; then
# Create pric directory in Operating System CA registry
printf "\nCreating pric directory in Operating System CA registry\n"
# Create !pric directory in Operating System CA registry
printf "\nCreating !pric directory in Operating System CA registry\n"
(set -x; sudo mkdir -p ${CA_PATH})
fi

Expand Down

0 comments on commit ea22de7

Please sign in to comment.