Questions tagged [x509certificate]

X509Certificate is the name of .NET and Java classes for handling X.509 certificates.

X509Certificate is a class for handling X.509 certificates in .NET (MSDN Entry) and in Java (Javadoc).

3174 questions
1
vote
2 answers

Include CA certificate in C# code

I want to include CA certificate in a resource file (Resources.resx) and, once read as a byte stream is provide to the X509Certificate constructor class. CA certificate is in .der format. I have added the .der file to Resources folder of the…
Spark
  • 33
  • 1
  • 8
1
vote
1 answer

How to specifiy the TLS version for an x509 Certificate

I am developing an application that communicates with a server through a secure communication. So the user of the application should choose a client certificate file (x509 certificate) i want to add the possibility for the user to specify the TLS…
K.chaa
  • 65
  • 11
1
vote
1 answer

Possible MongoDB and HttpUrlConnection resource conflict?

I have created a Java WebSocket Jetty server who uses an API to retrieve some data using HttpUrlConnection(). I also have a MongoDb instance running in a docker container listening to port 27017. When running the server I create a connection with…
1
vote
1 answer

Signing xml document with a installed X.509 certificate

I am having trouble signing an xml docuemnt with an installed certificate. I have tried with the certificated installed in the LocalMachine, CurrentUser, and Initialize instance of X509Certificate2 using the certificate file (.pfx). Each has its own…
1
vote
1 answer

How to get SSL certificate (X.509) relevant to HTTPS request in REST controller running under Spring boot?

I have Spring Boot REST controller that uses mutual HTTPS authentication with keystores on both server and client side. The server side has the controller class with @RequestMapping. HTTPS between server and client seems otherwise working…
Audrius Meškauskas
  • 20,936
  • 12
  • 75
  • 93
1
vote
2 answers

How to Decode JWT RS256 token using .cer file Provided?

I converting Certificate to publickey and passing to JwtConsumer using below Code: jwt =…
Balu mallisetty
  • 603
  • 9
  • 19
1
vote
0 answers

Python SSL client certificate

I am trying to use client side certificates for authentication in Python, but I just can't figure it out. I am using this for my testing: https://blog.cloudflare.com/introducing-tls-client-auth/ (Skip to "TLS Client Authentication On The Edge" for…
Nathan Williams
  • 764
  • 1
  • 6
  • 16
1
vote
0 answers

How to make https certificate for local web server?

I make a web server run Apache - MySQL - PHP on Ubuntu (LAMP). My web server run local only, like web page config for wireless router,... Then I want to make my webpage run https. And I follow this tutorial, it worked for me but just have a…
ThanhLam112358
  • 878
  • 1
  • 20
  • 51
1
vote
1 answer

Failing openssl_public_encrypt

When I'm encrypting a variable where I put some text in it, it's working, but if I'm using a variable where I'm assigning to the $output this: $data1 = new DOMDocument("1.0", "utf-8"); //creating the xml document ... //after creating the…
1
vote
1 answer

npm install x509 not working on windows 10

I am facing issue with installing npm module "x509". But getting error. I am using my Angular APP to read some x509 cert for fecthing subject info. K:\Codes\AWS\REPOS\UI\utilities\configrestui\node_modules\x509>if not defined…
Slok
  • 576
  • 1
  • 12
  • 27
1
vote
1 answer

Openssl X509 cert get string human readable

I have a client/server architecture in which I use the openssl library to implement an encrypted communication (TLSv1.2). Since I'm using "self signed" certificates, in order to verify server's identity, my idea is to put in the client side a…
stackpic91
  • 189
  • 2
  • 4
  • 13
1
vote
2 answers

Generate X.509 (non self signed) Client Certificate Programmatically

Is it possible to generate a client certificate on-the-fly in ASP.NET without using makecert.exe? the generated certificate should be signed with a given CA certificate (the specific CA certificate is saved on file system and selected at runtime).…
soguy
  • 265
  • 1
  • 3
  • 10
1
vote
1 answer

Decode X509Certificate2's Serial Number?

With the sample "Self Signed Certificate" in X509Certificate format, I'm looking at the Certificate's Serial Number. I couldn't figure out what 'encoding type' or 'converstion type' is being used, or how it's being used. The Serial Number is…
fletchsod
  • 3,560
  • 7
  • 39
  • 65
1
vote
1 answer

Add a Certificate to an Azure App Service for Calling an External API

I'm calling an external API from within my App Service. This API is secured with a Thwate certificate which doesn't seem to be installed into the App Service's certificate store by default. Therefore I can't connect to the external API. How can I…
1
vote
1 answer

Powershell Invoke-RestMethod Call using Windows store certificate (Basic Authorization ?)

I would like to call a remote Rest web service from a Windows server hosting the remote certificate. I've exported the certificate from the remote server and added it to the Windwos store. (/Personal/myCert) I would like to use it on a…
Johny E
  • 25
  • 2
  • 6