Skip to main content
August 10, 2023
Question

Git commit signing in VSCode DevContainer

  • August 10, 2023
  • 1 reply
  • 876 views

I am using 1Password as SSH agent and I have Git commit signing working correctly on my machine. However, I cannot make commit signing work inside VSCode DevContainers. I get the following error message:

```
error: Load key "/tmp/.git_signing_key_tmp24s6i4": error in libcrypto?

fatal: failed to write commit object
```

The container is Ubuntu-based (22.04 LTS)


1Password Version: 8.10.8
Extension Version: 2.13.0
OS Version: NixOS 23.11.20230722.12303c6
Browser: Brave

1 reply

robertodrAuthor
August 16, 2023

The above happens when not setting the ssh.program to op-ssh-sign. If I do that, then the error changes to:


error: cannot run op-ssh-sign: No such file or directory
error:
fatal: failed to write commit object

which is understandable, since there is no op-ssh-sign within the devcontainer.