Skip to content

Provide script to issue certificates using Docker container#2

Open
reinkrul wants to merge 2 commits intomasterfrom
docker-run
Open

Provide script to issue certificates using Docker container#2
reinkrul wants to merge 2 commits intomasterfrom
docker-run

Conversation

@reinkrul
Copy link
Member

No description provided.

@reinkrul
Copy link
Member Author

Can't get this to work on windows, not using GitBash (mingw) or by invoking the Docker command directly. I end up getting the following error:

': No such file or directory

It looks like it occurs in the alpine/openssl container itself. Since Docker for Windows (especially with the mingw layer on top) feels very flaky, I will (soon) invest in a custom container will maybe some Go code to issue the certificate. Someone comes in and fixes it in the meantime.

@thijsvanlienen
Copy link

@reinkrul , getting the same error. Tried cmd, powershell and wsl ubuntu. Could also be an option to point out to use wsl2 on windows and then use below script.

bash create-certs.sh [network] [host]

Where create-certs.sh has following content.
git clone https://github.com/nuts-foundation/nuts-development-network-ca.git
cd nuts-development-network-ca
./issue-cert.sh $1 $2
mkdir ../certificate-output
cat $2.key $2.pem > ../certificate-output/certificate-and-key.pem
cp ./$1/ca.pem ../certificate-output/truststore.pem

@thijsvanlienen
Copy link

Had to do with CRLF to LF and than this works in powershell
docker run --rm -v ${PWD}\issued-certificates:/work -v ${PWD}:/scripts/:rw -w /work --entrypoint=/bin/sh alpine/openssl -c "/scripts/issue-cert.sh stable tiske.com"

@woutslakhorst
Copy link
Member

@reinkrul what about the comments on \ and powershell? See comment from thijs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

Comments