Keyfactor Tech Days 2027 – Be Part of The Trust Security Conference in San Diego Register now!

Securing Containers with SignServer and Cosign

Keyfactor Keyfactor Technical Team
SignServer tech update

Signing your container images with SignServer and Cosign helps you secure your software supply chain. 

A signed container image allows you to verify where an image came from, to ensure it was not tampered with and that only trusted images are pulled into your systems. A container signature identifies and authenticates who signed the image and carries a signed payload in a JSON file that identifies the signed image.

How to Sign Containers with Cosign and SignServer

Signed container images can be created with SignServer together with Cosign. Cosign is a tool for container signing and verification from the Sigstore project of the Linux foundation. It allows storing signatures alongside an image or artifact in the Open Container Initiative (OCI) registry. For more information, see the Cosign documentation.

To sign a container image, you first use Cosign to generate a payload containing the digest of the container image. Then, use SignServer to sign the payload and finally attach the signed payload to the container image in the registry using Cosign.

Cosign can later be used to verify that the digest of the signature payload matches the digest of the container image that the signature is attached to.

Why use SignServer for Container Signing

SignServer is open source-based and allows you to sign not only containers but also more than 20 other signature formats for code signing, document signing, and timestamping. Additionally, SignServer supports HSMs from multiple vendors. To store signature keys securely and compliantly, an HSM is always recommended.

With SignServer, all your signature services are managed in one place and security is enforced consistently and cost-effectively. Furthermore, the platform can also be integrated with your DevOps infrastructure for process automation.

Get Started with Container Signing

Do you want to try out SignServer and Cosign to sign a Docker container image?

  1. Download and install SignServer Community Edition, see Download SignServer.
  2. To sign a container, first generate a payload using Cosign and then sign it with SignServer. See video tutorial and full instructions.

Subscribe to The Source

Stay secure with Keyfactor's monthly newsletter, packed with expert insights and practical steps for quantum-readiness.

Continue Reading

Product

The Vision Behind the Keyfactor Trust Control Plane

Read more
Product

Stage Two: Analyze & Measure: Continuous Insight for Continuous Improvement

Read more
Product

Stage Five – Enforce & Govern: Continuous Policy Enforcement and Adaptive Response

Read more