self-signed

Self-signed certificate: DNSName components must begin with a letter

孤街醉人 提交于 2019-11-30 13:58:13
问题 Is there a way for java's keytool to generate self-signed certificate with a wildcard in SAN (Subject Alternative Name)? I'm using this command to generate keystore: keytool -genkey -alias tomcat -storetype JKS -keyalg RSA -keysize 2048 -ext san=dns:*.example.com -keystore "path/to/my/keystore.jks" -validity 3650 But I get IOException: DNSName components must begin with a letter Obviously, the problem is *.example.com in SAN, but I don't see other way of generating self-signed certificate for

Objective-C: eveluate server certificate signed by our own PKI (root CA) on TLS TCP connection

对着背影说爱祢 提交于 2019-11-30 10:01:57
* solved * My problem is referencing to the following question: Objective-C: How to verify SecCertificateRef with signer's public key? We have an own PKI and so an own rootCA that we trust. With this rootCA we sign the certificates that are delivered to the personal servers. Now I want to connect with the iOS app and check if the cert that is delivered from the server is signed with our CA. My app should be able to connect to n servers with this certificates (maybe found with zero-conf service) using a TCP-connection, established by GCDAsyncSocket . I have the public part of the certificate in

Java: SSL Clientside Authentication with self-signed certificates

[亡魂溺海] 提交于 2019-11-30 08:14:11
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 to export client certificate and keytool -import -v -trustcacerts to import it into the server's

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

梦想的初衷 提交于 2019-11-30 07:02:50
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:didFailWithError:" gets called with the following error: Error Domain=NSURLErrorDomain Code=-1200 "An SSL error has occurred and a secure connection to the server cannot be made." UserInfo={NSURLErrorFailingURLPeerTrustErrorKey=<SecTrustRef: 0x150094100>, NSLocalizedRecoverySuggestion=Would you

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

痴心易碎 提交于 2019-11-30 06:56:30
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 keystore.txt -certreq -alias www.cia.gov -file req.pem openssl x509 -req -days 3650 -in req.pem -CA cacert.pem -CAkey cakey.pem -CAcreateserial -out reqsigned.pem

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

独自空忆成欢 提交于 2019-11-30 04:55:42
I have the following code (swift implementation): func connection(connection: NSURLConnection, canAuthenticateAgainstProtectionSpace protectionSpace: NSURLProtectionSpace) -> Bool { return protectionSpace.authenticationMethod == NSURLAuthenticationMethodServerTrust } func connection(connection: NSURLConnection, didReceiveAuthenticationChallenge challenge: NSURLAuthenticationChallenge) { if challenge.protectionSpace.authenticationMethod == NSURLAuthenticationMethodServerTrust { if challenge.protectionSpace.host == "myDomain" { let credentials = NSURLCredential(forTrust: challenge

Sign a JAR automatically when building from Netbeans

不想你离开。 提交于 2019-11-30 03:55:35
问题 I want to know if Netbeans has some option or setting that will allow me to automatically sign a jar as part of the build. 回答1: In your -post-jar ant target, it may be convenient to read the <signjar> password from a file, e.g. ~/.keyconf . Give the file user-only access: e.g. 400 or 600 . <loadfile srcfile="${user.home}/.keyconf" property="keyconf"/> <signjar alias="..." storepass="${keyconf}"> ... </signjar> 回答2: You could use the maven plugin for that. Netbeans is able to open and create

import self signed certificate in redhat

那年仲夏 提交于 2019-11-30 00:18:37
How can I import a self-signed certificate in Red-Hat Linux. I'm not an expert with respect to certificates and find it difficult to find the right answer through googling, since I don't know the difference between a .cer, .crt or a .pem. Having said that, what I would like to do should not be rocket science (In windows I can do this with a few clicks in my browser) I want to connect to a server that makes use of a self-signed certificate. For example using wget, without having to use the --no-check-certificate option. To make this work I will have to add the self-signed certificate of the

Is it possible to force the WCF test client to accept a self-signed certificate?

旧时模样 提交于 2019-11-29 23:59:20
I have a WCF web service running in IIS 7 using a self-signed certificate (it's a proof of concept to make sure this is the route I want to go). It's required to use SSL. Is it possible to use the WCF Test Client to debug this service without needing a non-self-signed certificate? When I try I get this error: Error: Cannot obtain Metadata from https:///Service1.svc If this is a Windows (R) Communication Foundation service to which you have access, please check that you have enabled metadata publishing at the specified address. For help enabling metadata publishing, please refer to the MSDN

Xcode 5 crashes with SVN version 1.7 - self signed certificate

坚强是说给别人听的谎言 提交于 2019-11-29 16:01:52
I've updated to XCode 5 today (using the Mac AppStore) and ever since it keeps crashing whenever I open my previous projects (that are working copies of repos located in my local SVN). The error report contains infos (IDESourceControlCredentialsValidator) that indicate that XCode has some issues with my SVN: Exception Type: EXC_CRASH (SIGABRT) Exception Codes: 0x0000000000000000, 0x0000000000000000 Application Specific Information: ProductBuildVersion: 5A1413 ASSERTION FAILURE in /SourceCache/DVTFoundation/DVTFoundation-3532/Framework/Classes/Protocols/DVTInvalidation.m:243 Details: