-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
create test to ensure interoperability with openssl tooling
- Loading branch information
Showing
3 changed files
with
10 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,6 +14,7 @@ RUN apk add --update --no-cache \ | |
less \ | ||
make \ | ||
openssl \ | ||
openssh-keygen \ | ||
shellcheck \ | ||
util-linux | ||
|
||
|
@@ -86,7 +87,14 @@ secretshare-all: | |
COPY +secretshare-darwin/secretshare ./secretshare-darwin-amd64 | ||
SAVE ARTIFACT ./* | ||
|
||
test: | ||
COPY +secretshare-linux/secretshare ./secretshare | ||
RUN ./secretshare | ||
RUN bash -c "echo -n hello | openssl pkeyutl -encrypt -pubin -inkey <(ssh-keygen -f ~/.secretshare.pub -e -m PKCS8) -pkeyopt rsa_padding_mode:oaep -pkeyopt rsa_oaep_md:sha256 -pkeyopt rsa_mgf1_md:sha256 | base64 | ./secretshare decrypt > output" | ||
RUN bash -c "diff output <( echo -n hello)" | ||
|
||
release: | ||
BUILD +test | ||
FROM node:13.10.1-alpine3.11 | ||
RUN npm install -g [email protected] | ||
WORKDIR /release | ||
|
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters