# \[Solved\] Error reading ca cert file

**URL:** <https://forum.openwrt.org/t/solved-error-reading-ca-cert-file/17847>\
**Category:** Installing and Using OpenWrt\
**Created:** [July 30, 2018, 8:51pm UTC](https://forum.openwrt.org/t/solved-error-reading-ca-cert-file/17847 "2018-07-30T20:51:58Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![balanga](https://forum.openwrt.org/letter_avatar/balanga/32/5_5575768a8748004e209b776fc1b2916d.png) [@balanga](https://forum.openwrt.org/u/balanga)\
**Post date:** [July 30, 2018, 8:51pm UTC](https://forum.openwrt.org/t/solved-error-reading-ca-cert-file/17847/1 "2018-07-30T20:51:58Z")

</div>

How do I get ssl certificates?

---

<div class="post-metadata">

**Author:** ![jeff](https://forum.openwrt.org/letter_avatar/jeff/32/5_5575768a8748004e209b776fc1b2916d.png) [@jeff](https://forum.openwrt.org/u/jeff)\
**Post date:** [July 30, 2018, 8:58pm UTC](https://forum.openwrt.org/t/solved-error-reading-ca-cert-file/17847/2 "2018-07-30T20:58:00Z")

</div>

OpenWRT packages can be searched from [https://openwrt.org/packages/table/start](https://openwrt.org/packages/table/start)

revealing [https://openwrt.org/packages/pkgdata/ca-certificates](https://openwrt.org/packages/pkgdata/ca-certificates)

You may need to symlink you CA directory and/or bundle if the consumer is expecting them to be in a different place than typically installed.

---

<div class="post-metadata">

**Author:** ![balanga](https://forum.openwrt.org/letter_avatar/balanga/32/5_5575768a8748004e209b776fc1b2916d.png) [@balanga](https://forum.openwrt.org/u/balanga)\
**Post date:** [August 1, 2018, 9:55am UTC](https://forum.openwrt.org/t/solved-error-reading-ca-cert-file/17847/3 "2018-08-01T09:55:14Z")

</div>

Thanks for the reply, but I don't undertstand what you mean.

I have installed ca-certicates. What do I need to do next?

---

<div class="post-metadata">

**Author:** ![mbo2o](https://forum.openwrt.org/user_avatar/forum.openwrt.org/mbo2o/32/5465_2.png) [@mbo2o](https://forum.openwrt.org/u/mbo2o)\
**Post date:** [August 1, 2018, 10:28am UTC](https://forum.openwrt.org/t/solved-error-reading-ca-cert-file/17847/4 "2018-08-01T10:28:07Z")

</div>

> [@jeff](#):
>
> You may need to symlink

> **[SymLink - HowTo: Create a Symbolic Link - Linux - ShellHacks](https://www.shellhacks.com/symlink-create-symbolic-link-linux/)**
>
> SymLink files and folders. How to create a symbolic link, also known as a soft link, from the Linux command line using 'ln' commad.

---

<div class="post-metadata">

**Author:** ![balanga](https://forum.openwrt.org/letter_avatar/balanga/32/5_5575768a8748004e209b776fc1b2916d.png) [@balanga](https://forum.openwrt.org/u/balanga)\
**Post date:** [August 1, 2018, 10:51am UTC](https://forum.openwrt.org/t/solved-error-reading-ca-cert-file/17847/5 "2018-08-01T10:51:37Z")

</div>

Thanks for the clarification, but I don't know what to link to where?

I have this error:-

```
fatal: unable to access 'https://git.openwrt.org/feed/packages.git/': 
Error reading ca cert file /etc/ssl/certs/ca-certificates.crt - mbedTLS: (-0x3E00) PK - Read/write of file failed

```

Which file is it trying to read?

---

<div class="post-metadata">

**Author:** ![mbo2o](https://forum.openwrt.org/user_avatar/forum.openwrt.org/mbo2o/32/5465_2.png) [@mbo2o](https://forum.openwrt.org/u/mbo2o)\
**Post date:** [August 1, 2018, 11:10am UTC](https://forum.openwrt.org/t/solved-error-reading-ca-cert-file/17847/6 "2018-08-01T11:10:25Z")

</div>

> [@balanga](#):
>
> /etc/ssl/certs/ca-certificates.crt

This is the file it can't read

> [@balanga](#):
>
> fatal: unable to access '[https://git.openwrt.org/feed/packages.git/](https://git.openwrt.org/feed/packages.git/)':

but your problem is the line:

You haven't explained how you got this error, what hardware , what command, what are you trying to do. You are very vague

In any case if you cut and paste the errors into google search you will get many hits

---

<div class="post-metadata">

**Author:** ![balanga](https://forum.openwrt.org/letter_avatar/balanga/32/5_5575768a8748004e209b776fc1b2916d.png) [@balanga](https://forum.openwrt.org/u/balanga)\
**Post date:** [August 1, 2018, 11:40am UTC](https://forum.openwrt.org/t/solved-error-reading-ca-cert-file/17847/7 "2018-08-01T11:40:33Z")

</div>

Thanks for the pointer.

It seems I needed to install ca-bundle.

---

<div class="post-metadata">

**Author:** ![system](https://forum.openwrt.org/uploads/default/original/3X/7/4/740520c71f00039bbf001045c682f0ecb25e905a.png) [@system](https://forum.openwrt.org/u/system)\
**Post date:** [August 8, 2018, 11:40am UTC](https://forum.openwrt.org/t/solved-error-reading-ca-cert-file/17847/8 "2018-08-08T11:40:36Z")

</div>

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.
