Skip to content

Commit

Permalink
Merge branch 'master' of github.com:synrc/ca
Browse files Browse the repository at this point in the history
  • Loading branch information
5HT committed Jul 27, 2023
2 parents 731b4f0 + e9ae4d6 commit 85b195e
Show file tree
Hide file tree
Showing 5 changed files with 31 additions and 97 deletions.
18 changes: 18 additions & 0 deletions KEP.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Кваліфікований Електронний Підпис

## X.509 decode SignData

```Elixir
> {:ok,bin} = :file.read_file("priv/5HT.p7s")
> KEP.parseSignData bin
{
{ :certAttrs, "1786046", "СОХАЦЬКИЙ МАКСИМ ЕРОТЕЙОВИЧ", "МАКСИМ ЕРОТЕЙОВИЧ", "СОХАЦЬКИЙ",
"СОХАЦЬКИЙ МАКСИМ ЕРОТЕЙОВИЧ", "Електронна печатка", "", 'UA', "КИЇВ" },
{ :certAttrs, "UA-14360570-2018", "АЦСК АТ КБ «ПРИВАТБАНК»", "", "",
"АКЦІОНЕРНЕ ТОВАРИСТВО КОМЕРЦІЙНИЙ БАНК «ПРИВАТБАНК»", "", "АЦСК", 'UA', "Київ" }
}
```

## Credits

Максим Сохацький
83 changes: 11 additions & 72 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,80 +5,19 @@

