crystalstudio 大佬有话说 :
【小白教程】如何正确在宝塔输入SSL证书?
本帖最后由 crystalstudio 于 2021-4-30 21:15 编辑
首先这是你的密钥:
—–BEGIN PKCS7—–
MIIE1wYJKoZIhvcNAQcCoIIEyDCCBMQCAQExADALBgkqhkiG9w0BBwGgggSsMIIE
qDCCA5CgAwIBAgIUIxpECniV0zDOixmE9NBuRnxesDIwDQYJKoZIhvcNAQELBQAw
gYsxCzAJBgNVBAYTAlVTMRkwFwYDVQQKExBDbG91ZEZsYXJlLCBJbmMuMTQwMgYD
VQQLEytDbG91ZEZsYXJlIE9yaWdpbiBTU0wgQ2VydGlmaWNhdGUgQXV0aG9yaXR5
MRYwFAYDVQQHEw1TYW4gRnJhbmNpc2NvMRMwEQYDVQQIEwpDYWxpZm9ybmlhMB4X
DTIxMDIyNjA4NDMwMFoXDTM2MDIyMzA4NDMwMFowYjEZMBcGA1UEChMQQ2xvdWRG
bGFyZSwgSW5jLjEdMBsGA1UECxMUQ2xvdWRGbGFyZSBPcmlnaW4gQ0ExJjAkBgNV
BAMTHUNsb3VkRmxhcmUgT3JpZ2luIENlcnRpZmljYXRlMIIBIjANBgkqhkiG9w0B
AQEFAAOCAQ8AMIIBCgKCAQEAqw32JP8olTq1NYshVXc+zYR34f/YO2PV9JpleB9o
T8hUE1ETNzGPyfbi/4E2XBLTTxwX2z86ytZXv5tK014/0Auu2FGuSjfn/hZ1BjoM
kT/hCzeSBYwemZkx6h+FbP12CeLUH8FTBIgE6fzf7VMI+ztE14i0HTxJ6YvhcsNx
JJHIwuOohQ5hABF12oo3TBxZYwLfFa1mENle/hCBM4GF+QS9hiwDd1gXivl1BTpx
oSJUrHTm1VTPtYlMWIuF2nxUMYx+tBjPbbzFCT4CD4AjWL7zjr5LnfCPWxuIFoDi
/BS9rzt3sgmdasD0tJoXCdbrkltG+/CZcesYAZO5Dum6cQIDAQABo4IBKjCCASYw
DgYDVR0PAQH/BAQDAgWgMB0GA1UdJQQWMBQGCCsGAQUFBwMCB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
yev1x2eykYwZo/AKUdyQBM8BhyY7BOIOyoVuvAyNe9l4R1Ja6irS/+ZlibKkssxO
PXmmIoABvuJJaP9fBOVmSQ1JoAU+7rBjdJeAMZ32LGaywJBOZhfV6HHfVnRzcIKE
J8K6HbuwPXoiQv9q3kU+XLdqbgX6zOCajvA+2DT5Nqdb4owiCJGlLBbB9NXFqrcw
UyYHbqcueOoB9Wxz+8WFht2VhjBqvaEft9wdL+Ld3moNZ3rA4MNGyr3P8nE=
—–END CERTIFICATE—–
输入成功之后就是这样子的
http://crystalimg.cswebhosting.ml//i/2021/04/30/ywucxf.jpg
不要以为这是报错,实际上已经成功了,这是宝塔的BUG
如果教程有错,本人不接受反驳
http://crystalimg.cswebhosting.ml//i/2021/04/30/yxi98x.png
(此帖为反讽贴,请勿当真)
http://crystalimg.cswebhosting.ml//i/2021/04/30/ywucxf.jpg
http://crystalimg.cswebhosting.ml//i/2021/04/30/yxi98x.png
湖人总冠军 大佬有话说 :
顶一个:victory:https://cdn.jsdelivr.net/gh/hishis/forum-master/public/images/patch.gif