[DOCS-1697] Merge Windows and Linux sections for Security > Generate a Key File Created: 11/Jul/13 Updated: 12/Jul/13 Resolved: 12/Jul/13 |
|
| Status: | Closed |
| Project: | Documentation |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Improvement | Priority: | Trivial - P5 |
| Reporter: | Spencer Jackson | Assignee: | Sam Kleinman (Inactive) |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Participants: | |
| Days since reply: | 10 years, 31 weeks, 5 days ago |
| Description |
|
The lower of the two key lengths in bytes will work for both OSes, which would allow the structure of this article to be simplified. |
| Comments |
| Comment by auto [ 12/Jul/13 ] |
|
Author: {u'username': u'tychoish', u'name': u'Sam Kleinman', u'email': u'samk@10gen.com'}Message: |
| Comment by Spencer Jackson [ 12/Jul/13 ] |
|
Not exactly. The exact command I used was `openssl rand 768 | base64 -w 0 > keyFile'. That generates a correctly sized random set of input bytes, then uses the base64 command to encode it without any linebreaks. I'm not sure if Windows, or Cygwin, has a command equivalent to base64. |
| Comment by Spencer Brody (Inactive) [ 12/Jul/13 ] |
|
Nothing really, I just thought it was weird that we had a separate section for windows and linux on this page: http://docs.mongodb.org/manual/tutorial/generate-key-file/, where each section says almost identical information, the only difference is the windows command generates a few bytes less in the keyfile. Would be easy to combine to the sections and use the byte number from the windows section, which will still work fine on linux. This is definitely low priority - nothing's wrong with the docs, they're just a bit more complex than they need to be. Also, I believe spencer.jackson@10gen.com found an argument to openssl rand that would make it not include whitespace, so you could get a perfectly 1024kb keyfile that would work on both linux and windows. Spencer, can you post that here if correct? |
| Comment by Sam Kleinman (Inactive) [ 11/Jul/13 ] |
|
What's changed since the this ticket? https://jira.mongodb.org/browse/DOCS-1304 |