Skip to content

[Batch] Fix #15464: Update check for pfx file without password in batch create_certificate - #15509

Merged
Feiyue Yu (qwordy) merged 1 commit into
Azure:devfrom
Zay2k:fix_batch_certificate_password
Oct 29, 2020
Merged

Feiyue Yu (qwordy) merged 1 commit into
Azure:devfrom
Zay2k:fix_batch_certificate_password

Conversation

@Zay2k

@Zay2k Eirik Zakariassen Fosse (Zay2k) commented Oct 13, 2020

Copy link
Copy Markdown
Contributor

Description

Add a check for file ending when determining certificate format of certificate uploaded to batch account. When a .pfx-certificate is uploaded without a password, the extra check is needed to not parse it as .cer-file.


This checklist is used to make sure that common guidelines for a pull request are followed.

@ghost ghost added the customer-reported Issues that are reported by GitHub users external to the Azure organization. label Oct 13, 2020
@ghost

Copy link
Copy Markdown

Thank you for your contribution Zay2k! We will review the pull request and get back to you soon.

@Zay2k

Copy link
Copy Markdown
Contributor Author

An improvement of this would be to do the check with OpenSSL.crypto or similar, like in keyvault module.

x509 = crypto.load_pkcs12(certificate_data).get_certificate()

@yonzhan

Copy link
Copy Markdown
Collaborator

Batch

@yungezz

Copy link
Copy Markdown
Member

hi Feiyue Yu (@qwordy) , could you pls review the PR? thanks

@yungezz Yunge Zhu (yungezz) added the Batch az batch label Oct 14, 2020
@yungezz Yunge Zhu (yungezz) added this to the S177 milestone Oct 14, 2020
@yungezz Yunge Zhu (yungezz) modified the milestones: S177, S178 Oct 28, 2020
@yungezz

Copy link
Copy Markdown
Member

hi Eirik Zakariassen Fosse (@Zay2k) Feiyue Yu (@qwordy) what's the status of this PR, is it ok to merge?

@Zay2k

Copy link
Copy Markdown
Contributor Author

hi Eirik Zakariassen Fosse (@Zay2k) Feiyue Yu (@qwordy) what's the status of this PR, is it ok to merge?

It is ok for me. What's the next step, should I merge dev into this, or do you just merge it?

@qwordy

Copy link
Copy Markdown
Member

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines successfully started running 2 pipeline(s).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Batch az batch customer-reported Issues that are reported by GitHub users external to the Azure organization.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants