The Web Flashcards

1
Q

Provide a brief description of SSL.

A

SSL (Secured Socket Layer) is a protocol that creates an encryption layer between a web browser and the web server for the website/services it is accessing.

Today SSL is replaced by TLS (Transport Layer Security), which is basically just the new version of the protocal.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Provide a brief description of an SSL Certificate for a website and why its necessary.

A

An SSL Certificate is a certificate that authenticates a website’s identity. A TLS certificate is issued by a certificate authority to the person or business that owns a domain.

The certificate contains important information about who owns the domain, along with the server’s public key, both of which are important for validating the server’s identity.

Websites need SSL certificates to
1) Keep user data secure,
2) Verify ownership of the website,
3) Prevent attackers from creating a fake version of the site, and convey trust to users.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is different between SSL and TLS?

A

SSL is the deprecated version of TLS. The name change mostly signified the change in ownership from Netscape to Internet Engineering Task Force (IETF),

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Provide as much detail as possible about the SSL/TLS interaction in a web request.

Briefly what happens?

Whem does it occur?

What are the steps in detail?

A

https://www.cloudflare.com/en-gb/learning/ssl/what-happens-in-a-tls-handshake/

https://www.ssl.com/article/ssl-tls-handshake-overview/

During a TLS handshake, the two communicating sides exchange messages to acknowledge each other, verify each other, establish the cryptographic algorithms they will use, and agree on session keys.

When does a TLS handshake occur?
A TLS handshake takes place whenever a user navigates to a website over HTTPS and the browser first begins to query the website’s origin server. A TLS handshake also happens whenever any other communications use HTTPS, including API calls and DNS over HTTPS queries.

TLS handshakes occur after a TCP connection has been opened via a TCP handshake

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What are the steps to obtain and install an SSL Certificate for a Windows hosted website?

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Why does APIs need SSL certificates?

A

In short, to avoid criminals from intercepting traffic. If your API server has a certificate installed it means that the communication between the server and the client is secured. A “handshake” occurs and the API server knows that the traffic can be trusted and will not be inspected or injected by a malicious party.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

When you have an API server or website with multiple endpoints running, or multiple urls, how do you install a certificate?

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What is an SSL Authority

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What details are typically included in an SSL sertificate?

A
  • The domain name that the certificate was issued for
  • Which person, organization, or device it was issued to
  • Which Certificate Authority issued it
  • The Certificate Authority’s digital signature
  • Associated subdomains
  • Issue date of the certificate
  • The expiry date of the certificate
  • The public key (the private key is not revealed)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What are the different types and validation levels of SSL sertificates?

A

There are several different types of SSL certificates. One certificate can apply to a single website or several websites, depending on the type:

Single-domain: A single-domain SSL certificate applies to only one domain (a “domain” is the name of a website, like www.cloudflare.com).

Wildcard: Like a single-domain certificate, a wildcard SSL certificate applies to only one domain. However, it also includes that domain’s subdomains. For example, a wildcard certificate could cover www.cloudflare.com, blog.cloudflare.com, and developers.cloudflare.com, while a single-domain certificate could only cover the first.

Multi-domain: As the name indicates, multi-domain SSL certificates can apply to multiple unrelated domains.

SSL certificates also come with different validation levels. A validation level is like a background check, and the level changes depending on the thoroughness of the check.

**Domain Validation: **This is the least-stringent level of validation, and the cheapest. All a business has to do is prove they control the domain.

**Organization Validation: **This is a more hands-on process: The CA directly contacts the person or business requesting the certificate. These certificates are more trustworthy for users.

**Extended Validation: **This requires a full background check of an organization before the SSL certificate can be issued.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What is meant by a protocal in computing?

A

Protocol, in computer science, a set of rules or procedures for transmitting data between electronic devices, such as computers.

In order for computers to exchange information, there must be a preexisting agreement as to how the information will be structured and how each side will send and receive it.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What is the difference between TLS and HTTPS?

A

HTTPS is an implementation of TLS encryption on top of the HTTP protocol, which is used by all websites as well as some other web services. Any website that uses HTTPS is therefore employing TLS encryption.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

How do you obtain an SSL Certificate?

A

obtained directly from a Certificate Authority (CA)

  • Prepare by getting your server set up and ensuring your WHOIS record is updated and matches what you are submitting to the Certificate Authority (it needs to show the correct company name and address, etc.).
  • Generating a Certificate Signing Request (CSR) on your server. This is an action your hosting company can assist with.
  • Submitting this to the Certificate Authority to validate your domain and company details.
  • Installing the certificate they provide once the process is complete.

Once obtained, you need to configure the certificate on your web host or on your own servers if you host the website yourself.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Can an SSL certificate be used on multiple servers?

A

It is possible to use one SSL certificate for multiple domains on the same server. Depending on the vendor, you can also use one SSL certificate on multiple servers. This is because of Multi-Domain SSL certificates, which we discussed above.\

As the name implies, Multi-Domain SSL Certificates work with multiple domains. The number is left up to the specific issuing Certificate Authority. A Multi-Domain SSL Certificate is different from a Single Domain SSL Certificate, which – again, as the name implies – is designed to secure a single domain

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What is a TPC Handshake?

A

TCP (Transmission Control Protocol) uses a three-way handshake (aka TCP-handshake, three message handshake, and/or SYN-SYN-ACK) to set up a TCP/IP connection over an IP based network.

The three messages transmitted by TCP to negotiate and start a TCP session are nicknamed SYN, SYN-ACK, and ACK for SYNchronize, SYNchronize-ACKnowledgement, and ACKnowledge respectively. The three message mechanism is designed so that two computers that want to pass information back and forth to each other can negotiate the parameters of the connection before transmitting data such as HTTP browser requests.

The host, generally the browser, sends a TCP SYNchronize packet to the server. The server receives the SYN and sends back a SYNchronize-ACKnowledgement. The host receives the server’s SYN-ACK and sends an ACKnowledge. The server receives ACK and the TCP socket connection is established.

This handshake step happens after a DNS lookup and before the TLS handshake, when creating a secure connection. The connection can be terminated independently by each side of the connection via a four-way handshake.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

What is TCP? (Short Definition)

A

The Transmission Control Protocol (TCP) is a transport protocol that is used on top of IP to ensure reliable transmission of packets.

TCP includes mechanisms to solve many of the problems that arise from packet-based messaging, such as lost packets, out of order packets, duplicate packets, and corrupted packets.

Since TCP is the protocol used most commonly on top of IP, the Internet protocol stack is sometimes referred to as TCP/IP.

17
Q

What is TCP in Detail?

A

https://www.khanacademy.org/computing/computers-and-internet/xcae6f4a7ff015e7d:the-internet/xcae6f4a7ff015e7d:transporting-packets/a/transmission-control-protocol–tcp

18
Q

What happens when you enter an address in your browser? (Verry high level)

A
  1. Your browser (client) goes to your ISP.
  2. The ISP relays to DNS server (Domain Name System)
  3. DNS does a lookup for the IP Address. Every computer on the internet has an IP Address.
  4. The DNS sends back IP Address through ISP.
  5. Your browser now makes a direct request to the server. (e.g. the google server)
19
Q

What happens when you type an address into browser (detail)

A
20
Q

Why does the first lookup to a DNS go through an ISP?

A