Add date to header in windows

This commit is contained in:
Marvin Martinson
2021-09-07 11:43:44 +00:00
parent d8d5b5f6bc
commit 5fcedc0fe9
2 changed files with 5 additions and 2 deletions
static/js
templates/snippets

@@ -22,6 +22,7 @@ Invoke-WebRequest `{% if token %}
-Method PUT `{% else %}
-Uri 'https://{{ authority.namespace }}:8443/api/request/?wait=yes&autosign=yes' `
-Method POST `{% endif %}
-Headers @{'Date' = (Get-Date).ToUniversalTime().ToString("r")} `
-TimeoutSec 900 `
-InFile host_csr.pem `
-ContentType application/pkcs10 `