![ca-shaders](https://github.com/synrc/ca/assets/144776/f8f9c280-9442-443e-a2be-7d610a1a7815)

## X.509 decode SignData

```elixir
> {:ok,bin} = :file.read_file("priv/5HT.p7s")
> KEP.parseSignData bin
{{:certAttrs, "1786046", "СОХАЦЬКИЙ МАКСИМ ЕРОТЕЙОВИЧ",
"МАКСИМ ЕРОТЕЙОВИЧ", "СОХАЦЬКИЙ",
"СОХАЦЬКИЙ МАКСИМ ЕРОТЕЙОВИЧ",
"Електронна печатка", "", 'UA', "КИЇВ"},
{:certAttrs, "UA-14360570-2018", "АЦСК АТ КБ «ПРИВАТБАНК»",
"", "",
"АКЦІОНЕРНЕ ТОВАРИСТВО КОМЕРЦІЙНИЙ БАНК «ПРИВАТБАНК»",
"", "АЦСК", 'UA', "Київ"}}
```

## X.509 decode Cert

```elixir
{{:certAttrs, "8", "А0 Адміністратор Тестовий",
"Адміністратор Тестовий", "А0",
"ДП \"Інфотех\"34_ТЕСТ", "Адміністратор",
"Відділ розробки інформаційних систем", 'UA',
"Київ"},
{:certAttrs, "UA-00015622-2012", "АЦСК МВС України (ТЕСТ)",
"", "",
"Міністерство внутрішніх справ України", "",
"Департамент інформаційних технологій",
'UA', "Київ"},
[
subjectKeyIdentifier: [
<<33, 173, 19, 32, 70, 1, 81, 17, 70, 101, 22, 104, 149, 193, 81, 68, 44,
51, 97, 255, 25, 32, 89, 34, 21, 29, 64, 166, 8, 148, 81, 30>>
],
authorityKeyIdentifier: [
<<199, 135, 206, 81, 158, 165, 41, 3, 146, 14, 164, 157, 92, 172, 74, 104,
243, 247, 233, 222, 181, 197, 233, 92, 122, 205, 167, 37, 144, 171, 44,
161>>
],
privateKeyUsagePeriod: ["20200803210000Z", "20210803210000Z"],
keyUsage: [<<6, 192>>],
certificatePolicies: {1, 2, 804, 2, 1, 1, 1, 2, 2},
basicConstraints: [],
qcStatements: {1, 2, 804, 2, 1, 1, 1, 2, 1},
subjectAltName: [
"[email protected]",
{{1, 3, 6, 1, 4, 1, 19398, 1, 1, 4, 1}, "+38 (0 67) 663-18-70"},
{{1, 3, 6, 1, 4, 1, 19398, 1, 1, 4, 2},
"04050, м. Київ, вул. Дегтярівська, 15Б"}
],
cRLDistributionPoints: ["http://cat.mvs.gov.ua/download/crls/CA-C787CE51-Full.crl"],
freshestCRL: ["http://cat.mvs.gov.ua/download/crls/CA-C787CE51-Delta.crl"],
authorityInfoAccess: [
{{1, 3, 6, 1, 5, 5, 7, 48, 2},
"http://cat.mvs.gov.ua/download/certificates/cat.p7b"},
{{1, 3, 6, 1, 5, 5, 7, 48, 1}, "http://cat.mvs.gov.ua/services/ocsp/"}
],
subjectInfoAccess: [
{{1, 3, 6, 1, 5, 5, 7, 48, 3}, "http://cat.mvs.gov.ua/services/tsp/"}
],
subjectDirectoryAttributes: [
{{1, 2, 804, 2, 1, 1, 1, 11, 1, 4, 11, 1}, "19950415-00026"},
{{1, 2, 804, 2, 1, 1, 1, 11, 1, 4, 1, 1}, "1234006530"},
{{1, 2, 804, 2, 1, 1, 1, 11, 1, 4, 2, 1}, "31239034"}
]
]}
```

## Mentions

* <a href="https://tonpa.guru/stream/2020/2020-02-03%20%D0%9A%D0%B2%D0%B0%D0%BB%D1%96%D1%84%D1%96%D0%BA%D0%BE%D0%B2%D0%B0%D0%BD%D0%B8%D0%B9%20%D0%95%D0%BB%D0%B5%D0%BA%D1%82%D1%80%D0%BE%D0%BD%D0%BD%D0%B8%D0%B9%20%D0%9F%D1%96%D0%B4%D0%BF%D0%B8%D1%81.htm">2020-02-03 Кваліфікований Електронний Підпис</a><br>
* <a href="https://tonpa.guru/stream/2023/2023-06-22%20Месенжер.htm">2023-06-22 CMS Месенжер (Пітч)</a><br>
* <a href="https://chat.erp.uno">2023-06-30 CMS ЧАТ X.509 (Домашня сторінка)</a><br>
* <a href="https://tonpa.guru/stream/2023/2023-07-05%20CMS%20SMIME.htm">2023-07-05 CMS S/MIME</a><br>
* <a href="https://tonpa.guru/stream/2023/2023-07-16%20CMS%20Compliance.htm">2023-07-16 CMS Compliance</a>
* <a href="https://tonpa.guru/stream/2010/2010-10-18 LDAP.htm">2010-10-18 LDAP</a><br>
* <a href="https://tonpa.guru/stream/2020/2020-02-03 Кваліфікований Електронний Підпис.htm">2020-02-03 Кваліфікований Електронний Підпис</a><br>
* <a href="https://tonpa.guru/stream/2023/2023-06-22 Месенжер.htm">2023-06-22 CMS Месенжер (Пітч)</a><br>
* <a href="https://chat.erp.uno">2023-06-30 ЧАТ X.509 (Домашня сторінка)</a><br>
* <a href="https://tonpa.guru/stream/2023/2023-07-05 CMS SMIME.htm">2023-07-05 CMS S/MIME</a><br>
* <a href="https://tonpa.guru/stream/2023/2023-07-16 CMS Compliance.htm">2023-07-16 CMS Compliance</a>
* <a href="https://tonpa.guru/stream/2023/2023-07-20 LDAP Compliance.htm">2023-07-20 LDAP Compliance</a><br>
* <a href="https://ldap.erp.uno">2023-07-25 LDAP 13.7.24 (Домашня сторінка)</a><br>
* <a href="https://ca.erp.uno">2023-07-30 CA X.509 (Домашня сторінка)</a><br>
* <a href="https://tonpa.guru/stream/2023/2023-07-21 CMP CMC EST.htm">2023-07-21 CMP/CMC/EST</a><br>
* <a href="https://tonpa.guru/stream/2023/2023-07-27 MLS.htm">2023-07-21 MLS ROOM CHAT</a><br>

## Credits

Expand Down
23 changes: 0 additions & 23 deletions lib/ldap.ex

This file was deleted.

2 changes: 1 addition & 1 deletion mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ defmodule CA.Mixfile do
def project() do
[
app: :ca,
version: "4.7.14",
version: "4.7.26",
elixir: "~> 1.7",
description: "CA CXC 138 21 Certificate Authority",
package: package(),
Expand Down
2 changes: 1 addition & 1 deletion src/ca.app.src
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{application, ca,
[
{description, "CA CXC 138 21 Certificate Authority"},
{vsn, "4.7.1"},
{vsn, "4.7.26"},
{registered, []},
{applications, [kernel,stdlib,ranch,cowboy]},
{mod, { 'Elixir.CA', []}},
Expand Down

0 comments on commit 85b195e

Please sign in to comment.