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

Loading X509Certificate from Azure KeyVault

We have a web application hosted in Azure that we use to load certificates from KeyVault to be used for encryption and authentication with other services. After reading the value from KeyVault, we're creating the certificate like this: return new…
Tom
  • 1,561
  • 4
  • 20
  • 29
1
vote
1 answer

Binary Security Token from p12 vs Binary Security Token from jks

I need to obtain the BinarySecurityToken to authenticate to Soap WebApi, I know that BinarySecurityToken is certificate content encoded in Base64. When I test api in SoapUI the Binary sec token is generated from jks file from my certificate,…
john.kernel
  • 332
  • 3
  • 16
1
vote
2 answers

X509Certificate rawData

I am working with X509Certificate (.pfx file) for jwt tokens. There is a parameters in the X509Certificate2 called as RawData. I understand that this contains the publicKey for sure and also some other metadata information about the certificate. I…
V. G.
  • 429
  • 1
  • 5
  • 18
1
vote
1 answer

WCF rejects messages with additional signed elements

We have a WCF 4.0 service over https that allows the client to sign the message to identify themselves. We can then use the cert to give the client the proper rights on the back end. This works fine when a WCF 4.0 client sends the request, but when…
Shawn Hubbard
  • 932
  • 10
  • 23
1
vote
2 answers

Is the SSL Certificate in a web-browser for a web app the same as the SAML 2.0 security cert?

This might not be a very intelligent question, but I have done my homework of looking around for the answer and I cannot seem to find it. I am still to new to use SAML terms in this post, so I will define below how I am using them. Authentication =…
Geo
  • 8,663
  • 13
  • 63
  • 93
1
vote
1 answer

Convert PEM string to PFX file to load in X509Certificate in C#?

I have PEM string for private key. Wanted this to be loaded in x509Certifcate in private Key section? ----BEGIN PRIVATE…
1
vote
1 answer

How to check if public X509Certificate is trusted

I've signed XML which I validate by code below 1.0.2 454589
koa73
  • 861
  • 2
  • 10
  • 27
1
vote
1 answer

Azure certificates and certificate revocation lists (CRL)

All, Does anyone have a best a view on best practice for CRL usage on Azure? Background: Azure hosted service that uses Client certificates for authentication. We have a CA (that we own, manage and trust) and issue a chained certificate to a client…
1
vote
1 answer

How to associate certificate information to already signed data?

I am trying to add digital signature to pdf document using pdf-box library (v2.0.8). I am receiving already signed content from a webservice (signed with only private key). Now I would need to associate certificate information to this signed data so…
1
vote
1 answer

Problems loading a pfx file programmatically

I am trying to create a self-signed certificate and then reading it at some point. This is the code for creating the pfx file: (source) public static void CreateSelfSignedCertificate(string subjectName) { string…
iliyan tanev
  • 377
  • 2
  • 15
1
vote
1 answer

"java.security.cert.CertificateException: No name matching localhost found" not able to resolve on Ubuntu 16.04 LTS

I'm trying to access a remote server from my Ubuntu 16.04 LTS. I have mapped the remote server IP to "localhost:60000". I'm able to access the server via web browser as well as CURL commands. I'm getting the response as expected. Unfortunately,…
1
vote
1 answer

TLS on Embedded Jetty without JKS

My goal: I am working on an integration of Jetty Embedded that would make it simple to use. The interface would allow, among others, for integration of external sources for TLS certificates, without the use of the Java KeyStore. This would allow for…
Janos Pasztor
  • 1,265
  • 8
  • 16
1
vote
1 answer

Java JDBC Public Key connection failed with: "unable to find valid certification path to requested target"

I would like to allow a connection from a java client. This Java client needs to support multiple public keys for different DB's. I must do it with a PUBLIC KEY and MUST NOT trust server certificate. I have searched online but could not find a full…
2Big2BeSmall
  • 1,348
  • 3
  • 20
  • 40
1
vote
1 answer

Importing Certificate with private key

I am trying to import a certificate with a private key and although my script is "working" it is missing something which I can't seem to figure out. I have an app which talks to KeyVault and uses this certificate for authorization. I have the…
Dr Schizo
  • 4,045
  • 7
  • 38
  • 77
1
vote
1 answer

NPE when trying to generate a certificate

I'm getting the following error when trying to generate an X509 certificate on android java.lang.NullPointerException: Attempt to invoke virtual method 'java.security.PublicKey java.security.cert.X509Certificate.getPublicKey()' on a null object…
Noel Omondi
  • 551
  • 1
  • 6
  • 23