Where do I store templates?

Where you store templates isn't very restrictive, but here are some suggestions and reasons behind them.

Templates are a powerful addition to using Smallstep to customize and add extensions. But, you might be wondering where to store templates you create.

Template files are stored on disk, so they need to be visible to Step when you reference one. Step can access templates using either absolute paths or relative paths.
  • Absolute path:
    • Example: /home/alice/path/to/myTemplateFile.tpl
  • Relative to $(step path):
    • Example: templates/certs/x509/leaf.tpl
      • In this case, the actual location would be `$(step path)/templates/certs/x509/leaf.tpl)`.