-
-
Notifications
You must be signed in to change notification settings - Fork 381
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
Add explanation on certificate identity retrieval for macOS and Windows #1473
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I can't argue that this is the command that you need to invoke to retrieve the certificate identity. What I'm not clear on is why it's needed. Why should this be in the Briefcase docs? What's the use case that leads to this being required? Briefcase should be managing certificate usage, extracting identities etc.
In terms of the specifics of the implementation - this is currently failing CI because it's missing a changenote.
Hi,
The exact same section is in Windows docs: https://briefcase.readthedocs.io/en/latest/how-to/code-signing/windows.html#certificate-s-sha-1-thumbprint so I thought it would be good too make it consistent and add the same section in macOS: https://briefcase.readthedocs.io/en/latest/how-to/code-signing/macOS.html
Maybe I'm holding it wrong but I've been following briefcase docs on Windows and they provided step-by-step instructions on how to get the IDENTITY. When I did the same on macOS the "how to get IDENTITY" section was missing. I spent some time to figure out the command, tested that it works, and thought I'll improve your documentation for the next person that stumbles on the same roadblock as me.
Thanks for the explanation. I'll fix it right away! |
2862a2c
to
46a2065
Compare
Sure - consistency is a reasonable argument. However, there's one other detail to consider:
You can specify
So - you don't need to have native options for getting signing identities, because Briefcase will extract them for you. Unfortunately, this option isn't available on Windows, because there isn't a convenient way (that we've been able to find) to provide a list of all available identities. Therefore, the Windows instructions need to provide a way to get the identities that are valid. This is something that would be nice to fix in the long term, but for now, it's what we've got.
That's definitely appreciated as a goal; I just want to make sure we're fixing the right thing. In this case, it seems like pointing out that specifying an identity is technically optional is the way we should be heading. |
I was looking for an non-interactive way to run
Understood. |
To be clear - a change is definitely in scope, because non-interactive use is an intended use. If it's not obvious that Briefcase can tell you how to determine the non-interactive command line, then the documentation definitely needs an update. And there might be a place for having the "getting the identity direct from the source" command in the docs - it just needs to be in the context of why you'd need to use that command (which is what this PR was missing) |
Let me clarify: are you saying that the PR is OK just needs a little bit more text adjustments? Something like inserting: "If you need unattended packaging on macOS ( I'm all ears for any other potential text suggestions as, clearly, I'm rather an engineer than a wordsmith 😅 |
Yes. What is missing is why this new section of the docs is required. "Here's the command to get your identities.... but why do you need to know this? How does this new knowledge fit into the overall workflow? Is this a command I'm going to need to run? If so, why and when? My suggestion would be that the "next steps" piece is where the elaboration is required. It currently just says "now go use
but in paragraph form :-) |
🤔 I've been thinking about it for some time and in my case the issue is that I was expecting to have the identity retrieving command because I did the Windows packaging first and it had that. So maybe even adding a paragraph in the Next Steps section that says " The Windows section could also be expanded to say something along the lines "Unfortunately Thanks for iterating with me on this! |
Both of those sound like really good improvements. (Of course, the other possible improvement is fix the underlying problem, and sort out what is preventing Winforms from presenting the macOS-style selection menu... :-)
My pleasure - thanks for bringing fresh eyes and ideas! |
46a2065
to
010102c
Compare
Great! I've re-opened this PR and removed the old section and added new paragraphs.
Yeah... I was thinking the same. It should be possible 🤔 if I ever find out how I'll be sure to create an issue 👍
😊 Sorry for the delay! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've made a couple of minor language edits, but this is great. Thanks for the contribution!
Thanks for help and walking me through the process! This really makes me appreciate the social side of your project (as I already liked what I saw from the technical angle). Have a nice day! 👋 |
Adds a section about certificate's identity on macOS. It took me a while to figure it out and the section was not as comprehensive as its Windows counterpart.
PR Checklist: