issuing_certificates - Trainees-travelling-Open-Source-Sea/cert-issuer GitHub Wiki
docker run -it bc/cert-issuer:1.0 bash
๋ช
๋ น์ด๋ฅผ ์ํํ์ฌ docker๋ฅผ ์คํํ ๋ชจ์ต์ด๋ค.
issuer=`bitcoin-cli getnewaddress`
sed -i.bak "s/<issuing-address>/$issuer/g" /etc/cert-issuer/conf.ini
bitcoin-cli dumpprivkey $issuer > /etc/cert-issuer/pk_issuer.txt
cp /cert-issuer/examples/data-testnet/unsigned_certificates/3bc1a96a-3501-46ed-8f75-49612bbac257.json /etc/cert-issuer/data/unsigned_certificates/
cp <cert-issuer-home>/data/unsigned_certificates/<your-cert-guid>.json /etc/cert-issuer/data/unsigned_certificates/
# ์์ ๋ช
๋ น์ด๋ unsigned certificate๋ฅผ ์ด์ฉํ์ฌ ๋นํธ์ฝ์ธ์ ์์ฑํ ์ ์๊ฒ ํด์ค๋ค.
bitcoin-cli generate 101
bitcoin-cli sendtoaddress $issuer 5
cert-issuer -c /etc/cert-issuer/conf.ini
7. /etc/cert-issuer/data/blockchain_certificates ์ ์์นํ๋ ๋ธ๋ก ์ฒด์ธ ์ธ์ฆ์๋ฅผ cert_viewer ์์ ์๋ cert_data ํด๋๋ก ์ฎ๊ธด๋ค์ ์๋์ ๋ช ๋ น์ด๋ฅผ ์ํํ๋ฉด docker containerId๋ฅผ ์ ์ ์๋ค.
docker ps // shows the docker containderId
docker cp <containerId>:/etc/cert-issuer/data/blockchain_certificates <localPath>/cert-viewer/cert_data