Fix certificate path
Some checks are pending
Some checks are pending
This commit is contained in:
parent
7c3bc54b0e
commit
0f4f8e4770
1 changed files with 5 additions and 1 deletions
|
@ -481,6 +481,10 @@ sudo chmod 644 /etc/ssl/registry/registry.crt
|
|||
|
||||
**Important**: The certificate is now generated in the system SSL directory `/etc/ssl/registry/` with your actual CI/CD Linode IP address automatically.
|
||||
|
||||
**Note**: The permissions are set to:
|
||||
- `registry.key`: `600` (owner read/write only) - private key must be secure
|
||||
- `registry.crt`: `644` (owner read/write, group/others read) - certificate can be read by services
|
||||
|
||||
#### 5.3 Create Authentication File
|
||||
|
||||
```bash
|
||||
|
@ -630,7 +634,7 @@ PUSH_USER="push-user"
|
|||
PUSH_PASSWORD=$(grep push-user /etc/registry/auth/auth.htpasswd | cut -d: -f2)
|
||||
|
||||
# Copy the certificate to Docker's trusted certificates
|
||||
sudo cp /opt/registry/ssl/registry.crt /usr/local/share/ca-certificates/registry.crt
|
||||
sudo cp /etc/ssl/registry/registry.crt /usr/local/share/ca-certificates/registry.crt
|
||||
sudo update-ca-certificates
|
||||
|
||||
sudo tee /etc/docker/daemon.json << EOF
|
||||
|
|
Loading…
Add table
Reference in a new issue