Questions tagged [self-signed]

Self-signed certificates are a type of security certificates that are signed by the same entity that actually uses the certificate.

Self-signed certificates are a type of security certificates that are signed by the same entity that actually uses the certificate. A self-signed certificate is usually signed by an own, custom generated private key. Usually, a public key is also available from the certificating authority - it provides the option for the user or organization to test it against the own private key which is used for signing.

798 questions
20
votes
1 answer

Java: SSL Clientside Authentication with self-signed certificates

I'm trying to secure a connection from a Java Client/Server application that communicates over the Internet. My idea was to use SSL sockets with self-signed certificates and client authentication. I did the following: Server: Keystore containing…
Chris
  • 203
  • 1
  • 2
  • 4
20
votes
3 answers

Check in the onReceivedSslError() method of a WebViewClient if a certificate is signed from a specific self-signed CA

I would like to override the onReceivedSslError() of a WebViewClient. Here I want to check if the error.getCertificate() certificate is signed from a self-signed CA and, only in this case, call the handler.proceed(). In pseudo-code: @Override public…
Dev
  • 7,027
  • 6
  • 37
  • 65
19
votes
1 answer

Angular https call to self signed uri failing with "net::ERR_CERT_AUTHORITY_INVALID"

I am using Angular http module to make a call to a https endpoint enabled by self signed certificate. The code is similar to what is showng below: export class AppComponent { constructor(private http: HttpClient) { } title = 'my-app'; …
shaiksphere
  • 285
  • 1
  • 4
  • 12
19
votes
4 answers

PHP - Swiftmailer using STARTTLS and self signed certificates

I'm trying to send an email with php and swiftmailer, using STARTTLS, but I'm getting a certificate error. I have root access to the SMTP server, and the certificate used is self-signed. I'm using Debian on both machines (web server and smtp…
David Ventura
  • 418
  • 2
  • 7
  • 20
18
votes
3 answers

Install self-signed certificates no longer working in Android Q

I have generated a self-signed certificate which I tried to install on my phone running Android 10, but a snack appears telling me that Private key required to install certificate. I have tried on a phone running Android 9 with the same certificate…
18
votes
1 answer

CORS request across different ports did not succeed on Firefox but works on Chrome

I'm making CORS requests from https://169.254.128.2:8443 to APIs served on https://169.254.128.2:8444 by lighttpd server. Lighttpd has CORS enabled with the following response headers but the OPTIONS request does not go through on…
Varsha Venugopal
  • 183
  • 1
  • 1
  • 6
18
votes
3 answers

Subject Alternative Name is not copied to signed certificate

I use self-signed CA cert to sign other certificates. For some certs I need to specify subject alternative names. I can specify them during request generation (openssl req ...) and I see them in .csr file. Then I sign it with CA cert using openssl…
4ybaka
  • 2,954
  • 4
  • 16
  • 21
17
votes
1 answer

How to trust self-signed localhost certificates on Linux Chrome and Firefox

I try to generate a self-signed certificate for a custom local domain pointing to 127.0.0.1: # /etc/hosts 127.0.0.1 subdomain.domain.local I've generated a self-signed certificate using openssl and remember that everything worked in the past. But…
fsenart
  • 5,661
  • 2
  • 35
  • 54
17
votes
4 answers

Powershell Invoke-RestMethod over HTTPS

I'm trying to communicate with a service over powershell but I am failing miserably. I suspect it is the certificate and I have googled for the answer and found two options, none of which worked for me. I have also tried to combine the two…
PatrikJ
  • 2,327
  • 3
  • 24
  • 35
17
votes
1 answer

HTTPS with Self-Signed SSL Certificate Issues... Solution or better way?

All I need to do is download some basic text-based and image files from a web server that has a self-signed SSL certificate. I have been trying to figure out how to use HttpClient to do this, but getting the SSL to work is a nightmare that seems to…
stormin986
  • 7,672
  • 15
  • 42
  • 54
17
votes
1 answer

What is the right .gitconfig syntax for http.sslCAInfo certificate for specific server?

I'm using a remote git repository via https, which has a self-signed certificate. To make git aware of the self-signed certificates, I have the following in my .gitconfig: [http] sslCAInfo = /home/user/myselfsigned.cert This works fine, but when I…
user923543
15
votes
3 answers

How to make browser trust localhost SSL certificate?

Although, there are similar questions, and even good answers, they either don't concern themselves with localhost specifically, or ask about one particular option/solution (self-signed vs CA). What are the options? How do they compare? Ho do I do…
x-yuri
  • 16,722
  • 15
  • 114
  • 161
15
votes
1 answer

.NET doesn't trust my self-signed certificate, but IE does?

I've got a self-signed certificate for testing in development. I've added it under the "Trusted Root Certification Authorities" folder in certificate manager, and when visiting the site under IE or Chrome it's accepted as valid (under Firefox it…
Chris Cooper
  • 869
  • 2
  • 18
  • 42
15
votes
2 answers

New-SelfSignedCertificate on Win2012 r2 has less parameters

I'm trying to create a self signed certificate with specific encryption parameter values. On a Win Server 2012 r2 standard running PowerShell 5.0, when I attempt to use New-SelfSignedCertificate I receive an error: New-SelfSignedCertificate : A…
Samer
  • 3,848
  • 4
  • 25
  • 24
15
votes
3 answers

How do I accept a self-signed SSL certificate using iOS 7's NSURLSession

I have the following code (swift implementation): func connection(connection: NSURLConnection, canAuthenticateAgainstProtectionSpace protectionSpace: NSURLProtectionSpace) -> Bool { return protectionSpace.authenticationMethod ==…
Carlos Cardoso
  • 315
  • 1
  • 2
  • 9
1 2
3
53 54