x509certificate

java.security.cert.CertificateParsingException: signed fields invalid

半城伤御伤魂 提交于 2020-08-24 09:18:28
问题 I'm trying to read a X509 certificate FileInputStream fr = new FileInputStream("suresh.pfx"); CertificateFactory cf = CertificateFactory.getInstance("X509"); X509Certificate c = (X509Certificate) cf.generateCertificate(fr); And run in to the exception java.security.cert.CertificateParsingException: signed fields invalid at sun.security.x509.X509CertImpl.parse(Unknown Source) at sun.security.x509.X509CertImpl.<init>(Unknown Source) at sun.security.provider.X509Factory.engineGenerateCertificate

How verify eToken X509Certificate in C#

旧街凉风 提交于 2020-07-23 06:17:26
问题 I'm trying to retrieve a X509Certificate from an eToken Pro 72K and verify It's authenticity. I have been able to see the certificate is present the X509Keystore.Certificates with the eToken inserted using the Keystore as new X509Keystore(StoreName.My, StoreLocation.CurrentUser) . I have a hard-coded certificate that I turn into a X509Certificate2 as: //C# code //HardCoded private const string CERTIFICATE = "-----BEGIN CERTIFICATE-----

How verify eToken X509Certificate in C#

会有一股神秘感。 提交于 2020-07-23 06:16:26
问题 I'm trying to retrieve a X509Certificate from an eToken Pro 72K and verify It's authenticity. I have been able to see the certificate is present the X509Keystore.Certificates with the eToken inserted using the Keystore as new X509Keystore(StoreName.My, StoreLocation.CurrentUser) . I have a hard-coded certificate that I turn into a X509Certificate2 as: //C# code //HardCoded private const string CERTIFICATE = "-----BEGIN CERTIFICATE-----

How to create certificate object from public key in PEM format?

假装没事ソ 提交于 2020-06-29 05:46:12
问题 I want to use iText to embed signed hash and public in PDF. As per arguments to sign method in iText 7 I need to pass certificate chain, How can I create this certificate object directly from public key string? Update 1 Below is small c# code. You can see I am trying to get x509 certificate from public key. This certificate will be used to verify the signed data from corresponding private key. Also it will be used to embed this public certificate and signed hash into PDF for digital signature

Does Service Fabric application deployment fail, because the certificate does not have a password?

微笑、不失礼 提交于 2020-06-29 05:06:17
问题 I have an Azure pipeline, which works pretty well with a self-signed certificate: It deploys (via ARM templates) Redis, CosmosDB, EventHub, Keyvault, then imports the self-signed certificate into the Keyvault, then deploys SF cluster and configures it with the certificate. Finally the pipeline deploys our team's application with the following task: - task: ServiceFabricDeploy@1 displayName: 'Deploy SF app' inputs: applicationPackagePath: '$(Build.BinariesDirectory)\Release\Applications

Why does SSL connection fails when using intermediate CA?

女生的网名这么多〃 提交于 2020-06-29 04:25:07
问题 Given stackoverflow.com cert chain as follows: Builtin DST Root CA -> Let's encrypt intermediate CA -> *.stackexchange.com Is it possible to make a TLS connection using intermediate CA as trusted CA? curl https://stackoverflow.com -v --cacert stack_intermediate_ca.pem --capath /dev/null -o /dev/null curl: (60) SSL certificate problem: unable to get issuer certificate Is it because the intermediate CA is presented in the server chain during TLS handshake? Or do all certs in chain have to be