当前位置:网站首页>腾讯云免费SSL证书扩展文件含义
腾讯云免费SSL证书扩展文件含义
2022-07-02 23:34:00 【研究僧】
背景
最近有网友反馈腾讯云 API Explorer工具,通过API上传证书(https://console.cloud.tencent.com/api/explorer?Product=ssl&Version=2019-12-05&Action=UploadCertificate&SignVersion=) 报错。 腾讯云SSL证书产品,可以管理自己的SSL证书也可以托管其他厂商发的SSL证书文件,如果托管的SSL证书文件比较多时是可以通过API来上传的,同时也可以通过控制台(https://console.cloud.tencent.com/ssl)的上传SSL证书来最终托管证书文件。以下为用户反馈的内容,通过API Explorer上传报异常错误。
这里经过排查最终的原因是,在API Explorer工具是单行输入证书体验,而实际的SSL证书文件内容是多行且有换行,换行在urlencode时会转义,最终影响接口不识别导致报错,这里优化的方案一方面是纠正转义问题,再就是把单行改为多行输入文本,方便肉眼可以看到,增强这里的用户体验。
问题
笔者在复现用户的问题时也发现了这里新的体验问题,如果你申请过腾讯云的免费SSL证书的话(https://console.cloud.tencent.com/ssl) ,申请通过后下载SSL证书的效果如下。
以下载Nginx为例,最终下载后的证书文件,截图如下。
我们可以看到这里Nginx免费证书下载后(图4) 和API Explorer工具上传证书描述不一致(图2) ,其中API Explorer工具是让输入公钥(CertificatePublicKey)和私钥(CertificatePrivateKey)与扩展名对应不上,当然如果是一个老手这里肯定不会难住,如果是一个新手就会出现问题,不知道如何填写。其实腾讯云的免费证书是通过TrustAsia等CA机构颁发的TLS/SSL证书,共分为四个文件pem/crt/key/csr,以下是不同文件的含义和对应API Explorer的内容。
证书扩展名 | 含义 | 在API Explorer上传时对应的文件名 |
|---|---|---|
crt | 申请者使用自己的身份与公钥生成CSR文件(certificate signing request),请求CA给自己颁发用CA私钥签名过的证书 | |
pem | pem只是一种编码方式,内容与csr文件内容一致(公钥) | |
csr | csr包含ssl证书拥有者身份与公钥等信息 | 公钥(CertificatePublicKey) |
key | 私钥 | 私钥(CertificatePrivateKey) |
解决方案
API Explorer工具不同秘钥对应的文件扩展名。关于这里的体验我们也在持续优化中,如果您有关于腾讯云体验问题也可以给我留言。
边栏推荐
- Bigder: how to deal with the bugs found in the 32/100 test if they are not bugs
- 【单片机项目实训】八路抢答器
- NC50528 滑动窗口
- Kubernetes simple introduction to writing YML
- 请问大家在什么网站上能查到英文文献?
- UART、RS232、RS485、I2C和SPI的介绍
- What website can you find English literature on?
- 关于Unity屏幕相关Screen的练习题目,Unity内部环绕某点做运动
- 程序分析与优化 - 9 附录 XLA的缓冲区指派
- Sysdig analysis container system call
猜你喜欢

TypeError: Cannot read properties of undefined (reading ***)

One of the reasons why setinterval timer does not take effect in ie: the callback is the arrow function

Bigder: how to deal with the bugs found in the 32/100 test if they are not bugs

Shell脚本基本使用

Explain in detail the significance of the contour topology matrix obtained by using the contour detection function findcontours() of OpenCV, and how to draw the contour topology map with the contour t

redis21道经典面试题,极限拉扯面试官

Rust所有权(非常重要)
![[shutter] Introduction to the official example of shutter Gallery (learning example | email application | retail application | wealth management application | travel application | news application | a](/img/f2/f3b8899aa774dd32006c5928d370f1.gif)
[shutter] Introduction to the official example of shutter Gallery (learning example | email application | retail application | wealth management application | travel application | news application | a

Feature Engineering: summary of common feature transformation methods

logback配置文件
随机推荐
Bloom filter
奥斯陆大学:Li Meng | 基于Swin-Transformer的深度强化学习
Luogu_ P2010 [noip2016 popularization group] reply date_ Half enumeration
【单片机项目实训】八路抢答器
简单聊聊运维监控的其他用途
TypeError: Cannot read properties of undefined (reading ***)
多进程编程(一):基本概念
How to specify const array in the global scope of rust- How to specify const array in global scope in Rust?
[target detection] r-cnn, fast r-cnn, fast r-cnn learning
Why is the website slow to open?
Basic 10 of C language: array and pointer
[IELTS reading] Wang Xiwei reading P1 (reading judgment question)
Introduction and use of ftrace tool
Multi process programming (III): message queue
JSON conversion tool class
setInterval定时器在ie不生效原因之一:回调的是箭头函数
Rust字符串切片、结构体和枚举类
Multiprocess programming (4): shared memory
Which software can translate an English paper in its entirety?
[golang syntax] map common errors golang panic: assignment to entry in nil map