File: core.py

package info (click to toggle)
python-certifi 2026.1.4%2Bds-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 168 kB
  • sloc: python: 69; makefile: 4
file content (17 lines) | stat: -rw-r--r-- 353 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
"""
certifi.py
~~~~~~~~~~

This module returns the installation location of
/etc/ssl/certs/ca-certificates.crt or its contents.
"""

DEBIAN_CA_CERTS_PATH = '/etc/ssl/certs/ca-certificates.crt'


def where() -> str:
    return DEBIAN_CA_CERTS_PATH

def contents() -> str:
    with open(where(), "r", encoding="ascii") as data:
        return data.read()