TLS 1.2集成IIS 7 [英] TLS 1.2 integration IIS 7

查看:74
本文介绍了TLS 1.2集成IIS 7的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Windows 2012 R2服务器上配置TLS 1.2

在global.asax文件中使用此方法仍无法正常工作。由于我的项目是MVC 4.5.1,而在服务器端没有安装SHA证书。证书是否可以免费使用Windows 2012 R2服务器,或者我是否必须购买证书?证书如何与TLS 1.2一起使用,或者它们是否独立于集成。 因为我想在网站上集成TLS 1.2用于支付集成目的,因为他们说支付网关需要在服务器端TLS 1.2 。我不想对TLS 1.2服务器端的regedit进行更改。项目中的任何方法都会受到赞赏。



什么我试过了:



Configuring TLS 1.2 on windows 2012 R2 server
used this method below in global.asax file still not working. As my project is MVC 4.5.1 and on the server side no SHA certificate is installed. Does the certificate comes free with windows 2012 R2 server or do i have to buy it and how can the certificate be used with TLS 1.2 or are they independent for integration. As i want to integrate TLS 1.2 for payment integration purposes on the website as they said the payment gateway requires on server side TLS 1.2. I don't want to make changes on the regedit on the server side for TLS 1.2 any method within project would be appreciated.

What I have tried:

ServicePointManager.SecurityProtocol = System.Net.SecurityProtocolType.Ssl3
                                        | System.Net.SecurityProtocolType.Tls
                                        | System.Net.SecurityProtocolType.Tls11
                                        | System.Net.SecurityProtocolType.Tls12;

推荐答案

您需要为您的服务器安装URL证书并将其绑定到应用程序在IIS中。您可以购买一个或尝试免费获得让我们加密 - 免费SSL / TLS证书 [ ^ ]。



您可以在服务器上生成自签名证书,但是这会向用户显示无效的证书,因此测试之外没有任何意义。



在你拥有之前,你将无法提供SSL / TLS这样做了。



这也不是代码问题,这是一个可操作的问题。对代码的更改对您没有帮助。
You need to install a certificate for your URL to the server and bind it to the application in IIS. You can purchase one or try to get one free from Let's Encrypt - Free SSL/TLS Certificates[^].

You can generate a self-signed certificate on the server, but that will show to users as an invalid certificate, so there's no point to that outside of testing.

You will not be able to provide SSL/TLS until you have done this.

This also is not a code issue, this is an operational one. Changes to code will not help you here.


这篇关于TLS 1.2集成IIS 7的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