press-id-badge

Safari Browser Extension

For MacOSX-ONLY

Creating an Extension

Difference with Safari Extension The Safari extension does not provide and upload of the private key. Instead open the private_key.pem in a text editor and copy the contents to the Private Key field in the signing dialog popup.

Converting Chrome

Converting Chrome extension to Safari

cd src/safari
xcrun safari-web-extension-converter ../chrome
Xcode Project Location: ./press-id-badge/src/safari
App Name: Press ID Badge
App Bundle Identifier: com.yourCompany.Press-ID-Badge
Platform: All
Language: Swift
Warning: Unable to add icons to created project:
Error Domain=SafariWebExtensionConverterErrorDomain Code=-1 "manifest.json is missing icons" UserInfo={NSLocalizedDescription=manifest.json is missing icons}
Warning: Unable to add a large icon image to created project:
Error Domain=SafariWebExtensionConverterErrorDomain Code=-1 "manifest.json is missing a large icon size" UserInfo={NSLocalizedDescription=manifest.json is missing a large icon size}

from XCode,

xcode-001.png

set the caregory to Productivity.

launch safaru and navigate to safari -> settings -> advancedm and check Show features for web develoeprs

settings

then switch to the Developer tab, and check Allow unassigned extensions

extensions

change to the extension tab and check the Press ID Badge extension to enable

press-id-badge

you may need to grant permissions

permissions

start PHP

cd ../../public
php -S localhost:8082 -t .

then open safari browser to http://localhost:8082

localhost

then press Sign to sign the message with the local private key,

signing

copy and paste the private_key.pem in the Private Key field above and press Sign Message button,

message signed

now you can verify with the public_key.pem on github.com,

balidate with key

and verify with the JWK,

validate with jwk

Distribution

To start the distribution, Archive the Application: In Xcode, select Product > Archive from the menu bar. This will build and package your application, including the Safari extension. distribute-000 distribute-001 distribute-002 distribute-003 distribute-004 distribute-005 distribute-006 distribute-007 distribute-008 distribute-009

Releases