Posts

Showing posts with the label Certificate

Android Studio: Server's Certificate Is Not Trusted

Answer : Android Studio has a configuration for Server Certificates (This works for other IntelliJ platforms like PyCharm as well) Go to File->Settings . In the IDE Settings section select Server Certificates Myself I just selected the Accept Automatically check box, hit Apply and never had to deal with it. If you are worried about security, there is also the option to add them 1 at a time as they come up. In my case I did this because I already had a *.google.com certificate configured as accepted, but I still got the popup. I suspect that the fingerprint changed and if I would have deleted and then accepted the error would have gone away, but I decided to just make it go away by selecting the check box. It is not safe to ignore that warning. Someone could be attempting a man-in-the-middle attack with a fake certificate in order to install malicious software on your computer through the update process. This probably isn't happening but it's always better to do...

Cannot Install Signed Apk To Device Manually, Got Error "App Not Installed"

Image
Answer : You may be using the android 5.0 or above device. Just go to the Settings --> Apps --> Click on your App. ---> In App info page at the action bar menu there will be an option called " Uninstall for All users " click that. Your app will be completely uninstalled and now you can try installing the new version with no issue. Hope this will help you Check my solution from below link. Link 1 Hope it will help you. For Current Updated Android Studio 2.3 users this answer is for you as hardly people use eclipse nowadays for Android development as Android studio has huge advancements. So, Follow this way to create your Signed apk file. Build > Generate Signed apk . Create Keystore path . Put Password, alias, key password . Build type select accordingly(eg to release in playstore use release ). Signature Version select both V1 and V2 checkboxes. Finsih . Go to from explorer where you selected for the apk to store and you will see yo...

Convert .pem To .crt And .key

Answer : I was able to convert pem to crt using this: openssl x509 -outform der -in your-cert.pem -out your-cert.crt Converting Using OpenSSL These commands allow you to convert certificates and keys to different formats to make them compatible with specific types of servers or software. Convert a DER file (.crt .cer .der) to PEM openssl x509 -inform der -in certificate.cer -out certificate.pem Convert a PEM file to DER openssl x509 -outform der -in certificate.pem -out certificate.der Convert a PKCS#12 file (.pfx .p12) containing a private key and certificates to PEM openssl pkcs12 -in keyStore.pfx -out keyStore.pem -nodes You can add -nocerts to only output the private key or add -nokeys to only output the certificates. Convert a PEM certificate file and a private key to PKCS#12 (.pfx .p12) openssl pkcs12 -export -out certificate.pfx -inkey privateKey.key -in certificate.crt -certfile CACert.crt Convert PEM to CRT (.CRT file) openssl x509 -outform der -in certificate.pem -out cert...

A Certificate Chain Could Not Be Built To A Trusted Root Authority

Image
Answer : I also met the same issue in Win 7 sp1. The solution is below: Download the certificate file from Microsoft: MicrosoftRootCertificateAuthority2011.cer If the link invalid someday, you can download from MicrosoftRootCertificateAuthority2011.cer - github. Double click the .cer file downloaded just now, then install the certificate following below captures: Re-install your .NET Framework 4.6.2 installation package. Then the problem will be resolved. May it be helpful for you. I recently ran into this issue with systems behind a firewall that didn't have internet access. I ran /extract on the .NET Framework 4.6.2 MSI and was able to run the x64 installer directly without the certificate check. Maybe not the "right" way to go, but it worked. could it create problem to install the same certificate on several systems? No, it will not be a problem even if the systems would be connected to the internet in the future. When you connect the s...

Convert .pfx To .cer

Answer : PFX files are PKCS#12 Personal Information Exchange Syntax Standard bundles. They can include arbitrary number of private keys with accompanying X.509 certificates and a certificate authority chain (set certificates). If you want to extract client certificates, you can use OpenSSL's PKCS12 tool. openssl pkcs12 -in input.pfx -out mycerts.crt -nokeys -clcerts The command above will output certificate(s) in PEM format. The ".crt" file extension is handled by both macOS and Window. You mention ".cer" extension in the question which is conventionally used for the DER encoded files. A binary encoding. Try the ".crt" file first and if it's not accepted, easy to convert from PEM to DER: openssl x509 -inform pem -in mycerts.crt -outform der -out mycerts.cer the simple way I believe is to import it then export it, using the certificate manager in Windows Management Console. If you're working in PowerShell you can use something like the follo...

Convert .cer To .p12

Answer : What works for me dealing with Push Notification certifies has been: Open the certificate: open my_filename.cer and click "View Certificates" to see the certificate's name Go to Applications -> Utilities -> Keychain Access Ensure you have selected the "login" keychain, not the "system" one (thanks to @Matt Flettcher ) Go to "Certificates" Look for the desired certificate Ensure that you can expand it and see under it the original ".certSigningRequest" used to generate the certificate At this moment you should be able to export it as ".p12" try this: given you have files as follow: aps.cer, downloaded from Apple. app.key, your own private key generated by openssl. 1st, convert the .cer file into .pem format: openssl x509 -in aps.cer -inform DER -out aps.pem -outform PEM 2nd, use the .pem file and your private .key to generate .p12 file: openssl pkcs12 -export -out aps.p12 -inkey app.key -in aps.pem ...