Coder Social home page Coder Social logo

mrmabulous / gittrustedtimestamps Goto Github PK

View Code? Open in Web Editor NEW
30.0 1.0 4.0 882 KB

Trusted Timestamping for git repositories using RFC3161 and RFC5816 token

Home Page: https://matthias-buehlmann.medium.com/git-as-cryptographically-tamperproof-file-archive-using-chained-rfc3161-timestamps-ad15836b883?source=friends_link&sk=fb180a11ab53a2c2d9b31bcf0febf2fc

License: GNU Affero General Public License v3.0

Shell 100.00%
timestamp-tokens secure-timestamps tsa rfc3161 rfc5816 rfc-3161 rfc-5816 trusted-timestamping hooks openssl

gittrustedtimestamps's People

Contributors

mrmabulous avatar trefzer avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

gittrustedtimestamps's Issues

Dependency versions

Thanks for the great project.

It would be very helpful if you would list the versions of awk, sed, bash, etc., that you have developed under. I'm trying to use your work on OSX vanilla, and have already run into a problem due to my bash version being too old.

I'm currently stuck with many errors like:

awk: syntax error at source line 2
 context is
	    { print > tmpdir >>>  i <<<  ".extracted.pem.cer" }

that pop up when I attempt to git commit, and I'm guessing these are awk version related.

Error "Path to token file must not be empty"

I would be helpful if you could help me solve this problem.

MacOS Ventura 13.0.1

git commit Adding Timestamp commit. This may take a moment... .git/hooks/timestamping: line 194: local: -n: invalid option local: usage: local name[=value] ... .git/hooks/timestamping: line 195: local: -n: invalid option local: usage: local name[=value] ... .git/hooks/timestamping: line 196: local: -n: invalid option local: usage: local name[=value] ... awk: syntax error at source line 1 context is $0~trailerregex{ i++; insidetimestamp=1; print substr($0,urlstart) > tmpdir >>> i <<< ".extracted_token.url" } /-----END/{insidepem=0; insidetimestamp=0} insidepem{print substr($0,2) > tmpdir i ".extracted_token.pem"} insidetimestamp && /-----BEGIN/{insidepem=1} END {print i} awk: illegal statement at source line 1 .git/hooks/timestamping: line 303: local: -n: invalid option local: usage: local name[=value] ... Assertion failed: Precondition: Path to token file must not be empty. Backtrace: [1]: .git/hooks/timestamping : get_token_digest line 307 [2]: .git/hooks/post-commit : retrieve_crl_for_most_recent_parent_timestamps line 123 [3]: .git/hooks/post-commit : main line 151 Aborting commit.

Issue initializing repository

Hello,

I'm trying to use your project, I like it a lot, to initialize a new git repository.
I cannot use the object format to sha256 because I have git version 2.17.
Anyway, I have initialized the repository and followed your step up to step 2.
At step 3 I get the following error when I run your script:

.git/hooks/trust.sh https://freetsa.org/tsr
dgst: Unrecognized flag -show-object-format
dgst: Use -help for summary.
Assertion failed: Precondition: digest 573541ac9702dd3969c9bc859d2b91ec1f7e6e56 must have length 0.
Backtrace:
  [1]: .git/hooks/timestamping : request_token line 355
  [2]: .git/hooks/trust.sh : main line 62

Could it be an issue with the git version?

Thanks

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.