Skip to content
Snippets Groups Projects
Commit 53d0c07f authored by Benguria Elguezabal, Gorka's avatar Benguria Elguezabal, Gorka
Browse files

Merge branch 'diego.rosado-master-patch-65483' into 'master'

update install certificate linux

See merge request smartdatalab/ca!1
parents f13c3003 02d10dca
No related branches found
No related tags found
No related merge requests found
...@@ -23,7 +23,21 @@ certutil -addstore -user -f "Root" "%CA_FILE_PATH%" ...@@ -23,7 +23,21 @@ certutil -addstore -user -f "Root" "%CA_FILE_PATH%"
</pre> </pre>
### Linux ### Linux
To be provided In linux we can use terminal.
#### cmd
To enter into the terminal, press ctrl + alt + t. That will open the terminal console. Write the following commands to install this certificate. Adding certificate this way will make it valid in chrome, and firefox.
<pre>
export CA_RAW_URL=https://git.code.tecnalia.com/smartdatalab/ca/-/raw/master/ca.crt.pem
export TEMP_PATH=$(mktemp -d)
export CA_FILE_PATH=$TEMP_PATH/ca.crt.pem
echo download ca from $CA_RAW_URL to $CA_FILE_PATH
wget $CA_RAW_URL -O $CA_FILE_PATH
echo check downloaded ca
[ -f $CA_FILE_PATH ] && echo "File exist" || echo "File does not exist"
echo add ca to the certificate store
sudo cp $CA_FILE_PATH /usr/local/share/ca-certificates/ca.crt.crt
sudo update-ca-certificates
</pre>
## How to create certificates based on it ## How to create certificates based on it
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment