Packaging AIR application. Trouble with signing - macos

Have some troubles with keystore file.
I make a request for certificate, using Keychain app.
Then I added a certificate in developer.apple site, using my request for certificate.
Then I downloaded certificate, and imported it into Keychain app.
Then I exported *.p12 file from this certificate, using Keychain assistant.
And this *.p12 file I am using to package my app. And when I do so, it raise an error:
Failed to package AIR application MyApp.app:
Unable to build a valid certificate chain for the signer.
Then I found this guy http://scottgaertner.com/code_signing/
And using his guide, I had a new error:
Failed to package AIR application MyApp.app:
Packaging failed. Packager internal error
Can anyone give me some advices?
I am using IntelliJ IDEA 14
UPD: Flash Builder 4.7 throws same error

Related

While using github actions for creating ios pipeline, getting this error: security:SecKeychainItemImport: MAC verification failed during PKCS12 import

I am using github action to create archive ios build. While github runs my yml file, it gives error stating:
security: SecKeychainItemImport: MAC verification failed during PKCS12 import (wrong password?)
I rechecked my certificates and provisioning profiles, and able to create build on my local system using xcloud.

how to remove self signed certificates on Mac OS

How to remove self signed certificates from ssl certificate on Mac? I am using macOS Mojave 10.14.6. Some time back, as per the given project instructions I have added a certificate. Now I did not remember those steps, but because of that maven central is using the certificate from custom trust store instead from certification authority. Because of this I am getting the below error when I run ./mvnw, can any one help me how can I figure out that self signed certificate and remove it so that maven starts using from certification authority instead from custom trust store?
$ ./mvnw
Exception in thread "main" javax.net.ssl.SSLHandshakeException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target

Command /usr/bin/codesign failed with exit code 1 on Xcode 11

I'm trying to build for App Store but I got the error Command /usr/bin/codesign failed with exit code 1. I tried to clean DerivedData, restart computer, revoke keys and create new one. I had updated my mac to catalina and Xcode 11, before the upgrade it was working.
/Users/digistarts/Library/Developer/Xcode/DerivedData/Runner-glehwjejufujqwblxzreggowpgvb/Build/Intermediates.noindex/ArchiveIntermediates/Runner/InstallationBuildProductsLocation/Applications/Runner.app/Frameworks/Flutter.framework: replacing existing signature
Warning: unable to build chain to self-signed root for signer "Apple Development: Daniel Santana (85UL9U2WVT)"
/Users/digistarts/Library/Developer/Xcode/DerivedData/Runner-glehwjejufujqwblxzreggowpgvb/Build/Intermediates.noindex/ArchiveIntermediates/Runner/InstallationBuildProductsLocation/Applications/Runner.app/Frameworks/Flutter.framework: errSecInternalComponent
Command /usr/bin/codesign failed with exit code 1
In Keychain Access... The solution was right clicking on Apple Worldwide Developer Relations Certification Authority and select Get Info. In the Image bellow, I've change When using this certificate to Use System Defaults and the system asked me to put password. Now it's working \o/
In case it'll be helpful for someone else - I had the same problem, which only was reproduced with no internet connection, and as fast as I connect back - error disappears.
My project xamarin forms.
I had such a problem after renewing the certificate, it turned out at the end of the build on the Mac it asks for the user's password when checking the certificate.

Warning: unable to build chain to self-signed root for signer "Developer ID Application: xxxxxx: errSecInternalComponent

I am trying to migrate our build server to a new machine.
I exported the certificate and imported it on the new machine.
But when I get error when I am trying to run codesign
Warning: unable to build chain to self-signed root for signer "Developer ID Application: xxxxxxx"./workspace/onCourseServer.app: errSecInternalComponent
I tried deleting the certificate and reimporting it, adding always trust; I also tried regenerating the certificate and using the new certificate on the new mac. But none of them worked. I am still getting the same error.
The new mac is running the mojave.

VS2012 Signing Assembly Error - "Cannot find the certificate..."

I'm trying to sign my app in VS2012 but I'm receiving "Cannot find the certificate and private key for decryption" error.
What I do:
I received my certificate by Comodo CA Limited in Google Chrome.
Exported the certificate to a file with "Include all certificates" and "Export private key" options.
In VS2012, Signing tab I browse to the certificate file and fill in the password. The "Cannot find..." error appear.
I also tried all steps in this tutorial: Visual Studio error 'Cannot find... in Comodo Knowledge Base, but no success.
The same key works fine when signing with the Comodo kSign tool and also when using signtool.exe
....
The most common problem arises when using a .pfx file that contains
chaining information. You can remove chaining information from the key
file by running the Certificate Manager snap-in (Certmgr.msc),
importing the pfx file into the personal certificate store, and then
exporting it without including the certificate chain information.
Importing the certificate in MMC and exporting again doesn't help
...
I tried it on other machine, but the same problem.
Any ideas?
https://msdn.microsoft.com/en-us/library/aa730868%28vs.80%29.aspx#rsvssign_topic3
The .pfx file cannot include certificate chaining information. (If the .pfx file does include this information, the following import error will occur: "Cannot find the certificate and private key for decryption.")
Just do not set "Include all certificates" while exporting the *.pfx file

Resources