(SSL: error:0906D06C:PEM routines:PEM_read_bio:no start line:Expecting: TRUSTED CERTIFICATE
时间: 2023-12-20 15:07:30 浏览: 258
根据引用内容可以看出,报错信息指出SSL加载证书时出现了问题,具体是PEM routines:PEM_read_bio:no start line:Expecting: TRUSTED CERTIFICATE。这个错误通常是由于私钥文件的格式问题引起的。在引用中提到,正确的写法是在字符串变量中加上前缀和后缀。所以,解决这个问题的方法是确保私钥文件的格式正确,包括在开头加上-----BEGIN RSA PRIVATE KEY-----以及在结尾加上-----END RSA PRIVATE KEY-----。这样做应该可以解决报错的问题。<em>1</em><em>2</em><em>3</em>
#### 引用[.reference_title]
- *1* [PEM_read_bio_X509_AUX() failed (SSL: error:0906D06C:PEM routines:PEM_read_bio](https://blog.csdn.net/poem_2010/article/details/122692587)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT3_1"}} ] [.reference_item]
- *2* *3* [支付宝 PEM routines:PEM_read_bio:no start line](https://blog.csdn.net/solocao/article/details/82466286)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT3_1"}} ] [.reference_item]
[ .reference_list ]
阅读全文