Homebrew / homebrew-cask

🍻 A CLI workflow for the administration of macOS applications distributed as binaries
https://brew.sh
BSD 2-Clause "Simplified" License
20.9k stars 10.7k forks source link

Cask request: SafeSign Identity Client #24722

Closed rogeriopradoj closed 8 years ago

rogeriopradoj commented 8 years ago

Cask details

Name - SafeSign Identity Client - tokenadmin.app and SafeSignIC Tokenlounge.app

Homepage - https://www.aeteurope.com/our-solutions/safesign-identity-client/

License - :gratis

Download URL v3.0.112 - https://safeweb.com.br/portals/10/downloads/Safesign_3.0.112_MAC.zip

Download URL v3.0.93 - http://site.solutinet.com.br/2014/images/files/instaladores-e-manuais/Safesign-3093-MacOS-driver-manual.zip

Description - middleware for strong authentication with smart cards and USB tokens.

berniechiu commented 8 years ago

I would like to add this one for hacktoberfest

reitermarkus commented 8 years ago

@berniechiu, go right ahead, here's some documentation to get you started: https://github.com/caskroom/homebrew-cask/blob/master/doc/development/adding_a_cask.md

berniechiu commented 8 years ago

thx a lot @reitermarkus

While reading the documentaion and trying to add one, I have a few questions though.

(1) Should I specify two casks for this? Because I see two different urls being provided here. (make client cask depend on the driver cask? Not sure if this is provided in the DSL)

(2) The first download url provided with zip and that seems alright, but while I unzipped to check it. I see two .dmg files. The documentation only show that the .app should present when unzip. Not sure how to handle that from here. Thanks for you help~

rogeriopradoj commented 8 years ago

Hi, @berniechiu . I already have a skeleton here of this cask (I started the work on that when I opened the issue), I will share it on https://github.com/rogeriopradoj/homebrew-cask/tree/new-cask_safesign.

It cask is important for me because I'm using Smart Card Certificate from ICP-Brasil, the PKI - Public Key Infrastructure of Brazilian Government.

On your questions:

Q: (1) Should I specify two casks for this? Because I see two different urls being provided here. (make client cask depend on the driver cask? Not sure if this is provided in the DSL)

A: The two urls provided are for different versions (v3.0.112 and v3.0.93). Anyway I think that it should have 2 casks:

Note: I say if possible because TokenLounge wasn't released for a long time because of incompatibilities with some versions of Mac OS X.

Due to changes in the Mac OS X architecture AET was forced to discontinue its TokenLounge product for native applications supporting Keychain (such as Safari), as the Mac OS X architecture no longer offers support for products such as TokenLounge. Source: SafeSign v3.0.77 manual

According to AET TokenLounge is back in Yosemite and El Capitan. But, according to my tests, with my personal macOS Sierra it's not working anymore*.

The products version v3.0.112 is inconsistent in macOS Sierra:

The products ver v3.0.93 are OK in macOS Sierra:

So, my suggestion for now is:

In near future, when AET (or its partners, issuers of ICP-Brasil digital certificates, as Safeweb, Soluti, Certisign, the Federal Bank Caixa EconĂ´mica Federal or any of this list by Receita Federal do Brasil) provides an updated version of SafeSign supporting macOS Sierra:

(2) The first download url provided with zip and that seems alright, but while I unzipped to check it. I see two .dmg files. The documentation only show that the .app should present when unzip.

A: As only the second url, v3.0.93, is OK with macOS Sierra, I suggest we work only on that, ok? Anyway, when there's a zip and a dmg, you could use container nested: in Formula.rb

In short: https://github.com/rogeriopradoj/homebrew-cask/tree/new-cask_safesign will have a safesign-ic-standard.rb

See ya!

vitorgalvao commented 8 years ago

I’m not sure this is a good fit for HBC. It seems to be relatively niche with an interested audience (for the cask) of one. It also seems to be fairly security minded, and it’s not like we’re really going to stay on top of it, or anything (most cask update contributions are from users).

This seems like the perfect candidate for a user tap. Alternatively, this might be a fit for caskroom/eid (not sure, is it?).

Either way, closing the issue. If you still want to submit to the main project, we’ll surely review and discuss its inclusion at the time, but since you’re already working on the cask and seem to know a lot both about the software itself and how to contribute to HBC, I don’t see a point to have this issue open.

Cask requests are for when you need someone else to make the cask. If you’re going to work on it yourself, please don’t open an issue, just submit the PR.

berniechiu commented 8 years ago

A: As only the second url, v3.0.93, is OK with macOS Sierra, I suggest we work only on that, ok?

As @vitorgalvao suggested, you think you can submit your PR. I'll work on the second one đź’Ż

rogeriopradoj commented 8 years ago

Hi, @vitorgalvao :

Alternatively, this might be a fit for caskroom/eid (not sure, is it?).

Brazil government is working for a Electronic ID but it's not available yet (RCI, RCU and RCN).

Anyway, as SafeSign apps are used by many users of smart card readers and tokens for digital certificates (including Brazilian ICP-Brazil but not limited to them), I still think that the cask is fine here in HBC. So, let's discuss in PR.

Thanks again!

andersonfreitas commented 7 years ago

Hi @rogeriopradoj Is there any update on this? I'm installing the Safesign IC on my macOS Sierra and would love to use this Cask. Thanks.