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

Config wizard: adminpanel fails at nsIDOMCrypto.generateCRMFRequest when CS instance name (hence the DN) is long #1209

Open
pki-bot opened this issue Oct 2, 2020 · 1 comment
Milestone

Comments

@pki-bot
Copy link

pki-bot commented Oct 2, 2020

This issue was migrated from Pagure Issue #639. Originally filed by awnuk (@awnuk) on 2013-05-31 23:48:08:

  • Assigned to nobody

https://bugzilla.redhat.com/show_bug.cgi?id=807073 - Config wizard: adminpanel fails at nsIDOMCrypto.generateCRMFRequest when CS instance name (hence the DN) is long
[[BR]]
[[BR]]

807073: Description

When installing with a CA instance with a long name such as
"pki-ca-nethsm-nss-ecc-fips1E1SELinux03262012a"
the config wizard fails with the following error in the Firefox Error Console at the adminpanel:

Error: uncaught exception: [Exception... "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIDOMCrypto.generateCRMFRequest]" nsresult: "0x80004005 (NS_ERROR_FAILURE)" location: "JS frame :: https://:9965/ca/admin/console/config/wizard :: performPanel :: line 211" data: no]

Workaround is to have a shorter name.
We should at least release note this.
I don't have time to find out exactly how long is too long.
[[BR]]
[[BR]]

807073: Comment 2

For future reference, I printed out the DN that suspected of causing generateCRMFRequest() to break:

dn=cn=CA Administrator of Instance pki-ca-nethsm-nss-ecc-fips1E1SELinux03262012a1,uid=admin,e=xxx@redhat.com,o=DsdevSjcRedhat Domain 1

[[BR]]
[[BR]]

807073: Comment 7

I found the cause.

RFC 3280 defines an upper bound of 64 bytes for the CN attribute.

http://tools.ietf.org/html/rfc3280#appendix-A.1
-- Upper Bounds
ub-common-name INTEGER ::= 64

http://mxr.mozilla.org/mozilla-central/source/security/nss/lib/certdb/alg1485.c58

Resolving as not-a-bug.
[[BR]]
[[BR]]

807073: Comment 8

Re-opening against Certificate System. We should perform some upper bounds checking before calling generateCRMF().

@pki-bot
Copy link
Author

pki-bot commented Oct 2, 2020

Comment from awnuk (@awnuk) at 2017-02-27 14:00:39

Metadata Update from @awnuk:

  • Issue set to the milestone: UNTRIAGED

@pki-bot pki-bot added this to the UNTRIAGED milestone Oct 2, 2020
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

No branches or pull requests

1 participant