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

Uploading certificate with a comma "," inside of one of the Issuer values results in error: "Error: - Data line '<whatever comes after comma>' is not in 'name=value' format" #439

Closed
BrendanEsri opened this issue Jan 3, 2023 · 3 comments
Assignees
Labels
bug Something isn't working Fixed Label for when an issue is fixed. HasAWorkaround

Comments

@BrendanEsri
Copy link

BrendanEsri commented Jan 3, 2023

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request

Module Version

  • 4.0.1

Affected Resource(s)

  • ArcGIS_Server

Configuration Files

Expected Behavior

It should have uploaded the certificate even if there is a comma inside the Organization within the Issuer values

Actual Behavior

It results in an error
"Error: - Data line ' Inc."' is not in 'name=value' format

Steps to Reproduce

Upload a certificate to ArcGIS Server at 10.9.1 with v 4.0.1 that has a comma inside one of the values of the Issuer section within the certificate

Important Factoids

References

2023-01-03_14-56-01

2023-01-03_14-58-59

@BrendanEsri BrendanEsri changed the title Uploading certificate with a comma "," inside of one of the Issuer values results in error: "Error: - Data line ' Inc."' is not in 'name=value' format" Uploading certificate with a comma "," inside of one of the Issuer values results in error: "Error: - Data line '<value>' is not in 'name=value' format" Jan 3, 2023
@BrendanEsri BrendanEsri changed the title Uploading certificate with a comma "," inside of one of the Issuer values results in error: "Error: - Data line '<value>' is not in 'name=value' format" Uploading certificate with a comma "," inside of one of the Issuer values results in error: "Error: - Data line '<whatever comes after comma>' is not in 'name=value' format" Jan 3, 2023
@cameronkroeker
Copy link
Contributor

Hi @BrendanEsri,

As a temporary workaround, could you try commenting out the following 2 lines, and re-run?

$CN = if($issuer) { ($issuer.Split(',') | ConvertFrom-StringData).CN } else { $null }

and

Thanks,
Cameron K.

@BrendanEsri
Copy link
Author

This worked, thank you!

@cameronkroeker cameronkroeker self-assigned this Jan 5, 2023
@cameronkroeker
Copy link
Contributor

Hi @BrendanEsri,

This issue has been addressed in v4.0.2.

Thanks,
Cameron K.

@cameronkroeker cameronkroeker added Fixed Label for when an issue is fixed. and removed will fix labels Apr 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Fixed Label for when an issue is fixed. HasAWorkaround
Projects
None yet
Development

No branches or pull requests

2 participants