HTTPS.md
 1  **HTTPS (Hypertext Transfer Protocol Secure)** is an extension of HTTP that adds a layer of security on the data in transit. It uses the [[SSL]]/[[TLS]] protocols to encrypt the communication between a user's web browser and a web server, ensuring that sensitive information such as login credentials, credit card details, and personal data is transmitted securely over the internet.
 2  
 3  ## Key Features
 4  
 5  - **Encryption**: HTTPS encrypts the data exchanged between the client and server, making it difficult for eavesdroppers to intercept and read the information. This protects against various attacks, including man-in-the-middle attacks.
 6  - **Authentication**: HTTPS uses digital certificates issued by trusted Certificate Authorities (CAs) to verify the identity of websites. This ensures that users are connecting to legitimate sites and not impostors.
 7  - **Data Integrity**: HTTPS helps ensure that data sent and received has not been altered or tampered with during transmission. This adds an additional layer of security over standard HTTP.
 8  
 9  ## How HTTPS Works
10  
11  1. **Connection Initiation**: When a user attempts to connect to a website using HTTPS, their browser sends a request to the server.
12  2. **SSL/TLS Certificate Exchange**: The server responds by sending its SSL/TLS certificate, which includes its public key. The browser verifies this certificate against trusted CAs to ensure its validity.
13  3. **Key Exchange**: After verification, the client and server perform a handshake to establish a secure connection. They exchange keys that will be used for encrypting the session.
14  4. **Secure Data Transmission**: Once the secure connection is established, all data exchanged between the browser and server is encrypted, ensuring privacy and security.
15  
16  ## Differences Between HTTP and HTTPS
17  
18  | Feature        | HTTP          | HTTPS                       |
19  | -------------- | ------------- | --------------------------- |
20  | Security       | No encryption | Uses SSL/TLS for encryption |
21  | Port           | 80            | 443                         |
22  | Authentication | None          | Uses digital certificates   |
23  | Data Integrity | No guarantee  | Ensures data integrity      |
24  
25  ## Importance of HTTPS
26  
27  - **User Trust**: Websites using HTTPS are marked as secure in web browsers, often displaying a padlock icon. This builds trust with users, especially for sites handling sensitive transactions.
28  - **SEO Benefits**: Search engines like Google prioritize HTTPS websites in search rankings, making it essential for site visibility.
29  - **Compliance**: Many regulations require secure transmission of sensitive data, making HTTPS necessary for compliance with standards like GDPR and PCI-DSS.
30  
31  ## Obtaining an HTTPS Certificate
32  
33  To enable HTTPS on a website, administrators must obtain an SSL/TLS certificate from a trusted CA. The process generally involves:
34  
35  1. Generating a Certificate Signing Request (CSR).
36  2. Submitting the CSR to a CA for validation.
37  3. Installing the issued certificate on the web server.