

API Reference — CAStore v1.0.4

 try {

 var settings = JSON.parse(localStorage.getItem('ex\_doc:settings') || '{}');

 if (settings.theme === 'dark' ||

 ((settings.theme === 'system' || settings.theme == null) &&

 window.matchMedia('(prefers-color-scheme: dark)').matches)

 ) {

 document.body.classList.add('dark')

 }

 } catch (error) { }

 

Settings

API Reference CAStore v1.0.4

=========================================

[modules](#modules)

 Modules

-----------------------------

[CAStore](CAStore.html)

Functionality to retrieve the up-to-date CA certificate store.

[mix-tasks](#mix-tasks)

 Mix Tasks

-----------------------------------

[mix certdata](Mix.Tasks.Certdata.html)

Fetches an up-to-date version of the CA certificate store.





CAStore — CAStore v1.0.4

 try {

 var settings = JSON.parse(localStorage.getItem('ex\_doc:settings') || '{}');

 if (settings.theme === 'dark' ||

 ((settings.theme === 'system' || settings.theme == null) &&

 window.matchMedia('(prefers-color-scheme: dark)').matches)

 ) {

 document.body.classList.add('dark')

 }

 } catch (error) { }

 

Settings

[View Source](https://github.com/elixir-mint/castore/blob/v1.0.4/lib/castore.ex#L1 "View Source")

CAStore

(CAStore v1.0.4)

=======================================================================================================================================

Functionality to retrieve the up-to-date CA certificate store.

The only purpose of this library is to keep an up-to-date CA certificate store file.

This is why this module only provides one function, [`file_path/0`](#file_path/0), to access the path of

the CA certificate store file. You can then read this file and use its contents for your

own purposes.

[Link to this section](#summary)

 Summary

==========================================

[Functions](#functions)

------------------------

[file\_path()](#file_path/0)

Returns the path to the CA certificate store PEM file.

[Link to this section](#functions)

Functions

=============================================

[Link to this function](#file_path/0 "Link to this function")

file\_path()

============

[View Source](https://github.com/elixir-mint/castore/blob/v1.0.4/lib/castore.ex#L21 "View Source")

```

@spec file_path() :: [Path.t](https://hexdocs.pm/elixir/Path.html#t:t/0)()

```

Returns the path to the CA certificate store PEM file.

[examples](#file_path/0-examples)

 Examples

--------------------------------------------

```

CAStore.file\_path()

#=> /Users/me/castore/\_build/dev/lib/castore/priv/cacerts.pem"

```





mix certdata — CAStore v1.0.4

 try {

 var settings = JSON.parse(localStorage.getItem('ex\_doc:settings') || '{}');

 if (settings.theme === 'dark' ||

 ((settings.theme === 'system' || settings.theme == null) &&

 window.matchMedia('(prefers-color-scheme: dark)').matches)

 ) {

 document.body.classList.add('dark')

 }

 } catch (error) { }

 

Settings

[View Source](https://github.com/elixir-mint/castore/blob/v1.0.4/lib/mix/tasks/certdata.ex#L1 "View Source")

mix certdata

(CAStore v1.0.4)

=======================================================================================================================================================

Fetches an up-to-date version of the CA certificate store.

The certificate store is then stored in the private storage of this library. The path

to the CA certificate store can be retrieved through [`CAStore.file_path/0`](CAStore.html#file_path/0).

[usage](#module-usage)

 Usage

------------------------------

You can use this task to fetch an up-to-date version of the CA certificate store.

```

mix certdata

```

You can also use this task to verify if the currently stored certificate store is

up to date. To do that, use the `--check-outdated` option.

```

mix certdata --check-outdated

```

