Skip to content

Commit

Permalink
Add new notes in repo
Browse files Browse the repository at this point in the history
  • Loading branch information
arodriguezd committed Sep 1, 2024
1 parent fa59625 commit 05e3bab
Show file tree
Hide file tree
Showing 47 changed files with 352 additions and 29 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
with:
python-version: 3.x
- uses: actions/cache@v2
- uses: actions/cache@v4
with:
key: ${{ github.ref }}
path: .cache
Expand Down
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -160,3 +160,7 @@ cython_debug/
# and can be added to the global gitignore or merged into this file. For a more nuclear
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
#.idea/

# File backups
*-bkp.*

Empty file added docs/cloud/aws/aws.md
Empty file.
Empty file.
Empty file added docs/cloud/azure/azure.md
Empty file.
Empty file.
Empty file.
Empty file added docs/cloud/gcp/gcp.md
Empty file.
Empty file.
Empty file added docs/databases/mongodb.md
Empty file.
Empty file added docs/databases/mysql.md
Empty file.
Empty file added docs/databases/postgresql.md
Empty file.
Empty file added docs/development/javascript.md
Empty file.
Empty file added docs/development/nodejs.md
Empty file.
Empty file added docs/development/python.md
Empty file.
Empty file added docs/hardware/raspberrypi.md
Empty file.
2 changes: 0 additions & 2 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,3 @@

## Under Construction



Empty file added docs/linux/alpine.md
Empty file.
Empty file added docs/linux/generic.md
Empty file.
Empty file added docs/linux/kali.md
Empty file.
Empty file added docs/linux/rocky.md
Empty file.
Empty file added docs/linux/ubuntu.md
Empty file.
Empty file added docs/monitoring/elk.md
Empty file.
Empty file added docs/monitoring/grafana.md
Empty file.
Empty file added docs/monitoring/prometheus.md
Empty file.
Empty file added docs/monitoring/zabbix.md
Empty file.
Empty file added docs/networking/dns.md
Empty file.
Empty file added docs/networking/firewall.md
Empty file.
Empty file added docs/networking/vpn.md
Empty file.
Empty file added docs/security/certificates.md
Empty file.
Empty file added docs/security/encryption.md
Empty file.
87 changes: 87 additions & 0 deletions docs/security/encryption/gnupg.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
# GNUPGP

A GPG certificate allows us to encrypt email messages, encrypt files, and authenticate code in git repositories, as well as being able to use it with Pass to have a local password manager.


#### Create keys GPG
```
gpg --full-generate-key
```

#### View GPG keys
```
gpg --list-key
```

List keys GPG install

Short format
```
gpg --keyid-format short --list-keys
```

Long format
```
gpg --keyid-format long --list-keys
```

Other options
```
gpg --list-secret-keys gpg <your_email>
```

```
gpg --fingerprint <your_email>/<ID>
```

#### Delete GPG keys

Delete public gpg
```
gpg --delete-key <your_email>
```

Delete private gpg
```
gpg --delete-secret-key <your_email>
```


#### Export GPG Keys

Export public key
```
gpg --export -a <your_email>/<ID>
```

!!! warning
Store the private key in a safe place and with a strong password

Export private key
```
gpg --export-secret-key -a <your_email>/<ID>
```

Export Revoke key
```
gpg --gen-revoke <your_email>/<ID>
```

#### Import GPG keys
Import public and private key
```
gpg --import <name_file_gpg.key>
```

#### Renew subkeys

```
gpg --edit-key <your_email>/<ID>
gpg>key [ID-subkeys]
gpg> expire
gpg>save
```

Empty file.
51 changes: 51 additions & 0 deletions docs/security/password/passwordmanagers.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
# Pass

Password management should be simple and follow Unix philosophy. With Pass, each password lives inside of a gpg encrypted file whose filename is the title of the website or resource that requires the password.
These encrypted files may be organized into meaningful folder hierarchies, copied from computer to computer, and, in general, manipulated using standard command line file management utilities.
Pass is a simple password manager for the command line.


Pass is a shell script that makes use of existing tools like GnuPG, tree and Git.

!!! note
Before configuring Pass you need to have a GPG certificate to encrypt the credentials.

To get started with Pass, follow these steps:


#### Install
1. Install Pass: You can install Pass by running the following command in your terminal:
```
sudo apt-get install pass
```
2. Generate a GPG key pair: If you don't have a GPG key pair yet, you can generate one by running the following command:
```
gpg --full-generate-key
```
3. Initialize Pass: Once you have a GPG key pair, you can initialize Pass by running the following command:
```
pass init <[email protected]>
```
4. Add a password: To add a password, use the following command:
```
pass insert <website-or-resource>
```
This will prompt you to enter the password for the website or resource. Pass will then encrypt and store the password in a file.
5. Retrieve a password: To retrieve a password, use the following command:
```
pass show <website-or-resource>
```
This will display the decrypted password on the command line.
Remember to always keep your GPG key pair secure and backup your Pass password store regularly.
Empty file added docs/security/passwords.md
Empty file.
Empty file added docs/technologies/ansible.md
Empty file.
Empty file added docs/technologies/docker.md
Empty file.
Empty file added docs/technologies/git.md
Empty file.
Empty file added docs/technologies/jenkins.md
Empty file.
Empty file added docs/technologies/kubernetes.md
Empty file.
Empty file added docs/technologies/packer.md
Empty file.
Empty file added docs/technologies/terraform.md
Empty file.
Empty file added docs/technologies/vagrant.md
Empty file.
Empty file added docs/windows/sqlserver.md
Empty file.
Empty file added docs/windows/windows10.md
Empty file.
Empty file added docs/windows/windowsserver.md
Empty file.
Loading

0 comments on commit 05e3bab

Please sign in to comment.