unable to find signing program 'smimesign'

16 views (last 30 days)
Nicholas
Nicholas on 12 Aug 2024
Answered: Umar on 12 Aug 2024
Hello! I'm trying to set up git according to this article Set Up Git Source Control. After implementing this step "Enable Signing Commits" including,
```
!git config --global commit.gpgsign true
!git config --global user.signingkey 3AB5C344325645B2
!git config --global gpg.format x509
!git config --global gpg.x509.program smimesign
```
The error, unable to find signing program 'smimesign', take place while I trying to commit. And the error will be solved by command this,
```
>> !git config --global --unset gpg.x509.program
>> !git config --global --unset gpg.format
>> !git config --global --unset commit.gpgsign
>> !git config --global --unset user.signingkey
```

Answers (1)

Umar
Umar on 12 Aug 2024
Hi @Nicholas,
The issue you're facing stems from the configuration of GPG signing in Git, specifically with the command `!git config --global gpg.x509.program smimesign`. This command is intended to specify a program for signing commits using S/MIME (Secure/Multipurpose Internet Mail Extensions), but if 'smimesign' is not available or installed on your system, Git will throw an error indicating that it cannot find the signing program. To resolve the issue with signing commits in Git using S/MIME, make sure that the `smimesign` program is installed on your system. This program is not included with Git by default and needs to be installed separately. Depending on your operating system, you may need to look for specific packages or tools that provide S/MIME signing capabilities. After verifying the installation of `smimesign`, confirm that your Git configuration is correctly set up to use it, check your current Git configuration with:
git config --list
Look for entries related to GPG and make sure they reflect your intended setup. After following these guidelines, if you continue facing issues with S/MIME then I will recommend consider switching to GPG (GNU Privacy Guard) for signing commits since it is widely supported and might offer a smoother experience. Please let me know if you have any further questions.

Categories

Find more on Source Control in Help Center and File Exchange

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!