- 首先先新建一个站点,域名绑定随便瞎输入一个,如图:
- 然后到站点设置里面找到ssl
- 证书输入一个假的就行了,打开强制ssl
填写我这个证书也可以,如下
密钥key:
-----BEGIN RSA PRIVATE KEY-----
MIIEowIBAAKCAQEAqw6LKza1Qq6OxbMj2jkmzcKAlgz7kLDKHSmBfxgoj+qCDuO7
LJdBDj7O27ZPElj/Kjc+nG8vOfRtoFe+mA1l3MwhibDJidZ4BKdfN5oReB/yq/Ti
ST143KXDPJyj4W9C3a6WTJIlJxpGJQs6zyjv4KgNrnVWczq3OZ3oQVva7XILRyth
p5rI2jiG6atcgJ54iMaLarPPh6mnuaBJvdpOdew8f+RxynyBviJuep5leQ8gIMne
dEJQ/VR4fQ+fcKmfqnVfO0SsTIuPqIOqN0SWWr7TlxuAuEsNiDFcPzG20QwDSUZu
ZmSrq7x55RF3tBxXGF8r/UycaqD7MN6/xL/AhwIDAQABAoIBAB9JJS4NrwBXsdg5
6ARJMK4wdVk8XaR8mTLVPRCUSBLuZsQ3ZawFrAnhde8cfIDUEzNS8FonQcF9UbGi
asMfrDJCiZ3H3kyeE8xyGkmunaRVX4qQ2vRfUGQ20ysaUSTxtw6ZmHa/whjRRuQO
lj5+c8Uop3vxjRK9OfbJSUnu9W85ACiRW0ZBMgAxt8biSsN7lLauqafeeHGOdxFG
cp/1mOIZa16lb5bzIynswZfSaG6946yYkzFAnewv1MiHmefnYqJbAC0NUswnIA8d
xCEVYjZaXdLYrYGeRcX+bBEMcafEd92HTsrfmezTUthS/unWKoNskX+ktWY14zTm
CMjfm4ECgYEA5vAW6W1fq+Br31wrNpZwxbB4mRV5cJqOG+B7BLg8TGqJbcamPyc1
WMYooDpzpKlQ6mVeaKVguxsY7uCSYP0azTum4HOsI1E1MjuaeaRAwvYqyNLp3zCb
owIfBylC3ND/cahALMgM7FADCEVmnbsAav62LinxXPMqmu9kek+juQcCgYEAvZ7X
InmscMjPyLJ6uF3zDA9H7WNU9DwkeJQpNlHDG+znDY45A3uyq6nn2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YXVsdC5kZWZhbHV0
MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEArNNdCOFAe7b8iUxZ1FKr
8p3qeWjn8uzbP6NkvBGU3dtlacVz3ivW0lf8bFDhBPlxUEsrxge2QAruz83ABdaZ
NxiDHKA5IRLiYJo2gzlFQ/sDJ967ScipxFrZ0fza6tWX/TOVNU7VacOy1Fc4ZwDW
9yZFpXiFWInbLF7ZNLj986Gc/EsjmsQM5M5nKhtQNu0g2iYzz0d+hB0saMyFh5wf
XH4i/gmKtpa4IbV6YqGMHpvjroItMcNqHPMyWoDwBa3e8CW5hop8sb2b9FOwEJMR
LSijTi5l/K+3oQDjNJbCWfjUG8ygjYUiJ4ae1Zl+5rcYkvsg26+B0PTax8zX+L83
4QIDAQABMA0GCSqGSIb3DQEBCwUAA4IBAQCG5lroJwys+NNrBAh99TuCNPphZmV+
QDyJh9XOTI49GPzZvuarETeN8gwKFCvAqIfrL3rSYo+IrFBdKZkE79MRlZxNTNy8
rfOVdp20sALKTXtGEPLzyyRNwaON/sp4HOpu43DL4mPd5esS0vhKpdsMBoStIlPE
6Lvzne3Bl1YgaRj4k4jlwBWkkUMmVpYozUCRTKlFiayUw8l/2In5+ShydqSsJhP2
FUmrzQLjNtdHkof6t2W1RWD5YeTcAmzcSS8sBW5/DaHFD1htwS97Sfe1zuzEtbeg
kJqrGCBj312PV3InMR0B82uKlvn3nMNGZ0Yci35twCR0It8DOz6TGSOq
-----END CERTIFICATE-----
设置完成以后,回到站点页面设置默认站点为这个站即可
教程结束,大功告成
没有回复内容