self-signed

javax.net.ssl.SSLHandshakeException: Received fatal alert: unknown_ca

隐身守侯 提交于 2019-11-29 15:34:00
问题 I have to connect to a server via SSL dual authentication. I have added my own private key plus certificate to a keystore.jks and the self signed certificate of the server to a truststore.jks , both files are copied to /usr/share/tomcat7. The socket factory used by my code is delivered by the following provider: @Singleton public static class SecureSSLSocketFactoryProvider implements Provider<SSLSocketFactory> { private SSLSocketFactory sslSocketFactory; public SecureSSLSocketFactoryProvider(

Is it useless to sign my Windows application with a self signed certificate?

妖精的绣舞 提交于 2019-11-29 12:54:18
I have coded an NWjs Windows application (Chromium application) and using Inno Setup, I have signed it using a self-signed certificate. However, I get the "Windows protected your PC" message when trying to install it from the web. I wonder now if signing my application with this self-signed certificate is useless because I get the same result when I don't sign the application and package it as it is. When I click "more info" it states that the publisher is unknown in both cases when I sign the application with a self-signed certificate and without a self-signed certificate. I wonder if after

Java: SSL Clientside Authentication with self-signed certificates

陌路散爱 提交于 2019-11-29 11:19:41
问题 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 new self-signed certificate. keytool -genkey -kelalg RSA ... Client: Keystore containing new self-signed certificate. keytool -genkey -kelalg RSA ... Server: Truststore containing exported client certificate (from bullet point above). keytool -export

Making HTTPS request in iOS 9 with self-signed certificate [closed]

你离开我真会死。 提交于 2019-11-29 08:49:19
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 2 years ago . I want to make an HTTPS request to custom server with self-signed certificate. I'm using NSURLConnection class and processing authentication challenges, but always receive error message in a console: NSURLSession/NSURLConnection HTTP load failed (kCFStreamErrorDomainSSL, -9802) then method "connection

How to generate, sign and import SSL certificate from Java [duplicate]

家住魔仙堡 提交于 2019-11-29 07:33:00
问题 This question already has answers here : Closed 6 years ago . Possible Duplicate: Generate certificates, public and private keys with Java I need to generate a self signed certificates at run time, sign them and import to the Java keystore. I can do this using "keytool" and "openssl" from command line in the following way: keytool -import -alias root -keystore keystore.txt -file cacert.pem keytool -genkey -keyalg RSA -keysize 1024 -alias www.cia.gov -keystore keystore.txt keytool -keystore

Spring 5 WebClient using ssl

。_饼干妹妹 提交于 2019-11-29 02:02:24
I'm trying to find examples of WebClient use. My goal is to use Spring 5 WebClient to query a REST service using https and self signed certificate Any example ? See example of use insecure TrustManagerFactory that trusts all X.509 certificates (including self-signed) without any verification. The important note from documentation: Never use this TrustManagerFactory in production. It is purely for testing purposes, and thus it is very insecure. @Bean public WebClient createWebClient() throws SSLException { SslContext sslContext = SslContextBuilder .forClient() .trustManager

Can I install self-signed drivers on 64-bit Windows without test mode if the self-signed CA root certificate is imported to the machine store?

和自甴很熟 提交于 2019-11-29 01:50:24
问题 Here is a great SO answer which covers the creation of self-signed CA and then signing executables with the obtained certificates: How do I create a self-signed certificate for code signing on Windows?. I have read a lot of discussions online on how the driver signing works and the answer seems to be almost unequivocally that you can't load unsigned or self-signed drivers without having the test mode enabled. However, the answer I linked to and especially one comment by Roger Lipscombe seems

add or create 'Subject Alternative Name' field to self-signed certificate using makecert

十年热恋 提交于 2019-11-28 22:48:30
How can I create a certificate using makecert with a 'Subject Alternative Name' field ? You can add some fields eg, 'Enhanced Key Usage' with the -eku option and I've tried the -san option but makecert doesn't like it. This is a self-signed certificate so any method that uses IIS to create something to send off to a CA won't be appropriate. Makecert doesn't appear to support SANs so I created a certificate with SANs for use with IIS using OpenSSL. Check out my post about it. http://andyarismendi.blogspot.com/2011/09/creating-certificates-with-sans-using.html An even easier way is to use the

Android SSL HTTP Request using self signed cert and CA

心已入冬 提交于 2019-11-28 20:52:02
I have an android application that is connecting to an SSL web service that we host. The Web server is apache and has its own CA that we created and a self signed SSL certificate. I have imported our CA certificate onto the Android tablet in the User Trusted certificates section in Security. I have tested access to the web server and can confirm that the web service certificate shows as valid (screenshot below) Here is the certificate in the security settings: Now when I try and access the webservice in my application I get the "No Peer Certificate" exception being triggered. This is the SSL

How to create a working trusted and or self-signed certificate for a Windows 10 UWP application via Visual Studio 2019, 2017 and 2015

半城伤御伤魂 提交于 2019-11-28 20:43:47
Per this documentation: https://docs.microsoft.com/en-us/windows-hardware/drivers/devtest/makecert The following command describes creating a windows cer-file (i.e. a certificate from a trusted provider.) The issue with this is that when building an application in visual studio 2017 it only allows, via the package.windows10.appxmanifest, a pfx file. when updating the this command line reference it doesn't produce a pvk file so one needs to add MakeCert -r -pe -ss PrivateCertStore -n "CN=Contoso.com(Test)" testcert.cer additional command line options such as /sv SubjectKeyFile which will