Questions tagged [x509certficiate2]

11 questions
2
votes
1 answer

What to do when Azure Key Vault rejects certificate and says: Unsupported key operation(s): "wrapKey", "unwrapKey"

I am trying to generate X509 certificates in C# code (using the X509Certificate2 class) and upload them to an Azure Key Vault. I have found out that if my certificate contains the flag X509KeyUsageFlags.KeyEncipherment, the vault will reject the…
Claus Appel
  • 1,015
  • 10
  • 28
2
votes
0 answers

How do I get a cert from a pfx

I'm developing an android app for a client (this is the first time I do this) and I need to entablish a secured connection, they gave me a pfx file but I have no password nor any data about this cert, I'm totally new to certificates and https…
AtKiba
  • 31
  • 3
1
vote
0 answers

How to add extended key usage string when generating a self-signed certificate using openssl

I am using open ssl on 'windows 2012R2' to generate a self-signed certificate. Using the command below I can generate the certificate, openssl req -new -x509 -key ab.key -out ab.crt. However, I need to add an extended key usage string Server…
ashish gupta
  • 135
  • 5
  • 16
1
vote
1 answer

How to access the most recent cerificate among 2 certificates with same common name in c#

How to access the most recent certificate or the certificate that will expire later among 2 certificates which has the same common name from the windows certificates store in c#. I am using X509Store.Certificates.Find to get the certs, but it…
biswpo
  • 771
  • 7
  • 23
0
votes
0 answers

FluentFtp validate server cert against fingerprint

I have a powershell script using WinScp that allows me to authenticate the server cert against a fingerprint stored as a string "a1:ec:72:18:8b:c3:dc:12:9b:77:b0:6d:f4:c1:a6:cf:db:47:8f:66:66:15:14:39:c4:62:85:a7:b2:73:f7:93" I am attempting to…
Hecatonchires
  • 1,009
  • 4
  • 13
  • 42
0
votes
0 answers

NodeJS axios fails with self sign certificate while cURL succeeds with same "ca bunlde"

I am trying to use nodejs with axios library. I use the following code to query some URL: const tryAxios = async () => { const httpsAgent = new https.Agent({ ca: `${await fs.promises.readFile('/etc/tal_the_king/something.pem', {…
Saar YOffe
  • 33
  • 1
  • 5
0
votes
1 answer

Certificate installation (Linux)

I'm not a linux user, so there's a problem with certificate importing. I have couple of .cer files and using windows it worked perfectly, i just used X509Store.Add() method and a new certificate appears in the store, but in linux nothing happens. Is…
wewordash
  • 11
  • 4
0
votes
1 answer

Client certificate gets "The request was aborted: Could not create SSL/TLS secure channel"

A few years ago I worked through getting our code to include a client certificate. (see the last post on Elasticsearch NEST HttpClientHandler Certificate). I am trying to use the same code in another project, but it is failing…
John
  • 239
  • 4
  • 12
0
votes
1 answer

How can I import a SHA1 cert into Keystore as PrivateKeyEntry Type instead of trustedCertEntry

I do have a Jks file (key.jks) in which an existing SHA1 certs(server.cer) with the alias name abc .The certrficate are expired and I have to renew this with the new certs I got . The previous entry was with the entrytype PrivateKeyEntry .I have…
Liam
  • 3
  • 1
-1
votes
1 answer

Which is the right subordinate Certificate Authorities (CAs) utilized by Azure while connecting to the IoT Hub?

This question is regarding the critical changes to the certificate (Baltimore to DigiCert migration) As per https://techcommunity.microsoft.com/t5/internet-of-things-blog/azure-iot-tls-critical-changes-are-almost-here-and-why-you/ba-p/2393169 , we…
kudlatiger
  • 3,028
  • 8
  • 48
  • 98
-1
votes
1 answer

X509Certificate get private key expiration date

I didn't find the way how to get the private key expiration date from X509Certificate2. Is it possible with .NET or maybe I should use some third party libs to get this information?
Andrey
  • 65
  • 1
  • 8