Skip to content

Setting a Password for a Self-Signed Certificate #9058

Open
@jenny-xpanner

Description

@jenny-xpanner

To resolve the SmartScreen block issue, I’m considering purchasing an OV certificate.

However, before that, I created a certificate for testing using the following command:

yarn electron-builder create-self-signed-cert -p my_publisher

After entering the password a few times, a PFX file was generated in the project root directory.

I set the WIN_CSC_LINK and WIN_CSC_KEY_PASSWORD environment variables and tried to build the project, but the build failed with the error:

SignTool Error: The specified PFX password is not correct.

During certificate creation, I saw the message:

When asked to enter a password ("Create Private Key Password"), please select "None".

Is it not possible to build the project with a self-signed certificate that has a password set? Or did I do something wrong?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions