Commit 4740b6c8 authored by TonyFord's avatar TonyFord
Browse files

add cert

parent eb99d43f
......@@ -34,6 +34,8 @@ start-electrumfair:
- export RUNNER_UID=`id -u`
- export RUNNER_GID=`id -g`
- cat ${FAIRCHAINS_CONF} > fairchains.conf
- cat ${ELECTRUMX_CSR} > electrumx.csr
- cat ${ELECTRUMX_CRT} > electrumx.crt
- docker-compose stop
- docker-compose down
......@@ -58,10 +58,9 @@ WORKDIR /home/faircoin/.fairchains
RUN git clone
RUN cp ./fairchains-collection/FairCoin/FairCoinChain.electrumx.json ./
RUN cp ./fairchains-collection/FairCoin/FairCoinChain.json ./
RUN openssl genrsa -out electrumx.key 2048
RUN openssl req -new -key electrumx.key -out electrumx.csr
RUN openssl x509 -req -days 1825 -in electrumx.csr -signkey electrumx.key -out electrumx.crt
COPY ./fairchains.conf ./fairchains.conf
COPY ./electrumx.csr ./electrumx.csr
COPY ./electrumx.crt ./electrumx.crt
WORKDIR /home/faircoin/electrumfairchainsx
ENTRYPOINT ["python3 efcx_server"]
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment