0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

HTTPSの概要と仕組み

Last updated at Posted at 2025-01-17

1. HTTPSとは

HTTPSとは、HTTPにTLS(Transport Layer Security)による暗号化を追加したプロトコルである。Webブラウザとサーバー間の通信を安全に保護する仕組み。1 2

2. 主な特徴と利点

  • データの機密性、完全性、認証の確保
  • 通信の暗号化によるデータ保護1 2
  • サーバーの身元確認(SSL/TLS証明書による認証)12
  • データの改ざん防止1
  • コンテンツ注入の防止2

3. SSL/TLS暗号化の仕組み

HTTPSはSSL/TLSを使用して通信を暗号化する。暗号化された通信内容は、第三者が傍受しても解読不能な形式となる。2

4. 通信の流れ(TLSハンドシェイク)

  1. クライアントが対応可能な暗号化方式をサーバーに送信
  2. サーバーが使用する暗号化方式を選択して返信
  3. サーバーが証明書を送信
  4. クライアントが証明書を検証
  5. クライアントが鍵交換情報を送信
  6. サーバーが完了通知を送信
  7. 暗号化通信の開始3

5. 具体的な通信ステップ

  1. クライアントからサーバーへのリクエスト送信
  2. サーバーからのサーバー証明書と公開鍵送信
  3. クライアントによるサーバー証明書確認、公開鍵での共通鍵暗号化
  4. 暗号化された共通鍵のサーバーへの送信
  5. サーバーによる秘密鍵での共通鍵復号
  6. 共通鍵による暗号化通信開始3

6. セキュリティ機能

  • データの暗号化: 通信内容の盗聴防止12
  • 改ざん防止: メッセージ認証コード(MAC)によるデータの完全性保証1
  • サーバー認証: SSL/TLS証明書による正規サーバーの確認12

HTTPSは特に、ログイン情報や個人情報、支払い情報などの機密データを扱う場面で重要な役割を果たす。現代のWebブラウザはHTTPSを重視しており、HTTPSを使用していないサイトは「安全でない」との表示がされることがある2


参照
1 3 2 4 5

  1. https://qiita.com/nucomiya/items/f4251cfd3e2ff8fd2612 2 3 4 5 6 7 8

  2. https://www.cloudflare.com/ja-jp/learning/ssl/what-is-https/ 2 3 4 5 6 7 8 9

  3. https://www.gmo.jp/security/ciphersecurity/http-https/blog/https-protocol/ 2 3

  4. https://www.gmo.jp/security/ciphersecurity/http-https/blog/what-is-https/

  5. https://qiita.com/Threen/items/f799303a76b505f357e2

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?