keychain | Bash script to access the osx keychain | Script Programming library
kandi X-RAY | keychain Summary
kandi X-RAY | keychain Summary
I got annoyed that:. So, I wrote this bash script to allow for easy access to the macOS keychain.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of keychain
keychain Key Features
keychain Examples and Code Snippets
Community Discussions
Trending Discussions on keychain
QUESTION
I'm building a Github Actions job to build, sign and notarize a PKG file.
I'm using an Apple Id account (the workflow needs username and password) as well as a Developer Id Installer certificate with private key (encrypted). Both are saved as secrets (base64) and will be converted in the workflow to a .p12 file, then added to keychain.
This job is part of a bigger workflow in a private repository, that generates first the files (using Pyinstaller) from the software, and then export the PKG on a AWS S3 Bucket.
The implementation ...ANSWER
Answered 2022-Mar-29 at 20:50After setting the devbotsxyz/xcode-notarize@v1
field verbose:true
, I observed that Apple returns a link to a JSON explaining why the package is INVALID for notarization.
In this JSON, it was informed that all the files composing my PKG (there are many as I couldn't use --onefile
with Pyinstaller in my context) were invalid because they weren't signed and timestamped.
After some researches, I found this post on the Apple Developer Forum and understood that PKG files need to be sign INSIDE OUT: First, you sign each file generated by Pyinstaller, then sign the PKG gathering all those files.
To do so, you can't use the productsign
command (as it only work for .pkg, .zip and .dmg) but codesign
.
However, codesign
doesn't use a Developer Id Installer certificate
, but a Developer Id Application certificate
, so I had to add this new certificate to the workflow as well.
Note that as my PKG would be composed of hundreds of files, I also needed a bash script to use codesign to sign each one of them.
My final workflow looks like this:
QUESTION
I’m working on boost::beast based application on macOS platform, and I wonder how I can provide a client-side certificate to authenticate against the server ?
basically , in macOS the certificates are stored in keychain, and cannot be exported (backed by dedicated hardware called secured-enclave for better security)…
So I wonder if there’s any callback suitable to sign server’s challenge manually with native macOS native code that send the challenge to the keychain/secure-enclave for signing.
basically, I'm looking for a callback that have roughly the following signature :
...ANSWER
Answered 2022-Mar-20 at 17:40There are examples here:
- asio/example/cpp11/ssl/client.cpp
- asio/example/cpp03/ssl/client.cpp
You can see it integrated in Beast's ssl_stream
: https://www.boost.org/doc/libs/1_78_0/libs/beast/doc/html/beast/ref/boost__beast__ssl_stream/set_verify_callback/overload2.html
QUESTION
How can I force VS Code to ask for my macOS Keychain password before each push to GitHub?
VS Code never asked for my GitHub password (via Keychain) until I pushed to GitHub and it asked before each push again.
This was working until a few hours ago when I had some issues and revoked my access and VS Code requested a new token.
Now VS Code does not ask at all for a password. Even when I remove VS Code from the Keychain whitelist, it asks for my password at program start only once and then not again, even not for pushes.
I want VS Code to request my GitHub token before each push from Keychain again.
...ANSWER
Answered 2022-Mar-18 at 06:53Check your git config --global credential.helper
: it references the program in charge of caching your credentials.
A git config --global --unset credential.helper
would remove it, forcing Git to always ask for your credentials.
QUESTION
I have a react-native project. After the bitnary (jcenter)
shutted down I started to replace it. Currently I'm using mavenCentral()
.
Also I'm using the react-native-intercom (wrapper for intercom)
.
When I'm trying to build gradlew assembleRelease
. Its throws me an error.
ANSWER
Answered 2022-Jan-23 at 12:38I solved it. If you are using the react-native-intercom wrapper. You need to update it, after update everything works fine
QUESTION
I have recently created an Apple Push Service certificate on my M1 mac mini. In the Keychain, it says the certificate is not trusted.
I have installed the Developer Relations Intermediate Certificate as mentioned in here
Also installed the following Intermediate Certificates from Apple
Still, the Push Service certificate shows it's not trusted. Meanwhile, new development and distribution certificates created are marked as "This certificate is valid". Can anyone point me in the right direction to fix this issue?
...ANSWER
Answered 2022-Feb-22 at 06:25I have installed the G3, G4, and G5 certificates from the Apple certificate authority and that solved my problem
QUESTION
I'm trying to run a unit test in GitHub actions before deploying my AWS Lambda, where I'm running Selenium Webdriver with a functioning Selenium-chromium lambda layer (https://github.com/vittorio-nardone/selenium-chromium-lambda). I'm running my environment in Python 3.6 and using ChromeDriver version 95.0.4638.54
I kept on encountering this error upon running the unit test:
...ANSWER
Answered 2021-Dec-13 at 23:08Here's what I needed to add to the Chrome options to make it work.
First add a remote debugging port:
QUESTION
I'm having a strange issue where I really cannot find a solution. My production website needs some testing and of course bot checking is enabled (not naming it).
Under my tests after using "Page.addScriptToEvaluateOnNewDocument", the result is not what I would expect.
- If I visit the website directly in the current tab of Chromium, it won't pass the bot checks.
- If I manually open a new tab and visit the website, it passes the bot checks.
At first I thought the scripts are not being executed in the current tab, however checking things that I overwrite shows that they are.
Using this little script I've taken from puppeteer is a PASS in both tabs:
...ANSWER
Answered 2022-Jan-21 at 14:48I have found out the solution. It's just how it works. Hurray.
QUESTION
I'm having an issue why trying to build a KMM project using a Jenkins pipeline and fastlane for the iOS part.
Kotlin version: 1.5.31
XCode version: 13.1
Fastlane version: 2.198.1
Ruby version: 2.6.3p62
When executing these steps locally it breaks as well. The Error that fastlane throws is import shared: no such module 'shared'
I figured out that if you run pod install && fastlane xcode_build
the build brakes, but if you repeat it a second time it succeeds and creates the project.app file in the DerivedData folder of XCode.
The Jenkinsfile is working correctly on another iOS project which is not a KMM one.
Here is the Jenkinsfile
...ANSWER
Answered 2021-Dec-16 at 12:13so I figured it out. If anyone has the same issue, the fix for this current problem is that you have to run a gradle task in the root directory of the project, before building the iOS part.
./gradlew generateDummyFramework
In my case with Jenkins I added sh './gradlew generateDummyFramework
before the sh 'pod install'
shell command in the Build stage. This fixed the issue in question.
The problem was caused from Cocoapods not being able to access the framework file, hence pod install
can't configure the framework correctly. The reason for the build to fail on the first build but not on the second is because the framework file is generated when you run a build in XCode. After that Cocoapods can configure the file correctly.
If anyone has a different answer I'm eager to know about it!
QUESTION
when I using fastlane to publish ios app in github:
...ANSWER
Answered 2021-Dec-01 at 05:39I see that is_ci
also ran. Does your match
command look like this:
match(.., readonly: is_ci, ...)
and are you running the command on a CI service like Jenkins or some other one?
If so, run it locally first, that will generate all the relevant certs and provisioning profiles needed. Then run it on your CI service again.
QUESTION
App doesn't run on IOS simulators or building archive but runs on devices. It used to run fine, suddenly (can't pinpoint what is currently different that could cause this) a similar issue happened on android with the File name is too long error after multiple flutter cleans, removing all caches it worked on a real device then on the simulators again, doesn't work for IOS though.
Error message
...ANSWER
Answered 2021-Nov-21 at 13:05What worked for me after many days was deleting all hidden files in the project folder besides git related ones, .idea, .packages etc.. As well as podspec.lock and the Build folder manually.
What worked for someone else with the same issue was "Removing the flutter installation folder, then fetching again from the repo"
Both options should hopefully solve your issue.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install keychain
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page