@@ -42,6 +42,7 @@ templates hardcoded into `step-ca`.
- [X.509 Templates](#x509-templates)
- [ASN.1 Values](#asn1-values)
- [SSH Templates](#ssh-templates)
+- [Time formatting](#time-formatting)
- [Configuring `step-ca` to Use Templates](#configuring-step-ca-to-use-templates)
- [Basic X.509 Template Examples](#basic-x509-template-examples)
- [Advanced X.509 Template Examples](#advanced-x509-template-examples)
@@ -361,6 +362,23 @@ from your provisioner's [configuration block](#configuring-the-ca-to-use-templat
+## Time formatting
+
+In addition to the time formatting functions offered by [Sprig](http://masterminds.github.io/sprig/),
+`step-ca` has added some additional convenience functions for X.509 and SSH templates:
+
+| Function | Description |
+|----------|-------------|
+| `toTime 1719970524` | Returns a `time.Time` in UTC from a Unix epoch. |
+| `formatTime (now)` | Returns the UTC time as an RFC3339-formatted string.