TAILIEUCHUNG - ASP.NET 4 Unleased - p 160

Cấu hình ứng dụng Thực hiện lệnh này sửa đổi các ACL cho các container trọng SharedKeys để các tài khoản ASPNET đã truy cập vào các khóa mã hóa. Sau khi bạn hoàn tất bước cuối cùng, bạn có thể chuyển các ứng dụng với các file cấu hình mã hóa qua lại giữa hai máy chủ. Một ứng dụng trên một máy chủ có thể đọc các file cấu hình đã được mã hóa trên máy chủ khác. | 1564 CHAPTER 34 Configuring Applications Executing this command modifies the ACLs for the SharedKeys key container so that the ASPNET account has access to the encryption keys. After you complete this final step you can transfer applications with encrypted configuration files back and forth between the two servers. An application on one server can read configuration files that were encrypted on the other server. NOTE As an alternative to using the aspnet_regiis tool you can transfer encryption keys with the help of the RsaProtectedConfigurationProvider class. The RsaProtectedConfigurationProvider class contains methods for exporting and importing keys to and from XML files programmatically. Summary This chapter was devoted to the topic of configuration. In the first section you were provided with an overview of the configuration sections used by Framework. You learned how to lock configuration sections to prevent sections from being modified. You also learned how to place configuration sections in external files. Next we tackled the topic of the Configuration API. You learned how to read and modify configuration files programmatically. You also learned how to provision new applications by creating new virtual directories and configuration files. You learned how to create custom configuration sections and how to create both simple custom configuration sections and custom configuration sections that contain custom collections of configuration elements. Finally we discussed the topic of encryption. You learned how to encrypt a configuration section by using the aspnet_regiis command-line tool. You also learned how to encrypt configuration sections programmatically. In the final section you also learned how to deploy encrypted configuration files from a development server to a production server. From the Library of Wow eBook CHAPTER 35 Deploying Web Applications Many developers have been in the situation in which they have spent a .

TAILIEUCHUNG - Chia sẻ tài liệu không giới hạn
Địa chỉ : 444 Hoang Hoa Tham, Hanoi, Viet Nam
Website : tailieuchung.com
Email : tailieuchung20@gmail.com
Tailieuchung.com là thư viện tài liệu trực tuyến, nơi chia sẽ trao đổi hàng triệu tài liệu như luận văn đồ án, sách, giáo trình, đề thi.
Chúng tôi không chịu trách nhiệm liên quan đến các vấn đề bản quyền nội dung tài liệu được thành viên tự nguyện đăng tải lên, nếu phát hiện thấy tài liệu xấu hoặc tài liệu có bản quyền xin hãy email cho chúng tôi.
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.