Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Export-VcCertificate Appends a Guid with the Certificate Name when downloading the certificate. #315

Closed
aprajitapriya16 opened this issue Dec 16, 2024 · 2 comments · Fixed by #320
Assignees

Comments

@aprajitapriya16
Copy link

Environment

Full Operating System: Windows Server 2016
VenafiPS version: LAtest Version
PowerShell version: 7.0
TLSPDC version (if applicable):

Steps to reproduce

Run below command in powershell 7.0:

Export-VcCertificate -ID $certificateId -PrivateKeyPassword $CertPassword -OutPath $TargetDirectory -PKCS12

Expected behavior

The certificate is downloaded without the guid appended with the name

Actual behavior

We use Export-VcCertificate in our certificate automation. Recently we are observing that it appends a guid(certifiacte id) with the certificate name on downloading the certificate using Export-VcCertificate. This is breaking our automation.

Screenshots

@gdbarron gdbarron self-assigned this Dec 18, 2024
@aprajitapriya16
Copy link
Author

Any update on this?

@gdbarron
Copy link
Collaborator

gdbarron commented Jan 9, 2025

Hi @aprajitapriya16, I'll have a look. Are you not using outPath from the return object to determine the file path?

gdbarron pushed a commit that referenced this issue Jan 22, 2025

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants