shasum: command not found #15

Closed
opened 2025-12-29 00:21:51 +01:00 by adam · 4 comments
Owner

Originally created by @ik0 on GitHub (Dec 14, 2015).

Hello,

I use your script on old gentoo instalation and get this error:
./letsencrypt.sh: line 135: shasum: command not found

So i've just changed "shasum -a 256" to "sha256sum" and it works ! I know I use very old instalation, but that's why I don't/can't use official letsencrypt client.

Originally created by @ik0 on GitHub (Dec 14, 2015). Hello, I use your script on old gentoo instalation and get this error: ./letsencrypt.sh: line 135: shasum: command not found So i've just changed "shasum -a 256" to "sha256sum" and it works ! I know I use very old instalation, but that's why I don't/can't use official letsencrypt client.
adam closed this issue 2025-12-29 00:21:52 +01:00
Author
Owner

@martinvolf commented on GitHub (Dec 14, 2015):

Or you can create a script called shasum in /usr/bin or /usr/local/bin with this in it:

#!/bin/bash
shift 2
sha256sum $@

M.

@martinvolf commented on GitHub (Dec 14, 2015): Or you can create a script called shasum in /usr/bin or /usr/local/bin with this in it: ``` shell #!/bin/bash shift 2 sha256sum $@ ``` M.
Author
Owner

@ik0 commented on GitHub (Dec 14, 2015):

I think shasum comes from Perl and if author want this project to be perl independent this should be changed.

@ik0 commented on GitHub (Dec 14, 2015): I think shasum comes from Perl and if author want this project to be perl independent this should be changed.
Author
Owner

@martinvolf commented on GitHub (Dec 14, 2015):

You are right. And "sha256sum" is shorter ;-)

@martinvolf commented on GitHub (Dec 14, 2015): You are right. And "sha256sum" is shorter ;-)
Author
Owner

@lukas2511 commented on GitHub (Dec 14, 2015):

Just to clarify: I was using shasum because sha256sum doesn't seem to be available on bsd systems. Now i switched it to use openssl for generating the hash, which hopefully works everywhere.

@lukas2511 commented on GitHub (Dec 14, 2015): Just to clarify: I was using shasum because sha256sum doesn't seem to be available on bsd systems. Now i switched it to use openssl for generating the hash, which hopefully works everywhere.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/dehydrated#15