Show how to change a password on a signing file.
This commit is contained in:
parent
4634ad293d
commit
62f8614607
|
@ -128,6 +128,25 @@ go build -o setup.exe -ldflags "-s -w -H=windowsgui"
|
|||
|
||||
Refer back to the instructions on [How to Sign a File](#signing-the-file) to sign your setup file as well. Then you're done! Just run `setup.exe` wherever you want it will setup your server for you. If you ever more `server.exe`, you will need to run `setup.exe`again to setup a new firewall rule at a new location.
|
||||
|
||||
# Changing the Password on a Signing File
|
||||
If you want to change your password on a code-signing file you can use `keystore` in Linux like this:
|
||||
|
||||
```
|
||||
keytool -importkeystore \
|
||||
-srckeystore "${SRCFILE}" -srcstoretype PKCS12 -srcstorepass:file ssp \
|
||||
-destkeystore "${DSTFILE}" -deststoretype PKCS12 -deststorepass:file dsp -destkeypass:file dsp
|
||||
```
|
||||
|
||||
`SRCFILE` is the file you want to change your password on, `DSTFILE` is what the new file with the new password will be called. `ssp` is the password of the current file stored in a file. `dsp` is the password of the new file stored in a file. You will see something like this:
|
||||
|
||||
```
|
||||
Importing keystore rootgroup.p12 to rootgroup2.p12...
|
||||
Entry for alias the root group, llc’s sectigo limited id successfully imported.
|
||||
Import command completed: 1 entries successfully imported, 0 entries failed or cancelled
|
||||
```
|
||||
|
||||
You can find more information about how this works at the source: https://stackoverflow.com/a/50900084
|
||||
|
||||
## WIP: Service
|
||||
|
||||
Service: https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.management/new-service?view=powershell-6
|
||||
|
|
Loading…
Reference in New Issue