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

Import-VdcCertificate with data field is failing #290

Closed
Andrew-Boley opened this issue Aug 6, 2024 · 0 comments · Fixed by #291
Closed

Import-VdcCertificate with data field is failing #290

Andrew-Boley opened this issue Aug 6, 2024 · 0 comments · Fixed by #291
Assignees

Comments

@Andrew-Boley
Copy link

Andrew-Boley commented Aug 6, 2024

Environment

Full Operating System:
VenafiPS version: 6.4.0
PowerShell version: 7.3.2
TLSPDC version (if applicable): 23.3.4

Steps to reproduce

Run the Import-VdcCertificate command with the -data field present. Ex: import-vdccertificate -data (get-content -path C:\Users\Administrator\Desktop\Import.crt -raw) -verbose

Expected behavior

The command should work fine and import the certificate when using the -data field.

Actual behavior

It generates an error:
image

When using the -verbose flag, it looks like the "certificatedata" field in the underlying API call is wrong.
It passes "CertificateData":["CertGoesHere"]
The brackets around the cert data don't match up with the accepted syntax for POST Certificates/Import

Screenshots

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants