x509

How do I read the public key from a signed C# exe

我只是一个虾纸丫 提交于 2019-11-30 20:14:39
I'm signing a dot net exe using signcode.exe with an spc/pvk combo The file needs to read its own Public Key at runtime in order to verify some data. I've gone down a number of different avenues. I've tried X509Certificate executingCert = X509Certificate.CreateFromSignedFile(exe); executingCert is then null. I'm guessing signcode isn't creating an X509 signed file, though if there's a switch to change that I'm happy to go that way. edited Turns out the above does work.... I had my null check backwards (!= != ==) :) Assembly asm = Assembly.GetExecutingAssembly(); string exe = asm.Location;

How to create and install X.509 self signed certificates in Windows 10 without user interaction?

柔情痞子 提交于 2019-11-30 19:08:21
The problem Create and install temporary certificates to sign code in my development environment. This has to be done with an unattended script (without user interaction). The legacy script Right now, I have this script that creates the certificates using the deprecated tool makecert : makecert -r -pe -n "CN=My CA" -ss CA -sr CurrentUser -a sha256 -cy authority -sky signature -sv MyCA.pvk MyCA.cer certutil -user -addstore Root MyCA.cer certutil -addstore Root MyCA.cer makecert -pe -n "CN=My Company" -a sha256 -cy end -sky signature -ic MyCA.cer -iv MyCA.pvk -sv MySPC.pvk MySPC.cer pvk2pfx.exe

Sign git commit with x509 certificate in corporate environment

筅森魡賤 提交于 2019-11-30 18:53:21
问题 I have learned from the documentation that it is possible to sign git tags and commits. git config --global user.signingkey 0A46826A Docs: https://git-scm.com/book/en/v2/Git-Tools-Signing-Your-Work This works for GPG. Has somebody done something like this with X509 user certificates? It looks like GPG is not compatible or interchangeable with x509 pki certificates. Since this is in a corporate environment GPG is not a option. It would be great if somebody could share thoughts or experiences

OPENSSL - How to generate a proof of possesion for a X509 certificate?

喜你入骨 提交于 2019-11-30 16:58:24
I need to generate a proof of possession, signing a verification code with my private key. I did not find a question related to this, here in Stack Overflow, and I am not finding some reference on Internet. I am following this tutorial , but I want to use OpenSSL. My verification code is related to a X509 certificate, like this: 7A69A4702DA903A41C3A5BC5575A8E3F49BEC5E5BA2D4CE1 I got the answer with the Azure support team. I already had my root key and X509 cert, generated with the following command: openssl req -x509 -newkey rsa:2048 -keyout root_private.pem -nodes -out root_cert.pem Then, I

Certificate generated through CSR signing with BouncyCastle considered untrusted

喜你入骨 提交于 2019-11-30 16:28:52
I am struggling with the following issue: I have a CSR which I am signing with this code: @Override public X509Certificate signCSR( Reader pemcsr, int validityDays ) throws APIException { try ( PEMParser reader = new PEMParser( pemcsr ) ) { KeyStore keystore = getKeyStore(); Properties cryptoProps = getCryptoProperties(); String caKeyAlias = cryptoProps.getProperty( PROPERTY_KEYSTORE_CA_CERT_ALIAS ); String caKeyPassword = cryptoProps.getProperty( PROPERTY_KEYSTORE_CA_CERT_PASSWORD ); PrivateKey cakey = (PrivateKey) keystore.getKey( caKeyAlias, caKeyPassword.toCharArray() ); X509Certificate

Certificate with Extended Key Usage only works in Firefox

北城以北 提交于 2019-11-30 16:19:43
I tried to generate a self-sign certificate to my server for multiple domains. I used openssl basing in v3_req extension. I used this command line to generate certificate with multiple domain and extended key usage: openssl x509 -req -days 3650 -in san_domain_com.csr -signkey san_domain_com.key -out san_domain_com.crt -extensions v3_req -extensions mysection -extfile openssl.cnf It's result that my certificate contains the multiple domain but not the extended Key Usage for serverauth and the clientauth also my website is only accessible from Firefox. Does someone have idea about this? Thank

iPhone TrustStore CA certificates

|▌冷眼眸甩不掉的悲伤 提交于 2019-11-30 11:39:40
问题 Does any of you have a clue how to alter the contents of Security.framework/TrustStore.sqlite3 . It seems as if the iPhone uses it to store trusted CA certificates. I really want my iPod touch to trust my custom certificate. Beside that, does anyone of you know an app (win32) to edit sqlite3 database files (except sqliteman, this one always crashes for me). 回答1: If you have a webserver configured to serve up digital certificates with the correct mime-type then Safari on the iPhone will add

iOS MDM profile signing, which certificate to use?

纵饮孤独 提交于 2019-11-30 10:11:35
Okay, so look at this diagram . There are two little boxes, that signify how a given profile should be signed. In Phase 2, step 1, it says "Apple issued certificate", but it doesn't say which apple issued certificate (they issue more than one). I have tried my developer certificate and the MDM (APNS) certificate. It wasn't one of those. Is there a third magic certificate I somehow need (and how do I get it)? In Phase 3, step 2, it says "Identity certificate", but again it's a little sketchy on the details. The only identity certificate I know of is installed on the device, using the device's

Certificate path discovery in Java

送分小仙女□ 提交于 2019-11-30 09:47:21
问题 I try to make an https connection via java build-in functionality for that ( HttpURLConnection ). But I get this exception: javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target at com.sun.net.ssl.internal.ssl.Alerts.getSSLException(Alerts.java:174) ... ... My Certificate chain is: Root certificate -> Intermediate

Generating X509Certificate using bouncycastle X509v3CertificateBuilder

倖福魔咒の 提交于 2019-11-30 07:07:37
问题 I'm attempting to port JXTA to run on App Engine. Given that the BouncyCastle "BC" provider is not yet supported on App Engine, I have to port the existing JXTA code to generate a X509Certificate using white-listed classes. My knowledge of Crypto is minimal and i'm not certain that what i'm trying to accomplish is even possible. Here is the original code from PSEUtils.java from the JXTA project: PSEUtils.java There's a helper class which contains the java.security.cert.X509Certificate :