Skip to content

Update command: m365 login, allow empty password for a pfx certificate #1974

@YannickRe

Description

@YannickRe

Usage

m365 login [options]

Description

Allow to login with a .pfx certificate that doesn't require a password.

Options

Unsure how this would be achieved (for now), just believe this should be possible.

Additional Information

I believe we should be able to use a .pfx certificate that doesn't have a password (this is the case when fetching a base64 encoded certificate from Azure Key Vault). Currently, when you don't use the --password option CLI assumes a .pem file is passed in to the --certificateFile option. Naturally, this doesn't achieve the wanted result.
Additionally, you cannot pass in an empty password to the --password option. This always results in errors.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions