self-signed

How to create a self-signed certificate for a domain name for development?

怎甘沉沦 提交于 2019-11-27 05:45:56
I have subdomain.example.com that I use for development purposes. My web application solution contains a web API etc, that I need to call from external systems, hence I am not using localhost. I now need to test for SSL and need a certificate for my subdomain.example.com development domain name. I have tried creating a self-signed certificate as outlined in http://technet.microsoft.com/en-us/library/cc753127(v=ws.10).aspx , but this certificate only works for localhost. Can this certificate be used for my purpose or will I have to create a self-signed for my development subdomain? If I have to

How do I trust a self signed certificate from an electron app?

你说的曾经没有我的故事 提交于 2019-11-27 03:50:25
问题 I have an electron app that syncs with a server I own at a https://XXX.XX.XX.XXX:port that has a self signed certificate. How can I trust that certificate from my electron app? Right now I get: Failed to load resource: net::ERR_INSECURE_RESPONSE 回答1: You need to put the following code into your "shell" (core electron init) file: // SSL/TSL: this is the self signed certificate support app.on('certificate-error', (event, webContents, url, error, certificate, callback) => { // On certificate

Java: Overriding function to disable SSL certificate check

南楼画角 提交于 2019-11-27 03:27:53
The web service is rest over SSL and it has self signed certificate, hosted in remote system.I have already created a client accessing that web service. This is done by adding the certificate to the key store programatically . Now I heard that, it is not necessary to add certificate to key store for accesing a self signed web service. Instead we can disable the certificate check by overriding some methods. Is this true? Which are those methods? Please help. This should be sufficient. I use this when testing code against testing and staging servers where we don't have properly signed

How do I sign a Java applet for use in a browser?

北战南征 提交于 2019-11-27 02:46:17
I'm trying to deploy a Java applet on my website. I also need to sign it, because I need to access the clipboard. I've followed all the signing tutorials I could find but have not had any success. Here is what I've done so far: Wrote an applet in NetBeans. It runs fine in the applet viewer. Made a .jar file out of it. Created a certificate by doing this: keytool -genkey -keyalg rsa -alias myKeyName keytool -export -alias myKeyName -file myCertName.crt Signed it wtih jarsigner like this: jarsigner "C:\my path\myJar.jar" myKeyName Made an html file containing this: <html> <body> <applet code="my

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

别来无恙 提交于 2019-11-27 01:22:05
问题 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 void onReceivedSslError(WebView view, SslErrorHandler handler, SslError error) { SslCertificate serverCertificate = error.getCertificate(); if (/* signed from my self-signed CA */) { handler.proceed(); } else { super.onReceivedSslError(view,

How to use SSL with a self-signed certificate in groovy?

依然范特西╮ 提交于 2019-11-27 01:10:43
问题 I have some resources I must access with SSL that use self-signed certificates. In general, most tools have a simple setting to allow these to be accessed without error or just a warning. However, it seems like the proper way to do this with the JVM is to import the signing certificate into a keystore as a CA. I have a groovy script I'd like to use, but I'd prefer my script to work standalone on any any JVM without modifying the keystore or distributing a new keystore. Is there a simple way

How to export private key from a keystore of self-signed certificate

佐手、 提交于 2019-11-27 01:00:00
问题 I just created a self-signed certificate on a linux box running tomcat 6. I created the keys like this, valid for 10 years: keytool -genkey -alias tomcatorange -keyalg RSA -validity 3650 and copied the keystore into a folder in tomcat, and updated server.xml to point at the keystore. Now my network admin is asking for the both the public and private key ( for our load balancer) I can generate the public key using: openssl s_client -connect mydomain.com:8443 But how can I export/retrieve the

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

…衆ロ難τιáo~ 提交于 2019-11-27 00:31:20
问题 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 be way too much trouble for such a simple task. Is there a better way to perform these file downloads? Perhaps through a WebView or Browser feature? Reinventing the wheel of making a simple HTTPS GET request is a major pain, and is significantly

git 2.20.1.windows.1 does not honor http.sslverify=false

不羁岁月 提交于 2019-11-26 23:07:29
After the latest update (in fact, I did a new install) of git for Windows I cannot connect to a specific remote repository any longer via https. It's on an in-house server which uses a self-signed certificate which has also been expired for a while (don't ask). It used to work with git for Windows 2.16.x (iirc) and continues to work with parallel installations in cygwin and mysys2 (which report version 2.17.0 and 2.20.1, respectively). Here is what I tried (not all at the same time): I have set the configuration option http.sslverify=false in all locations reported by git config -l --show

unsigned APK can not be installed

我的梦境 提交于 2019-11-26 21:53:22
I am trying to distribute my application to some people for testing. I have installed it on my Desire directly from eclipse and it works fine. To create an APK-file, I choose "Export Unsigned Application Package" directly from eclipse, and then an APK file was created. I emailed it to myself and downloaded the file to the SD-card. But when I try to install it (using ES File Browser), I get a message saying "Application not installed" . (I have already checked the "Allow installation of non-Market application" on my phone) Any ideas? Yeah I found the problem, see my answer below: I did not know