Autosave: 2025-02-09 13:31:44
|
@ -0,0 +1,65 @@
|
|||
---
|
||||
tags: [networks, server-management]
|
||||
created: Sunday, February 09, 2025
|
||||
---
|
||||
|
||||
# Certificates and certificate authorities
|
||||
|
||||
> HTTPS is a secure tunnel for data transmission, but the certificate is what
|
||||
> establishes trust and enables the secure tunnel in the first place.
|
||||
|
||||
Before secure communication over HTTPS can commence between a client and a
|
||||
server, the client must confirm that the server is who it says it is. This is in
|
||||
order to prevent man-in-the-middle attacks where malicious actors attempt to
|
||||
impersonate legitimate websites.
|
||||
|
||||
Certificates exist to authenticate domains, prior to the exchange of encrypted
|
||||
data. To do this, a server generates a certificate with a reputable Certificate
|
||||
Authority, thereby verifying its identity with the CA. It sends this certificate
|
||||
(which includes its [public key](bbdcb54f_public_key_cryptography.md)) when
|
||||
initiating a connection with a client.
|
||||
|
||||
In addition to the public key, the certificate provides:
|
||||
|
||||
- the domain name
|
||||
- the CA that certified the domain
|
||||
- the period of validity
|
||||
- a digital signature from the CA
|
||||
|
||||
The client uses this data to validate the identity of the server it has sent a
|
||||
request to. Browsers come pre-installed with a list of trusted CAs.
|
||||
|
||||
Certificates are called TLS/SSL certificates but the main protocol is TLS rather
|
||||
than SSL.
|
||||
|
||||
Indications that a server is not to be trusted include:
|
||||
|
||||
- expired certificates
|
||||
- certificates issued for the wrong domain
|
||||
- self-signed certificates not issued by a trusted CA
|
||||
|
||||
## Certification process
|
||||
|
||||
Standard domain-validated authentication proceeds as follows:
|
||||
|
||||
1. Server generates public/private key pair
|
||||
2. Server creates a certificate signing request containing its public key and
|
||||
domain name
|
||||
3. CA validates the domain and signs the certificate with its private key
|
||||
4. Server discloses its public key and CA signature
|
||||
5. Client knows CAs public key and uses this to verify the signature
|
||||
6. Server's public key is then trusted
|
||||
|
||||
### How validation executes between CA and server
|
||||
|
||||
To validate the domain (step 3 above), the CA gives the server a "challenge" to
|
||||
prove they control the domain. This can include:
|
||||
|
||||
- Putting a specific token as a DNS TXT record (DNS validation)
|
||||
- Putting a file at a certain URL (HTTP validation)
|
||||
- Email validation: sending an email to standard admin address for the server.
|
||||
Server owner clicks the link.
|
||||
|
||||
### Related
|
||||
|
||||
See [Let's Encrypt](Let's_Encrypt.md)
|
44
neuron/ac6779a0-333b-484d-8504-e6927d39c983/Firewalls.md
Normal file
|
@ -0,0 +1,44 @@
|
|||
---
|
||||
tags: [networks, server-management]
|
||||
created: Sunday, February 09, 2025
|
||||
---
|
||||
|
||||
# Firewalls
|
||||
|
||||
A firewall is a server mechanism that filters incoming requests for resources
|
||||
and services that it hosts.
|
||||
|
||||
Based on data about the requester, derived from the
|
||||
[TLS](Transport_Layer_of_Internet_Protocol.md) packet headers, the firewall
|
||||
decides whether or not to grant access to the requested resource.
|
||||
|
||||
It will typically comprise three actions:
|
||||
|
||||
- accept
|
||||
- drop
|
||||
- reject
|
||||
|
||||
Accept is obvious. To "drop" means to block the traffic without sending a reply.
|
||||
To "reject" is to block the traffic but reply with an "unreachable" error.
|
||||
|
||||
An example of a firewall rule would be to drop incoming traffic from IP
|
||||
addresses of non-technical employees to the SSH port (22) but allow technical
|
||||
staff to access it.
|
||||
|
||||
Network traffic is matched agains a list of firewall rules in a sequence from
|
||||
first to last. As you cannot cover all cases, you must specify a default action
|
||||
when a rule is not matched.
|
||||
|
||||
Whilst firewalls are focused on incoming traffic, you can also apply rules to
|
||||
outgoing traffic. A server will permit most outgoing traffic since, after all,
|
||||
it can trust itself however you may want to stop the server connecting to known
|
||||
malicious actors.
|
||||
|
||||
## Related software
|
||||
|
||||
IPTables is the standard Linux software for managing firewalls. There is also
|
||||
Uncomplicated Firewall (UWF) which attaches to IPTables and simplifies the
|
||||
process.
|
||||
|
||||
Another usefule software is Fail2ban which can automatically configure your
|
||||
firewall to block brute force login attempts and DDOS attacks.
|
|
@ -1,5 +1,5 @@
|
|||
---
|
||||
tags: [world-wide-web, internet, encryption]
|
||||
tags: [world-wide-web, internet, encryption, server-management]
|
||||
created: Friday, December 14, 2024
|
||||
---
|
||||
|
||||
|
@ -17,9 +17,10 @@ It utilises two types of encryption to send messages securely:
|
|||
- a single shared key between client and server to encrypt the messages sent
|
||||
between them
|
||||
- asymmetric encryption
|
||||
- two keys are used: a public key to encrypt the data and a private key to
|
||||
decrypt it. The public key can be shared freely so anyone can encrypt and
|
||||
send data to a peer but only the peer can receive and decrypt it
|
||||
- two keys are used: a [public key](bbdcb54f_public_key_cryptography.md) to
|
||||
encrypt the data and a private key to decrypt it. The public key can be
|
||||
shared freely so anyone can encrypt and send data to a peer but only the
|
||||
peer can receive and decrypt it
|
||||
|
||||
The encryption protocol used is TLS - the **Transport Layer Security Protocol**.
|
||||
Previously SSL (Secure Sockets Layer) was used but has been deprecated over
|
||||
|
@ -29,12 +30,12 @@ security concerns.
|
|||
|
||||
- An initial handshake is shared between client and server, agreeing that
|
||||
communication will be encrypted. This is public. "Client hello" and "Server
|
||||
hello". Some random numbers are exchanged at this point.
|
||||
- The server sends a digital certificate to the client along with its public
|
||||
key. The client checks that the certificate is valid.
|
||||
hello". Some random numbers are exchanged at this point
|
||||
- The server sends a digital [certificate](Certificate_authorities.md') key
|
||||
The client checks that the certificate is valid
|
||||
- If valid, the client encrypts a string of bytes using the public key and sends
|
||||
it to the server. This is called the "premaster secret".
|
||||
- This is decrypted by the server.
|
||||
it to the server. This is called the "premaster secret"
|
||||
- This is decrypted by the server
|
||||
- The premaster secret, along with the random bytes from the handshake is then
|
||||
used to compute a shared secret key (symmetric) which is used to encrypt all
|
||||
subsequent messages for the duration of the session.
|
||||
subsequent messages for the duration of the session
|
|
@ -0,0 +1,6 @@
|
|||
---
|
||||
tags: []
|
||||
created: Sunday, February 09, 2025
|
||||
---
|
||||
|
||||
# Let's_Encrypt
|
Before Width: | Height: | Size: 664 B After Width: | Height: | Size: 664 B |
Before Width: | Height: | Size: 622 B After Width: | Height: | Size: 622 B |
Before Width: | Height: | Size: 5.8 KiB After Width: | Height: | Size: 5.8 KiB |
|
@ -13,12 +13,17 @@ computer science.
|
|||
|
||||
<a href="https://thomasabishop.github.io/eolas/tags">View tags</a>
|
||||
|
||||
**Build ID:** 3b3f3885-a969-4331-8766-b386e8dbd527
|
||||
**Build ID:** ac6779a0-333b-484d-8504-e6927d39c983
|
||||
|
||||
**Published:** Mon 03 Feb 2025 12:48:43
|
||||
**Published:** Sun 09 Feb 2025 13:31:39
|
||||
|
||||
### Recent edits
|
||||
|
||||
- [[Certificate_authorities]]
|
||||
- [[Let's_Encrypt]]
|
||||
- [[Firewalls]]
|
||||
- [[HTTPS]]
|
||||
- [[Bash_colour_output]]
|
||||
- [[e383b8b3_nginx_vs_traefik]]
|
||||
- [[Proxies]]
|
||||
- [[LineageOS_backup]]
|
||||
|
@ -26,14 +31,9 @@ computer science.
|
|||
- [[c9d7492f_requerimiento]]
|
||||
- [[Compile_Python_app_to_single_executable]]
|
||||
- [[Sorting_lists_in_Python]]
|
||||
- [[Algebra_key_terms]]
|
||||
- [[Python_package_management]]
|
||||
- [[Ping]]
|
||||
- [[Monitor_DNS_resolution_and_internet_connectivity_script]]
|
||||
- [[ICMP_Protocol]]
|
||||
|
||||
|
||||
### All notes (523)
|
||||
### All notes (526)
|
||||
|
||||
- [[0716531c_rewilding_the_internet]]
|
||||
- [[241fe1a3_the_Web_versus_modem_BBSs]]
|
||||
|
@ -113,6 +113,7 @@ computer science.
|
|||
- [[Capturing_user_input_in_Bash]]
|
||||
- [[Case_statements_in_Bash]]
|
||||
- [[Cells_and_batteries]]
|
||||
- [[Certificate_authorities]]
|
||||
- [[Cherry_picking]]
|
||||
- [[Child_to_parent_data_flow_in_React]]
|
||||
- [[Chipset_and_controllers]]
|
||||
|
@ -214,6 +215,7 @@ computer science.
|
|||
- [[File_system_error_handling_in_Python]]
|
||||
- [[Filesystems]]
|
||||
- [[Find_Bash_command]]
|
||||
- [[Firewalls]]
|
||||
- [[Flip_flops]]
|
||||
- [[Foreign_keys_in_SQL]]
|
||||
- [[Formal_conventions]]
|
||||
|
@ -281,6 +283,7 @@ computer science.
|
|||
- [[Latches]]
|
||||
- [[Law_of_Non_Contradiction]]
|
||||
- [[Law_of_the_Excluded_Middle]]
|
||||
- [[Let's_Encrypt]]
|
||||
- [[Lifecycle_methods]]
|
||||
- [[LineageOS_backup]]
|
||||
- [[Link_Layer_of_Internet_Protocol]]
|
Before Width: | Height: | Size: 11 KiB After Width: | Height: | Size: 11 KiB |
Before Width: | Height: | Size: 23 KiB After Width: | Height: | Size: 23 KiB |
Before Width: | Height: | Size: 82 KiB After Width: | Height: | Size: 82 KiB |
Before Width: | Height: | Size: 39 KiB After Width: | Height: | Size: 39 KiB |
Before Width: | Height: | Size: 295 KiB After Width: | Height: | Size: 295 KiB |
Before Width: | Height: | Size: 7.1 KiB After Width: | Height: | Size: 7.1 KiB |
Before Width: | Height: | Size: 145 KiB After Width: | Height: | Size: 145 KiB |
Before Width: | Height: | Size: 68 KiB After Width: | Height: | Size: 68 KiB |
Before Width: | Height: | Size: 289 KiB After Width: | Height: | Size: 289 KiB |
Before Width: | Height: | Size: 28 KiB After Width: | Height: | Size: 28 KiB |
Before Width: | Height: | Size: 6.9 MiB After Width: | Height: | Size: 6.9 MiB |
Before Width: | Height: | Size: 224 KiB After Width: | Height: | Size: 224 KiB |
Before Width: | Height: | Size: 6.4 KiB After Width: | Height: | Size: 6.4 KiB |
Before Width: | Height: | Size: 312 KiB After Width: | Height: | Size: 312 KiB |
Before Width: | Height: | Size: 68 KiB After Width: | Height: | Size: 68 KiB |
Before Width: | Height: | Size: 56 KiB After Width: | Height: | Size: 56 KiB |
Before Width: | Height: | Size: 31 KiB After Width: | Height: | Size: 31 KiB |
Before Width: | Height: | Size: 31 KiB After Width: | Height: | Size: 31 KiB |
Before Width: | Height: | Size: 46 KiB After Width: | Height: | Size: 46 KiB |
Before Width: | Height: | Size: 3.2 KiB After Width: | Height: | Size: 3.2 KiB |
Before Width: | Height: | Size: 3.9 KiB After Width: | Height: | Size: 3.9 KiB |
Before Width: | Height: | Size: 3.9 KiB After Width: | Height: | Size: 3.9 KiB |
Before Width: | Height: | Size: 20 KiB After Width: | Height: | Size: 20 KiB |
Before Width: | Height: | Size: 24 KiB After Width: | Height: | Size: 24 KiB |
Before Width: | Height: | Size: 86 KiB After Width: | Height: | Size: 86 KiB |
Before Width: | Height: | Size: 54 KiB After Width: | Height: | Size: 54 KiB |
Before Width: | Height: | Size: 30 KiB After Width: | Height: | Size: 30 KiB |
Before Width: | Height: | Size: 724 KiB After Width: | Height: | Size: 724 KiB |
Before Width: | Height: | Size: 198 KiB After Width: | Height: | Size: 198 KiB |
Before Width: | Height: | Size: 232 KiB After Width: | Height: | Size: 232 KiB |
Before Width: | Height: | Size: 21 KiB After Width: | Height: | Size: 21 KiB |
Before Width: | Height: | Size: 3.6 MiB After Width: | Height: | Size: 3.6 MiB |
Before Width: | Height: | Size: 204 KiB After Width: | Height: | Size: 204 KiB |
Before Width: | Height: | Size: 49 KiB After Width: | Height: | Size: 49 KiB |
Before Width: | Height: | Size: 20 KiB After Width: | Height: | Size: 20 KiB |
Before Width: | Height: | Size: 86 KiB After Width: | Height: | Size: 86 KiB |
Before Width: | Height: | Size: 21 KiB After Width: | Height: | Size: 21 KiB |
Before Width: | Height: | Size: 165 KiB After Width: | Height: | Size: 165 KiB |
Before Width: | Height: | Size: 3.8 KiB After Width: | Height: | Size: 3.8 KiB |
Before Width: | Height: | Size: 1.6 KiB After Width: | Height: | Size: 1.6 KiB |
Before Width: | Height: | Size: 5.3 KiB After Width: | Height: | Size: 5.3 KiB |
Before Width: | Height: | Size: 84 KiB After Width: | Height: | Size: 84 KiB |
Before Width: | Height: | Size: 91 KiB After Width: | Height: | Size: 91 KiB |
Before Width: | Height: | Size: 90 KiB After Width: | Height: | Size: 90 KiB |
Before Width: | Height: | Size: 91 KiB After Width: | Height: | Size: 91 KiB |
Before Width: | Height: | Size: 133 KiB After Width: | Height: | Size: 133 KiB |
Before Width: | Height: | Size: 25 KiB After Width: | Height: | Size: 25 KiB |
Before Width: | Height: | Size: 61 KiB After Width: | Height: | Size: 61 KiB |
Before Width: | Height: | Size: 45 KiB After Width: | Height: | Size: 45 KiB |
Before Width: | Height: | Size: 4 KiB After Width: | Height: | Size: 4 KiB |
Before Width: | Height: | Size: 19 KiB After Width: | Height: | Size: 19 KiB |
Before Width: | Height: | Size: 23 KiB After Width: | Height: | Size: 23 KiB |
Before Width: | Height: | Size: 6.3 KiB After Width: | Height: | Size: 6.3 KiB |
Before Width: | Height: | Size: 2 KiB After Width: | Height: | Size: 2 KiB |
Before Width: | Height: | Size: 15 KiB After Width: | Height: | Size: 15 KiB |
Before Width: | Height: | Size: 15 KiB After Width: | Height: | Size: 15 KiB |
Before Width: | Height: | Size: 21 KiB After Width: | Height: | Size: 21 KiB |
Before Width: | Height: | Size: 45 KiB After Width: | Height: | Size: 45 KiB |
Before Width: | Height: | Size: 194 KiB After Width: | Height: | Size: 194 KiB |
Before Width: | Height: | Size: 148 KiB After Width: | Height: | Size: 148 KiB |
Before Width: | Height: | Size: 16 KiB After Width: | Height: | Size: 16 KiB |
Before Width: | Height: | Size: 46 KiB After Width: | Height: | Size: 46 KiB |
Before Width: | Height: | Size: 30 KiB After Width: | Height: | Size: 30 KiB |
Before Width: | Height: | Size: 9 KiB After Width: | Height: | Size: 9 KiB |
Before Width: | Height: | Size: 13 KiB After Width: | Height: | Size: 13 KiB |
Before Width: | Height: | Size: 9.6 KiB After Width: | Height: | Size: 9.6 KiB |
Before Width: | Height: | Size: 20 KiB After Width: | Height: | Size: 20 KiB |
Before Width: | Height: | Size: 70 KiB After Width: | Height: | Size: 70 KiB |
Before Width: | Height: | Size: 121 KiB After Width: | Height: | Size: 121 KiB |
Before Width: | Height: | Size: 5.9 KiB After Width: | Height: | Size: 5.9 KiB |
Before Width: | Height: | Size: 808 KiB After Width: | Height: | Size: 808 KiB |
Before Width: | Height: | Size: 32 KiB After Width: | Height: | Size: 32 KiB |
Before Width: | Height: | Size: 470 KiB After Width: | Height: | Size: 470 KiB |
Before Width: | Height: | Size: 12 KiB After Width: | Height: | Size: 12 KiB |
Before Width: | Height: | Size: 13 KiB After Width: | Height: | Size: 13 KiB |
Before Width: | Height: | Size: 10 KiB After Width: | Height: | Size: 10 KiB |
Before Width: | Height: | Size: 14 KiB After Width: | Height: | Size: 14 KiB |
Before Width: | Height: | Size: 13 KiB After Width: | Height: | Size: 13 KiB |
Before Width: | Height: | Size: 11 KiB After Width: | Height: | Size: 11 KiB |
Before Width: | Height: | Size: 99 KiB After Width: | Height: | Size: 99 KiB |
Before Width: | Height: | Size: 201 KiB After Width: | Height: | Size: 201 KiB |
Before Width: | Height: | Size: 175 KiB After Width: | Height: | Size: 175 KiB |
Before Width: | Height: | Size: 299 KiB After Width: | Height: | Size: 299 KiB |
Before Width: | Height: | Size: 59 KiB After Width: | Height: | Size: 59 KiB |
Before Width: | Height: | Size: 21 KiB After Width: | Height: | Size: 21 KiB |
Before Width: | Height: | Size: 213 KiB After Width: | Height: | Size: 213 KiB |
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 1.4 KiB |
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 16 KiB After Width: | Height: | Size: 16 KiB |
Before Width: | Height: | Size: 14 KiB After Width: | Height: | Size: 14 KiB |
Before Width: | Height: | Size: 14 KiB After Width: | Height: | Size: 14 KiB |
Before Width: | Height: | Size: 9.6 KiB After Width: | Height: | Size: 9.6 KiB |
Before Width: | Height: | Size: 59 KiB After Width: | Height: | Size: 59 KiB |
Before Width: | Height: | Size: 155 KiB After Width: | Height: | Size: 155 KiB |
Before Width: | Height: | Size: 22 KiB After Width: | Height: | Size: 22 KiB |
Before Width: | Height: | Size: 23 KiB After Width: | Height: | Size: 23 KiB |
Before Width: | Height: | Size: 34 KiB After Width: | Height: | Size: 34 KiB |
Before Width: | Height: | Size: 99 KiB After Width: | Height: | Size: 99 KiB |
Before Width: | Height: | Size: 24 KiB After Width: | Height: | Size: 24 KiB |
Before Width: | Height: | Size: 26 KiB After Width: | Height: | Size: 26 KiB |
Before Width: | Height: | Size: 848 KiB After Width: | Height: | Size: 848 KiB |
Before Width: | Height: | Size: 194 KiB After Width: | Height: | Size: 194 KiB |
Before Width: | Height: | Size: 18 KiB After Width: | Height: | Size: 18 KiB |
Before Width: | Height: | Size: 5.8 KiB After Width: | Height: | Size: 5.8 KiB |
Before Width: | Height: | Size: 11 KiB After Width: | Height: | Size: 11 KiB |
Before Width: | Height: | Size: 56 KiB After Width: | Height: | Size: 56 KiB |
Before Width: | Height: | Size: 35 KiB After Width: | Height: | Size: 35 KiB |
Before Width: | Height: | Size: 21 KiB After Width: | Height: | Size: 21 KiB |
Before Width: | Height: | Size: 142 KiB After Width: | Height: | Size: 142 KiB |
Before Width: | Height: | Size: 194 KiB After Width: | Height: | Size: 194 KiB |
Before Width: | Height: | Size: 130 KiB After Width: | Height: | Size: 130 KiB |
Before Width: | Height: | Size: 171 KiB After Width: | Height: | Size: 171 KiB |
Before Width: | Height: | Size: 20 KiB After Width: | Height: | Size: 20 KiB |
Before Width: | Height: | Size: 47 KiB After Width: | Height: | Size: 47 KiB |
Before Width: | Height: | Size: 20 KiB After Width: | Height: | Size: 20 KiB |
Before Width: | Height: | Size: 36 KiB After Width: | Height: | Size: 36 KiB |
Before Width: | Height: | Size: 24 KiB After Width: | Height: | Size: 24 KiB |
Before Width: | Height: | Size: 20 KiB After Width: | Height: | Size: 20 KiB |
Before Width: | Height: | Size: 31 KiB After Width: | Height: | Size: 31 KiB |
Before Width: | Height: | Size: 12 KiB After Width: | Height: | Size: 12 KiB |
Before Width: | Height: | Size: 9.7 KiB After Width: | Height: | Size: 9.7 KiB |
Before Width: | Height: | Size: 25 KiB After Width: | Height: | Size: 25 KiB |
Before Width: | Height: | Size: 18 KiB After Width: | Height: | Size: 18 KiB |
Before Width: | Height: | Size: 51 KiB After Width: | Height: | Size: 51 KiB |
Before Width: | Height: | Size: 79 KiB After Width: | Height: | Size: 79 KiB |
Before Width: | Height: | Size: 95 KiB After Width: | Height: | Size: 95 KiB |
Before Width: | Height: | Size: 29 KiB After Width: | Height: | Size: 29 KiB |
Before Width: | Height: | Size: 157 KiB After Width: | Height: | Size: 157 KiB |
Before Width: | Height: | Size: 226 KiB After Width: | Height: | Size: 226 KiB |
Before Width: | Height: | Size: 72 KiB After Width: | Height: | Size: 72 KiB |
Before Width: | Height: | Size: 153 KiB After Width: | Height: | Size: 153 KiB |
Before Width: | Height: | Size: 52 KiB After Width: | Height: | Size: 52 KiB |
Before Width: | Height: | Size: 145 KiB After Width: | Height: | Size: 145 KiB |
Before Width: | Height: | Size: 87 KiB After Width: | Height: | Size: 87 KiB |
Before Width: | Height: | Size: 74 KiB After Width: | Height: | Size: 74 KiB |
Before Width: | Height: | Size: 118 KiB After Width: | Height: | Size: 118 KiB |
Before Width: | Height: | Size: 414 KiB After Width: | Height: | Size: 414 KiB |
Before Width: | Height: | Size: 314 KiB After Width: | Height: | Size: 314 KiB |
Before Width: | Height: | Size: 59 KiB After Width: | Height: | Size: 59 KiB |
Before Width: | Height: | Size: 34 KiB After Width: | Height: | Size: 34 KiB |
Before Width: | Height: | Size: 38 KiB After Width: | Height: | Size: 38 KiB |
Before Width: | Height: | Size: 21 KiB After Width: | Height: | Size: 21 KiB |
Before Width: | Height: | Size: 174 KiB After Width: | Height: | Size: 174 KiB |
Before Width: | Height: | Size: 36 KiB After Width: | Height: | Size: 36 KiB |
Before Width: | Height: | Size: 71 KiB After Width: | Height: | Size: 71 KiB |
Before Width: | Height: | Size: 31 KiB After Width: | Height: | Size: 31 KiB |
Before Width: | Height: | Size: 17 KiB After Width: | Height: | Size: 17 KiB |
Before Width: | Height: | Size: 16 KiB After Width: | Height: | Size: 16 KiB |
Before Width: | Height: | Size: 167 KiB After Width: | Height: | Size: 167 KiB |
Before Width: | Height: | Size: 27 KiB After Width: | Height: | Size: 27 KiB |
Before Width: | Height: | Size: 150 KiB After Width: | Height: | Size: 150 KiB |
Before Width: | Height: | Size: 69 KiB After Width: | Height: | Size: 69 KiB |
Before Width: | Height: | Size: 50 KiB After Width: | Height: | Size: 50 KiB |
Before Width: | Height: | Size: 38 KiB After Width: | Height: | Size: 38 KiB |
Before Width: | Height: | Size: 32 KiB After Width: | Height: | Size: 32 KiB |
Before Width: | Height: | Size: 93 KiB After Width: | Height: | Size: 93 KiB |
Before Width: | Height: | Size: 41 KiB After Width: | Height: | Size: 41 KiB |
Before Width: | Height: | Size: 9.2 KiB After Width: | Height: | Size: 9.2 KiB |
Before Width: | Height: | Size: 30 KiB After Width: | Height: | Size: 30 KiB |
Before Width: | Height: | Size: 18 KiB After Width: | Height: | Size: 18 KiB |
Before Width: | Height: | Size: 73 KiB After Width: | Height: | Size: 73 KiB |
Before Width: | Height: | Size: 65 KiB After Width: | Height: | Size: 65 KiB |
Before Width: | Height: | Size: 47 KiB After Width: | Height: | Size: 47 KiB |
Before Width: | Height: | Size: 24 KiB After Width: | Height: | Size: 24 KiB |
Before Width: | Height: | Size: 140 KiB After Width: | Height: | Size: 140 KiB |
Before Width: | Height: | Size: 75 KiB After Width: | Height: | Size: 75 KiB |
Before Width: | Height: | Size: 123 KiB After Width: | Height: | Size: 123 KiB |
Before Width: | Height: | Size: 38 KiB After Width: | Height: | Size: 38 KiB |
Before Width: | Height: | Size: 15 KiB After Width: | Height: | Size: 15 KiB |
Before Width: | Height: | Size: 29 KiB After Width: | Height: | Size: 29 KiB |
Before Width: | Height: | Size: 190 KiB After Width: | Height: | Size: 190 KiB |
Before Width: | Height: | Size: 374 KiB After Width: | Height: | Size: 374 KiB |
Before Width: | Height: | Size: 9 KiB After Width: | Height: | Size: 9 KiB |
Before Width: | Height: | Size: 1.2 MiB After Width: | Height: | Size: 1.2 MiB |
Before Width: | Height: | Size: 99 KiB After Width: | Height: | Size: 99 KiB |
Before Width: | Height: | Size: 76 KiB After Width: | Height: | Size: 76 KiB |
Before Width: | Height: | Size: 14 KiB After Width: | Height: | Size: 14 KiB |
Before Width: | Height: | Size: 96 KiB After Width: | Height: | Size: 96 KiB |
Before Width: | Height: | Size: 11 KiB After Width: | Height: | Size: 11 KiB |
Before Width: | Height: | Size: 448 KiB After Width: | Height: | Size: 448 KiB |
Before Width: | Height: | Size: 122 KiB After Width: | Height: | Size: 122 KiB |
Before Width: | Height: | Size: 33 KiB After Width: | Height: | Size: 33 KiB |
Before Width: | Height: | Size: 668 KiB After Width: | Height: | Size: 668 KiB |
Before Width: | Height: | Size: 1.3 MiB After Width: | Height: | Size: 1.3 MiB |
Before Width: | Height: | Size: 1.9 KiB After Width: | Height: | Size: 1.9 KiB |
Before Width: | Height: | Size: 70 KiB After Width: | Height: | Size: 70 KiB |
Before Width: | Height: | Size: 45 KiB After Width: | Height: | Size: 45 KiB |
Before Width: | Height: | Size: 43 KiB After Width: | Height: | Size: 43 KiB |
Before Width: | Height: | Size: 19 KiB After Width: | Height: | Size: 19 KiB |
Before Width: | Height: | Size: 20 KiB After Width: | Height: | Size: 20 KiB |
Before Width: | Height: | Size: 20 KiB After Width: | Height: | Size: 20 KiB |
Before Width: | Height: | Size: 13 KiB After Width: | Height: | Size: 13 KiB |
Before Width: | Height: | Size: 12 KiB After Width: | Height: | Size: 12 KiB |
Before Width: | Height: | Size: 9.7 KiB After Width: | Height: | Size: 9.7 KiB |
Before Width: | Height: | Size: 11 KiB After Width: | Height: | Size: 11 KiB |
Before Width: | Height: | Size: 52 KiB After Width: | Height: | Size: 52 KiB |
Before Width: | Height: | Size: 15 KiB After Width: | Height: | Size: 15 KiB |
Before Width: | Height: | Size: 2.5 KiB After Width: | Height: | Size: 2.5 KiB |
Before Width: | Height: | Size: 8.9 KiB After Width: | Height: | Size: 8.9 KiB |
Before Width: | Height: | Size: 11 KiB After Width: | Height: | Size: 11 KiB |
Before Width: | Height: | Size: 17 KiB After Width: | Height: | Size: 17 KiB |
Before Width: | Height: | Size: 13 KiB After Width: | Height: | Size: 13 KiB |
Before Width: | Height: | Size: 2.2 KiB After Width: | Height: | Size: 2.2 KiB |
Before Width: | Height: | Size: 21 KiB After Width: | Height: | Size: 21 KiB |
Before Width: | Height: | Size: 36 KiB After Width: | Height: | Size: 36 KiB |
Before Width: | Height: | Size: 108 KiB After Width: | Height: | Size: 108 KiB |
Before Width: | Height: | Size: 41 KiB After Width: | Height: | Size: 41 KiB |
Before Width: | Height: | Size: 108 KiB After Width: | Height: | Size: 108 KiB |
Before Width: | Height: | Size: 50 KiB After Width: | Height: | Size: 50 KiB |
Before Width: | Height: | Size: 90 KiB After Width: | Height: | Size: 90 KiB |
Before Width: | Height: | Size: 144 KiB After Width: | Height: | Size: 144 KiB |
Before Width: | Height: | Size: 37 KiB After Width: | Height: | Size: 37 KiB |
Before Width: | Height: | Size: 9.9 KiB After Width: | Height: | Size: 9.9 KiB |
Before Width: | Height: | Size: 30 KiB After Width: | Height: | Size: 30 KiB |
Before Width: | Height: | Size: 30 KiB After Width: | Height: | Size: 30 KiB |
Before Width: | Height: | Size: 21 KiB After Width: | Height: | Size: 21 KiB |
Before Width: | Height: | Size: 249 KiB After Width: | Height: | Size: 249 KiB |
Before Width: | Height: | Size: 89 KiB After Width: | Height: | Size: 89 KiB |
Before Width: | Height: | Size: 3.2 KiB After Width: | Height: | Size: 3.2 KiB |
Before Width: | Height: | Size: 35 KiB After Width: | Height: | Size: 35 KiB |
Before Width: | Height: | Size: 6.5 KiB After Width: | Height: | Size: 6.5 KiB |
Before Width: | Height: | Size: 18 KiB After Width: | Height: | Size: 18 KiB |
Before Width: | Height: | Size: 10 KiB After Width: | Height: | Size: 10 KiB |
Before Width: | Height: | Size: 29 KiB After Width: | Height: | Size: 29 KiB |
Before Width: | Height: | Size: 12 KiB After Width: | Height: | Size: 12 KiB |
Before Width: | Height: | Size: 66 KiB After Width: | Height: | Size: 66 KiB |
Before Width: | Height: | Size: 16 KiB After Width: | Height: | Size: 16 KiB |
Before Width: | Height: | Size: 194 KiB After Width: | Height: | Size: 194 KiB |
Before Width: | Height: | Size: 81 KiB After Width: | Height: | Size: 81 KiB |
Before Width: | Height: | Size: 12 KiB After Width: | Height: | Size: 12 KiB |
Before Width: | Height: | Size: 21 KiB After Width: | Height: | Size: 21 KiB |
Before Width: | Height: | Size: 10 KiB After Width: | Height: | Size: 10 KiB |
Before Width: | Height: | Size: 5.8 KiB After Width: | Height: | Size: 5.8 KiB |
Before Width: | Height: | Size: 31 KiB After Width: | Height: | Size: 31 KiB |
Before Width: | Height: | Size: 22 KiB After Width: | Height: | Size: 22 KiB |
Before Width: | Height: | Size: 22 KiB After Width: | Height: | Size: 22 KiB |
Before Width: | Height: | Size: 23 KiB After Width: | Height: | Size: 23 KiB |
Before Width: | Height: | Size: 22 KiB After Width: | Height: | Size: 22 KiB |
Before Width: | Height: | Size: 20 KiB After Width: | Height: | Size: 20 KiB |
Before Width: | Height: | Size: 5 KiB After Width: | Height: | Size: 5 KiB |
Before Width: | Height: | Size: 16 KiB After Width: | Height: | Size: 16 KiB |
Before Width: | Height: | Size: 1.6 KiB After Width: | Height: | Size: 1.6 KiB |
Before Width: | Height: | Size: 1.7 KiB After Width: | Height: | Size: 1.7 KiB |
Before Width: | Height: | Size: 139 KiB After Width: | Height: | Size: 139 KiB |
Before Width: | Height: | Size: 160 KiB After Width: | Height: | Size: 160 KiB |
Before Width: | Height: | Size: 121 KiB After Width: | Height: | Size: 121 KiB |
Before Width: | Height: | Size: 20 KiB After Width: | Height: | Size: 20 KiB |
Before Width: | Height: | Size: 22 KiB After Width: | Height: | Size: 22 KiB |
Before Width: | Height: | Size: 28 KiB After Width: | Height: | Size: 28 KiB |
Before Width: | Height: | Size: 34 KiB After Width: | Height: | Size: 34 KiB |
Before Width: | Height: | Size: 28 KiB After Width: | Height: | Size: 28 KiB |
Before Width: | Height: | Size: 3.7 KiB After Width: | Height: | Size: 3.7 KiB |
Before Width: | Height: | Size: 4.2 KiB After Width: | Height: | Size: 4.2 KiB |
Before Width: | Height: | Size: 5.8 KiB After Width: | Height: | Size: 5.8 KiB |
Before Width: | Height: | Size: 118 KiB After Width: | Height: | Size: 118 KiB |
Before Width: | Height: | Size: 28 KiB After Width: | Height: | Size: 28 KiB |
Before Width: | Height: | Size: 23 KiB After Width: | Height: | Size: 23 KiB |
Before Width: | Height: | Size: 81 KiB After Width: | Height: | Size: 81 KiB |
Before Width: | Height: | Size: 30 KiB After Width: | Height: | Size: 30 KiB |
Before Width: | Height: | Size: 7.4 KiB After Width: | Height: | Size: 7.4 KiB |
Before Width: | Height: | Size: 7.3 KiB After Width: | Height: | Size: 7.3 KiB |
Before Width: | Height: | Size: 42 KiB After Width: | Height: | Size: 42 KiB |
Before Width: | Height: | Size: 58 KiB After Width: | Height: | Size: 58 KiB |
Before Width: | Height: | Size: 146 KiB After Width: | Height: | Size: 146 KiB |
Before Width: | Height: | Size: 85 KiB After Width: | Height: | Size: 85 KiB |
Before Width: | Height: | Size: 10 KiB After Width: | Height: | Size: 10 KiB |
Before Width: | Height: | Size: 30 KiB After Width: | Height: | Size: 30 KiB |
Before Width: | Height: | Size: 4.3 KiB After Width: | Height: | Size: 4.3 KiB |
Before Width: | Height: | Size: 130 KiB After Width: | Height: | Size: 130 KiB |
Before Width: | Height: | Size: 16 KiB After Width: | Height: | Size: 16 KiB |
Before Width: | Height: | Size: 31 KiB After Width: | Height: | Size: 31 KiB |
Before Width: | Height: | Size: 11 KiB After Width: | Height: | Size: 11 KiB |
Before Width: | Height: | Size: 425 KiB After Width: | Height: | Size: 425 KiB |
Before Width: | Height: | Size: 30 KiB After Width: | Height: | Size: 30 KiB |
Before Width: | Height: | Size: 63 KiB After Width: | Height: | Size: 63 KiB |
Before Width: | Height: | Size: 164 KiB After Width: | Height: | Size: 164 KiB |
Before Width: | Height: | Size: 2.7 KiB After Width: | Height: | Size: 2.7 KiB |
Before Width: | Height: | Size: 94 KiB After Width: | Height: | Size: 94 KiB |
Before Width: | Height: | Size: 20 KiB After Width: | Height: | Size: 20 KiB |
Before Width: | Height: | Size: 18 KiB After Width: | Height: | Size: 18 KiB |
|
@ -4,7 +4,7 @@ unlisted: true
|
|||
---
|
||||
|
||||
# Tags
|
||||
[algebra](./tags#algebra), [algorithms](./tags#algorithms), [analogue](./tags#analogue), [android](./tags#android), [APIs](./tags#APIs), [arch-linux](./tags#arch-linux), [arithmetic](./tags#arithmetic), [ARPA](./tags#ARPA), [ARPANET](./tags#ARPANET), [awk](./tags#awk), [AWS](./tags#AWS), [aws-lambda](./tags#aws-lambda), [binary](./tags#binary), [bulletin-boards](./tags#bulletin-boards), [bus](./tags#bus), [C](./tags#C), [computer-architecture](./tags#computer-architecture), [computer-history](./tags#computer-history), [containerization](./tags#containerization), [CPU](./tags#CPU), [cryptography](./tags#cryptography), [csv](./tags#csv), [data-structures](./tags#data-structures), [data-types](./tags#data-types), [databases](./tags#databases), [design-patterns](./tags#design-patterns), [disks](./tags#disks), [docker](./tags#docker), [dynamodb](./tags#dynamodb), [ecopolsoc](./tags#ecopolsoc), [electricity](./tags#electricity), [electromagnetism](./tags#electromagnetism), [electronics](./tags#electronics), [encryption](./tags#encryption), [exponents](./tags#exponents), [file-system](./tags#file-system), [fleeting](./tags#fleeting), [fractions](./tags#fractions), [git](./tags#git), [graphql](./tags#graphql), [hardware](./tags#hardware), [IaC](./tags#IaC), [internet](./tags#internet), [javascript](./tags#javascript), [jest](./tags#jest), [json](./tags#json), [JSON](./tags#JSON), [kernel](./tags#kernel), [Linux](./tags#Linux), [linux](./tags#linux), [literature](./tags#literature), [logic](./tags#logic), [logic-gates](./tags#logic-gates), [memory](./tags#memory), [Microsoft](./tags#Microsoft), [middleware](./tags#middleware), [modems](./tags#modems), [mongo-db](./tags#mongo-db), [mongoose](./tags#mongoose), [nand-to-tetris](./tags#nand-to-tetris), [network-protocols](./tags#network-protocols), [networks](./tags#networks), [node-js](./tags#node-js), [number-systems](./tags#number-systems), [number-theory](./tags#number-theory), [OOP](./tags#OOP), [operating-systems](./tags#operating-systems), [packet-switching](./tags#packet-switching), [physics](./tags#physics), [ports](./tags#ports), [prealgebra](./tags#prealgebra), [privacy](./tags#privacy), [procedural](./tags#procedural), [propositional-logic](./tags#propositional-logic), [proxies](./tags#proxies), [python](./tags#python), [question](./tags#question), [raspberry-pi](./tags#raspberry-pi), [react](./tags#react), [recursion](./tags#recursion), [regex](./tags#regex), [REST](./tags#REST), [S3](./tags#S3), [set-theory](./tags#set-theory), [shell](./tags#shell), [SNS](./tags#SNS), [sound](./tags#sound), [SQL](./tags#SQL), [SQLite](./tags#SQLite), [SQS](./tags#SQS), [storage](./tags#storage), [surveillance-capitalism](./tags#surveillance-capitalism), [systemd](./tags#systemd), [systems-programming](./tags#systems-programming), [testing](./tags#testing), [theorems](./tags#theorems), [theory-of-computation](./tags#theory-of-computation), [time](./tags#time), [TOR](./tags#TOR), [Turing](./tags#Turing), [typescript](./tags#typescript), [unix](./tags#unix), [world-wide-web](./tags#world-wide-web), [yaml](./tags#yaml),
|
||||
[algebra](./tags#algebra), [algorithms](./tags#algorithms), [analogue](./tags#analogue), [android](./tags#android), [APIs](./tags#APIs), [arch-linux](./tags#arch-linux), [arithmetic](./tags#arithmetic), [ARPA](./tags#ARPA), [ARPANET](./tags#ARPANET), [awk](./tags#awk), [AWS](./tags#AWS), [aws-lambda](./tags#aws-lambda), [binary](./tags#binary), [bulletin-boards](./tags#bulletin-boards), [bus](./tags#bus), [C](./tags#C), [computer-architecture](./tags#computer-architecture), [computer-history](./tags#computer-history), [containerization](./tags#containerization), [CPU](./tags#CPU), [cryptography](./tags#cryptography), [csv](./tags#csv), [data-structures](./tags#data-structures), [data-types](./tags#data-types), [databases](./tags#databases), [design-patterns](./tags#design-patterns), [disks](./tags#disks), [docker](./tags#docker), [dynamodb](./tags#dynamodb), [ecopolsoc](./tags#ecopolsoc), [electricity](./tags#electricity), [electromagnetism](./tags#electromagnetism), [electronics](./tags#electronics), [encryption](./tags#encryption), [exponents](./tags#exponents), [file-system](./tags#file-system), [fleeting](./tags#fleeting), [fractions](./tags#fractions), [git](./tags#git), [graphql](./tags#graphql), [hardware](./tags#hardware), [IaC](./tags#IaC), [internet](./tags#internet), [javascript](./tags#javascript), [jest](./tags#jest), [json](./tags#json), [JSON](./tags#JSON), [kernel](./tags#kernel), [Linux](./tags#Linux), [linux](./tags#linux), [literature](./tags#literature), [logic](./tags#logic), [logic-gates](./tags#logic-gates), [memory](./tags#memory), [Microsoft](./tags#Microsoft), [middleware](./tags#middleware), [modems](./tags#modems), [mongo-db](./tags#mongo-db), [mongoose](./tags#mongoose), [nand-to-tetris](./tags#nand-to-tetris), [network-protocols](./tags#network-protocols), [networks](./tags#networks), [node-js](./tags#node-js), [number-systems](./tags#number-systems), [number-theory](./tags#number-theory), [OOP](./tags#OOP), [operating-systems](./tags#operating-systems), [packet-switching](./tags#packet-switching), [physics](./tags#physics), [ports](./tags#ports), [prealgebra](./tags#prealgebra), [privacy](./tags#privacy), [procedural](./tags#procedural), [propositional-logic](./tags#propositional-logic), [proxies](./tags#proxies), [python](./tags#python), [question](./tags#question), [raspberry-pi](./tags#raspberry-pi), [react](./tags#react), [recursion](./tags#recursion), [regex](./tags#regex), [REST](./tags#REST), [S3](./tags#S3), [server-management](./tags#server-management), [set-theory](./tags#set-theory), [shell](./tags#shell), [SNS](./tags#SNS), [sound](./tags#sound), [SQL](./tags#SQL), [SQLite](./tags#SQLite), [SQS](./tags#SQS), [storage](./tags#storage), [surveillance-capitalism](./tags#surveillance-capitalism), [systemd](./tags#systemd), [systems-programming](./tags#systems-programming), [testing](./tags#testing), [theorems](./tags#theorems), [theory-of-computation](./tags#theory-of-computation), [time](./tags#time), [TOR](./tags#TOR), [Turing](./tags#Turing), [typescript](./tags#typescript), [unix](./tags#unix), [world-wide-web](./tags#world-wide-web), [yaml](./tags#yaml),
|
||||
|
||||
### algebra
|
||||
|
||||
|
@ -668,10 +668,12 @@ unlisted: true
|
|||
- [[Application_Layer_of_Internet_Protocol]]
|
||||
- [[Bluetooth]]
|
||||
- [[c8173d17_TIMPs]]
|
||||
- [[Certificate_authorities]]
|
||||
- [[e383b8b3_nginx_vs_traefik]]
|
||||
- [[e470bf3d_IMPs_in_the_ARPANET]]
|
||||
- [[Example_scenario_internet_data_transfer]]
|
||||
- [[f0f70a3c_ARPANET_motivations]]
|
||||
- [[Firewalls]]
|
||||
- [[Headless_Raspi_network_setup]]
|
||||
- [[ICMP_Protocol]]
|
||||
- [[Internet_fundamentals]]
|
||||
|
@ -1003,6 +1005,11 @@ unlisted: true
|
|||
### S3
|
||||
|
||||
- [[Bash_store_status_of_command_execution]]
|
||||
### server-management
|
||||
|
||||
- [[Certificate_authorities]]
|
||||
- [[Firewalls]]
|
||||
- [[HTTPS]]
|
||||
### set-theory
|
||||
|
||||
- [[Axioms_of_set_theory]]
|
65
zk/Certificate_authorities.md
Normal file
|
@ -0,0 +1,65 @@
|
|||
---
|
||||
tags: [networks, server-management]
|
||||
created: Sunday, February 09, 2025
|
||||
---
|
||||
|
||||
# Certificates and certificate authorities
|
||||
|
||||
> HTTPS is a secure tunnel for data transmission, but the certificate is what
|
||||
> establishes trust and enables the secure tunnel in the first place.
|
||||
|
||||
Before secure communication over HTTPS can commence between a client and a
|
||||
server, the client must confirm that the server is who it says it is. This is in
|
||||
order to prevent man-in-the-middle attacks where malicious actors attempt to
|
||||
impersonate legitimate websites.
|
||||
|
||||
Certificates exist to authenticate domains, prior to the exchange of encrypted
|
||||
data. To do this, a server generates a certificate with a reputable Certificate
|
||||
Authority, thereby verifying its identity with the CA. It sends this certificate
|
||||
(which includes its [public key](./bbdcb54f_public_key_cryptography.md)) when
|
||||
initiating a connection with a client.
|
||||
|
||||
In addition to the public key, the certificate provides:
|
||||
|
||||
- the domain name
|
||||
- the CA that certified the domain
|
||||
- the period of validity
|
||||
- a digital signature from the CA
|
||||
|
||||
The client uses this data to validate the identity of the server it has sent a
|
||||
request to. Browsers come pre-installed with a list of trusted CAs.
|
||||
|
||||
Certificates are called TLS/SSL certificates but the main protocol is TLS rather
|
||||
than SSL.
|
||||
|
||||
Indications that a server is not to be trusted include:
|
||||
|
||||
- expired certificates
|
||||
- certificates issued for the wrong domain
|
||||
- self-signed certificates not issued by a trusted CA
|
||||
|
||||
## Certification process
|
||||
|
||||
Standard domain-validated authentication proceeds as follows:
|
||||
|
||||
1. Server generates public/private key pair
|
||||
2. Server creates a certificate signing request containing its public key and
|
||||
domain name
|
||||
3. CA validates the domain and signs the certificate with its private key
|
||||
4. Server discloses its public key and CA signature
|
||||
5. Client knows CAs public key and uses this to verify the signature
|
||||
6. Server's public key is then trusted
|
||||
|
||||
### How validation executes between CA and server
|
||||
|
||||
To validate the domain (step 3 above), the CA gives the server a "challenge" to
|
||||
prove they control the domain. This can include:
|
||||
|
||||
- Putting a specific token as a DNS TXT record (DNS validation)
|
||||
- Putting a file at a certain URL (HTTP validation)
|
||||
- Email validation: sending an email to standard admin address for the server.
|
||||
Server owner clicks the link.
|
||||
|
||||
### Related
|
||||
|
||||
See [Let's Encrypt](./Let's_Encrypt.md)
|
44
zk/Firewalls.md
Normal file
|
@ -0,0 +1,44 @@
|
|||
---
|
||||
tags: [networks, server-management]
|
||||
created: Sunday, February 09, 2025
|
||||
---
|
||||
|
||||
# Firewalls
|
||||
|
||||
A firewall is a server mechanism that filters incoming requests for resources
|
||||
and services that it hosts.
|
||||
|
||||
Based on data about the requester, derived from the
|
||||
[TLS](/zk/Transport_Layer_of_Internet_Protocol.md) packet headers, the firewall
|
||||
decides whether or not to grant access to the requested resource.
|
||||
|
||||
It will typically comprise three actions:
|
||||
|
||||
- accept
|
||||
- drop
|
||||
- reject
|
||||
|
||||
Accept is obvious. To "drop" means to block the traffic without sending a reply.
|
||||
To "reject" is to block the traffic but reply with an "unreachable" error.
|
||||
|
||||
An example of a firewall rule would be to drop incoming traffic from IP
|
||||
addresses of non-technical employees to the SSH port (22) but allow technical
|
||||
staff to access it.
|
||||
|
||||
Network traffic is matched agains a list of firewall rules in a sequence from
|
||||
first to last. As you cannot cover all cases, you must specify a default action
|
||||
when a rule is not matched.
|
||||
|
||||
Whilst firewalls are focused on incoming traffic, you can also apply rules to
|
||||
outgoing traffic. A server will permit most outgoing traffic since, after all,
|
||||
it can trust itself however you may want to stop the server connecting to known
|
||||
malicious actors.
|
||||
|
||||
## Related software
|
||||
|
||||
IPTables is the standard Linux software for managing firewalls. There is also
|
||||
Uncomplicated Firewall (UWF) which attaches to IPTables and simplifies the
|
||||
process.
|
||||
|
||||
Another usefule software is Fail2ban which can automatically configure your
|
||||
firewall to block brute force login attempts and DDOS attacks.
|
21
zk/HTTPS.md
|
@ -1,5 +1,5 @@
|
|||
---
|
||||
tags: [world-wide-web, internet, encryption]
|
||||
tags: [world-wide-web, internet, encryption, server-management]
|
||||
created: Friday, December 14, 2024
|
||||
---
|
||||
|
||||
|
@ -17,9 +17,10 @@ It utilises two types of encryption to send messages securely:
|
|||
- a single shared key between client and server to encrypt the messages sent
|
||||
between them
|
||||
- asymmetric encryption
|
||||
- two keys are used: a public key to encrypt the data and a private key to
|
||||
decrypt it. The public key can be shared freely so anyone can encrypt and
|
||||
send data to a peer but only the peer can receive and decrypt it
|
||||
- two keys are used: a [public key](./bbdcb54f_public_key_cryptography.md) to
|
||||
encrypt the data and a private key to decrypt it. The public key can be
|
||||
shared freely so anyone can encrypt and send data to a peer but only the
|
||||
peer can receive and decrypt it
|
||||
|
||||
The encryption protocol used is TLS - the **Transport Layer Security Protocol**.
|
||||
Previously SSL (Secure Sockets Layer) was used but has been deprecated over
|
||||
|
@ -29,12 +30,12 @@ security concerns.
|
|||
|
||||
- An initial handshake is shared between client and server, agreeing that
|
||||
communication will be encrypted. This is public. "Client hello" and "Server
|
||||
hello". Some random numbers are exchanged at this point.
|
||||
- The server sends a digital certificate to the client along with its public
|
||||
key. The client checks that the certificate is valid.
|
||||
hello". Some random numbers are exchanged at this point
|
||||
- The server sends a digital [certificate](./Certificate_authorities.md') key
|
||||
The client checks that the certificate is valid
|
||||
- If valid, the client encrypts a string of bytes using the public key and sends
|
||||
it to the server. This is called the "premaster secret".
|
||||
- This is decrypted by the server.
|
||||
it to the server. This is called the "premaster secret"
|
||||
- This is decrypted by the server
|
||||
- The premaster secret, along with the random bytes from the handshake is then
|
||||
used to compute a shared secret key (symmetric) which is used to encrypt all
|
||||
subsequent messages for the duration of the session.
|
||||
subsequent messages for the duration of the session
|
||||
|
|
6
zk/Let's_Encrypt.md
Normal file
|
@ -0,0 +1,6 @@
|
|||
---
|
||||
tags: []
|
||||
created: Sunday, February 09, 2025
|
||||
---
|
||||
|
||||
# Let's_Encrypt
|