# Nginx SSL 测试错误

**URL:** <https://www.isharkfly.com/t/nginx-ssl/13250>\
**Category:** DevOps\
**Tags:** nginx\
**Created:** [January 30, 2021, 12:43am UTC](https://www.isharkfly.com/t/nginx-ssl/13250 "2021-01-30T00:43:38Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![honeymoose](https://www.isharkfly.com/user_avatar/www.isharkfly.com/honeymoose/32/20796_2.png) [@honeymoose](https://www.isharkfly.com/u/honeymoose)\
**Post date:** [January 30, 2021, 12:43am UTC](https://www.isharkfly.com/t/nginx-ssl/13250/1 "2021-01-30T00:43:38Z")

</div>

Nginx SSL 测试错误：

```auto
PEM_read_bio_PrivateKey() failed (SSL: error:1E08010C:DECODER routines::unsupported:No supported data to decode. Input type: PEM)

```

## 原因和解决

上面错误的原因是 Key 配置不对，或者是 crt 配置不对。

我们这里的配置问题是，上面的 Key 少了一个横线。

 ![2025-04-04_08-39-09](https://cdn.isharkfly.com/com-isharkfly-www/discourse-uploads/original/3X/8/d/8d02108a064442fdee8ad860f84b56689c2b8c5d.jpeg)

把这个配置补上就行。
