This is an automated email from the ASF dual-hosted git repository.

ronny pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/couchdb-glazier.git


The following commit(s) were added to refs/heads/main by this push:
     new a08e5b2  JSign signing helper script for DigiCert One Authory (#29)
a08e5b2 is described below

commit a08e5b23c072ca9a9f34e8be975784e2286ef414
Author: Ronny Berndt <[email protected]>
AuthorDate: Fri Dec 15 07:26:15 2023 +0100

    JSign signing helper script for DigiCert One Authory (#29)
    
    Little helper script for signing MSI files with JSign and DigiCert Authory
---
 bin/sign_msi_digicert.ps1 | 34 ++++++++++++++++++++++++++++++++++
 1 file changed, 34 insertions(+)

diff --git a/bin/sign_msi_digicert.ps1 b/bin/sign_msi_digicert.ps1
new file mode 100644
index 0000000..73a8b2e
--- /dev/null
+++ b/bin/sign_msi_digicert.ps1
@@ -0,0 +1,34 @@
+# Licensed under the Apache License, Version 2.0 (the "License"); you may not
+# use this file except in compliance with the License. You may obtain a copy of
+# the License at
+#
+#   http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+# License for the specific language governing permissions and limitations under
+# the License.
+
+# Prerequisites:
+# 1. Install JSign (https://ebourg.github.io/jsign/).
+# 2. Edit $Storepass variable with your DigiCert One credentials.
+#    Be sure to use single quotes and escape the pipe char | with
+#    double quotes like "|".
+# 3. Edit $Alias variable to match your signing key alias.
+
+Param(
+    [Parameter(Mandatory=$True)]
+    [string]$MSIFile
+    )
+
+# EDIT BOTH VARIABLES ###################################################
+$Storepass = '<api-key>"|"<path-to-client-cert>"|"<client-cert-password>'
+$Alias = "<your-digicert-alias>"
+#########################################################################
+
+# RFC 3161 timestamping URL
+New-Variable -Name TSAUrl -Value "http://timestamp.digicert.com"; -Option 
Constant
+
+# call JSign and sign file
+jsign --storetype DIGICERTONE --storepass $Storepass --alias $Alias --tsaurl 
$TSAUrl $MSIFile

Reply via email to