Skip to content

Commit

Permalink
IR CR GENM
Browse files Browse the repository at this point in the history
  • Loading branch information
5HT committed Jul 25, 2023
1 parent 9fa47ad commit 9e18d37
Show file tree
Hide file tree
Showing 5 changed files with 3,203 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/cmp.ex
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ defmodule CA.CMP do
# openssl cmp -cmd genm -server 127.0.0.1:829 \
# -recipient "/CN=CMPserver" -ref 1234 -secret pass:0000

# openssl cmp -cmd ir -server 127.0.0.1:829 \
# -path priv/certs -srvcert caroot.pem -ref NewUser \
# -secret pass:0000 -certout x.pem -newkey maxim.key.enc -subject "/CN=maxim/O=SYNRC/ST=Kyiv/C=UA"

def start(), do: :erlang.spawn(fn -> listen(829) end)
def listen(port) do
{:ok, socket} = :gen_tcp.listen(port,
Expand Down
Loading

0 comments on commit 9e18d37

Please sign in to comment.