SSL证书暴露源站ip的解决方法
2021-10-23其它教程刊然948°c
A+ A-网站开启了ssl,导致套了cdn暴露出源站ip的解决方法
教程开始,本篇教程以宝塔面板做示范
首先先新建一个站点,域名绑定随便瞎输入一个,如图:
然后到站点设置里面找到ssl
证书输入一个假的就行了,打开强制ssl
填写我这个证书也可以,如下
密钥key:
-----BEGIN RSA PRIVATE KEY-----MIIEowIBAAKCAQEAqw6LKza1Qq6OxbMj2jkmzcKAlgz7kLDKHSmBfxgoj+qCDuO7LJdBDj7O27ZPElj/Kjc+nG8vOfRtoFe+mA1l3MwhibDJidZ4BKdfN5oReB/yq/TiST143KXDPJyj4W9C3a6WTJIlJxpGJQs6zyjv4KgNrnVWczq3OZ3oQVva7XILRythp5rI2jiG6atcgJ54iMaLarPPh6mnuaBJvdpOdew8f+RxynyBviJuep5leQ8gIMnedEJQ/VR4fQ+fcKmfqnVfO0SsTIuPqIOqN0SWWr7TlxuAuEsNiDFcPzG20QwDSUZuZmSrq7x55RF3tBxXGF8r/UycaqD7MN6/xL/AhwIDAQABAoIBAB9JJS4NrwBXsdg56ARJMK4wdVk8XaR8mTLVPRCUSBLuZsQ3ZawFrAnhde8cfIDUEzNS8FonQcF9UbGiasMfrDJCiZ3H3kyeE8xyGkmunaRVX4qQ2vRfUGQ20ysaUSTxtw6ZmHa/whjRRuQOlj5+c8Uop3vxjRK9OfbJSUnu9W85ACiRW0ZBMgAxt8biSsN7lLauqafeeHGOdxFGcp/1mOIZa16lb5bzIynswZfSaG6946yYkzFAnewv1MiHmefnYqJbAC0NUswnIA8dxCEVYjZaXdLYrYGeRcX+bBEMcafEd92HTsrfmezTUthS/unWKoNskX+ktWY14zTmCMjfm4ECgYEA5vAW6W1fq+Br31wrNpZwxbB4mRV5cJqOG+B7BLg8TGqJbcamPyc1WMYooDpzpKlQ6mVeaKVguxsY7uCSYP0azTum4HOsI1E1MjuaeaRAwvYqyNLp3zCbowIfBylC3ND/cahALMgM7FADCEVmnbsAav62LinxXPMqmu9k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MBExYVFgxDDAKBgNVBAsMA0xYVDEYMBYGA1UEAwwPZGVmYXVsdC5kZWZhbHV0MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEArNNdCOFAe7b8iUxZ1FKr8p3qeWjn8uzbP6NkvBGU3dtlacVz3ivW0lf8bFDhBPlxUEsrxge2QAruz83ABdaZNxiDHKA5IRLiYJo2gzlFQ/sDJ967ScipxFrZ0fza6tWX/TOVNU7VacOy1Fc4ZwDW9yZFpXiFWInbLF7ZNLj986Gc/EsjmsQM5M5nKhtQNu0g2iYzz0d+hB0saMyFh5wfXH4i/gmKtpa4IbV6YqGMHpvjroItMcNqHPMyWoDwBa3e8CW5hop8sb2b9FOwEJMRLSijTi5l/K+3oQDjNJbCWfjUG8ygjYUiJ4ae1Zl+5rcYkvsg26+B0PTax8zX+L834QIDAQABMA0GCSqGSIb3DQEBCwUAA4IBAQCG5lroJwys+NNrBAh99TuCNPphZmV+QDyJh9XOTI49GPzZvuarETeN8gwKFCvAqIfrL3rSYo+IrFBdKZkE79MRlZxNTNy8rfOVdp20sALKTXtGEPLzyyRNwaON/sp4HOpu43DL4mPd5esS0vhKpdsMBoStIlPE6Lvzne3Bl1YgaRj4k4jlwBWkkUMmVpYozUCRTKlFiayUw8l/2In5+ShydqSsJhP2FUmrzQLjNtdHkof6t2W1RWD5YeTcAmzcSS8sBW5/DaHFD1htwS97Sfe1zuzEtbegkJqrGCBj312PV3InMR0B82uKlvn3nMNGZ0Yci35twCR0It8DOz6TGSOq-----END CERTIFICATE-----
设置完成以后,回到站点页面设置默认站点为这个站即可
教程结束,大功告成
未定义标签