Thứ Hai, 24 tháng 8, 2020

How to Disable Invalid SSL in Firefox

 Secure Socket Layer, or SSL, protects private data by encrypting it during transmission. To enable SSL encryption, websites use an SSL certificate issued by a certificate authority. When you enter an "https://" address to browse a site, Firefox checks the SSL certificate data to determine whether it is valid. When Firefox encounters an expired or invalid SSL certificate, it blocks the page or displays a warning. However, you might want to disable the warnings or blocking of unencrypted sites for site testing or other reasons. A change to advanced Firefox preferences allows you to prevent the warnings

Step 1

Launch Firefox.

Step 2

Type "about:config" in the address bar and press the "Enter" key. When prompted with the "This might void your warranty!" warning message about changing advanced settings, click the "I'll be careful, I promise!" button.

Step 3

Type "browser.ssl_override_behavior" in the "Filter" box. Double-click the "browser.ssl_override_behavior" value in the "Preference Name" list.

Step 4

Change the value in the "Enter integer value" dialog box from "2" to "1" and click the "OK" button.

Step 5

Close the browser and restart it. Firefox no longer blocks access to sites or displays warnings because of invalid SSL certificates.

Read More

Thứ Tư, 5 tháng 8, 2020

Hướng dẫn cấu hình chuyển hướng từ http sang https trên IIS

Sau khi cài đặt một chứng chỉ SSL hoàn tất lên Hosting hoặc web server, bạn chỉ có thể truy cập vào website với giao thức bảo mật https thông qua đường dẫn dạng: https://domain.tld.

Một website được kích hoạt chứng chỉ SSL trên IIS server trong môi trường Windows Server cũng không ngoại lệ. Trong nội dung bài viết này, tôi sẽ hướng dẫn bạn cấu hình tự động chuyển hướng từ giao thức http sang https trên IIS server.

Chuẩn bị

  • Cloud Server dùng Windows Server 2012 hoặc 2016 đã cài đặt sẵn IIS webserver.
  • Chứng chỉ SSL đã được kích hoạt thành công trên một website.

Cài đặt “URL rewrite” module

Bạn có thể tải về tập tin cài đặt “URL rewrite” module tại trang chủ: https://www.iis.net/downloads/microsoft/url-rewrite

Sau khi tải về, bạn thực hiện một số bước đơn giản để cài đặt “URL rewrite” module từ tập tin urlrewrite2.exe

Cấu hình

Đầu tiên, bạn mở “IIS manager” console, chọn tên miền website cần cấu hình chuyển hướng và nháy đúp vào biểu tượng “URL Rewrite

Tiếp theo, bạn nhấp chọn vào “Add Rule(s)” tại trình đơn Actions bên phải

Chọn “Blank Rule” trong mục “Inbound rules”, và nhấn “OK”

Tại giao diện “Edit Inbound Rules“, bạn nhập vào những trường thông tin sau:

  • Name: Tên của Inbound Rule (có thể đặt tùy ý, đảm bảo ngắn gọn, dễ nhớ)
  • Requested URL: chọn “Matches the Pattern”
  • Using: chọn “Regular Expressions”
  • Pattern: nhập vào giá trị “(.*)

Tiếp theo, trong mục “Conditions“, chọn “Mathch All” bên dưới trình đơn “Logical Grouping” và nhấp chọn “Add“.

Trong cửa sổ “Edit Conditions“, bạn thực hiện nhập và chọn những nội dung sau:

  • Condition input: nhập vào “{HTTPS}
  • Check if input string: chọn “Matches the Pattern
  • Pattern: nhập vào “^OFF$

Bước kế tiếp, trong mục “Action“, bạn nhập và chọn những nội dung sau:

  • Action types: chọn “Redirect
  • Redirect URL: “https://{HTTP_HOST}/{R:1}
  • Tích vào tùy chọn “Append query string”.
  • Redirect type: bạn có thể tùy chọn một trong các kiểu chuyển hướng được cung cấp sẵn, ví dụ: Permanent (301).

Cuối cùng, bạn nhấp chọn “Apply” từ trình đơn “Actions” bên phải màn hình để lưu lại các thiết lập và mở trình duyệt truy cập vào website bằng đường dẫn với giao thức http thông thường để kiểm tra kết quả chuyển hướng.

Chúc bạn thực hiện thành công!

Read More