Skip to content

Category: How Tos

“Edit this page on Github” using Freemarker in JBake

Another challenge we (the Apache Shiro Team) faced with our new JBake website was to re-re-add the “edit this page on GitHub” link at the bottom of the page. But it can be done with a workaround as long as the related bug is not solved.

Screenshot of the Apache Shiro website with a "Edit this page on GitHub" link at the bottom (footer).
Screenshot of the Apache Shiro website with a “Edit this page on GitHub” link at the bottom (footer).

Fixing old SHA1-infested OpenPGP keys

I recently created a new OpenPGP key for my Apache (ASF) account. Of course I wanted to sign it with my existing GnuPG key I have since 2007. To my surprise, it failed with these error messages:

gpg: Note: third-party key signatures using the SHA1 algorithm are rejected
gpg: signing failed: Invalid digest algorithm
gpg: signing failed: Invalid digest algorithm

It took me a few hours to figure out what’s wrong. Obviously something with SHA1, but GnuPG doesn’t tell you WHAT is wrong and HOW to fix it.