"Key usage violation in certificate" error with Subversion, VisualSVN Server - eclipse

I'm using Eclipse (Indigo) with subclipse 3.6 in Ubuntu 11.10.
I've connected to the svn with subclipse on other machines before no problem, but with my recently upgraded ubuntu machine (went from 11.04 to 11.10) it won't work.
when I try to connect to my private svn server (VisualSVN Server in Windows), I get the following error:
RA layer request failed
svn: OPTIONS of 'https://76.27.122.123/svn/brock':
SSL handshake failed: SSL error: Key usage violation in certificate has been detected. (https://76.27.122.123)
Key usage violation in certificate
So, googled it, and found this solution: http://andrewbrobinson.com/2011/11/01/fixing-ssl-handshake-failed-ssl-error-key-usage-violation-in-certificate-has-been-detected-error-on-svn-checkout/
Which basically says that because neon is now using GnuTls, and it is being strict and rejecting my invalid certificate (like I said it's a private svn so it is untrusted).
But when I do the mv and symbolic link commands, it then messes up my JavaHL setup, and gives me this error:
Failed to load JavaHL Library.
These are the errors that were encountered:
no libsvnjavahl-1 in java.library.path ...
I undid the mv command and now the JavaHL is working after following instructions I found here http://subclipse.tigris.org/wiki/JavaHL#head-5ccce53a67ca6c3965de863ae91e2642eab537de but still can't get past the key usage certificate error. Any ideas??

During the initial setup VisualSVN Server 2.5 generates a self-signed certificate and adds it to the Trusted Root Certification Authorities store on the local machine. To avoid possible security issues, VisualSVN Server makes this self-signed certificate to be valid for server authentication only (by specifying the 'Key Usage' extension).
Subversion clients built against GnuTLS don't recognize such certificate and the error occurs.
Possible workarounds:
Sign certificate using trusted certification authority (recommended)
Use VisualSVN Server workaround to generate a cerificate without specifying 'Key Usage' extension. See KB56 for detailed instructions.
Configure eclipse to use Neon with OpenSSL instead of GnuTLS

Alternatively you might add
alias svn='LD_PRELOAD=/usr/lib/libneon.so.27 svn'
to your .bashrc, so only the svn command would be affected by the libneon change, and not the other packages. Also be careful that the solution mentioned in your link will break under Ubuntu 12.04 LTS. For that you have to use these steps:
Uninstall the current libneon package:
sudo apt-get remove libneon27
Download the latest libneon package from http://packages.debian.org/squeeze/libneon27 (at the bottom you can choose the right version for your architecture).
Install the required libssl dependency:
sudo apt-get install libssl0.9.8
Install the downloaded libneon package. E.g. for the 64Bit architecture:
dpkg -i libneon27_0.29.3-3_amd64.deb
Add
alias svn='LD_PRELOAD=/usr/lib/libneon.so.27 svn'
to your .bashrc, and relogin.
Source: http://www.yeap.de/blog2.0/archives/260-Subversion-Certificate-Problems-with-Ubuntu-Precise-Pangolin.html

Related

How to fix "Received fatal alert: handshake_failure" error when installing Erlide in Eclipse

I've just installed Eclipse IDE for Enterprise Java Developers, version 2019-06 (4.12.0) and am trying to add the Erlide plugin.
There are two ways to go about it:
Help -> Install New Software. Following instructions on the site https://erlide.org/articles/eclipse/120_Installing-and-updating.html#update_sites, I put "https://download.erlide.org/update" as URL.
... or ...
I try to install it through the Eclipse Marketplace:
Help -> Eclipse Marketplace. Here I search for "Erlide" and the choose "install".
In both cases it comes down to the same error:
Unable to read repository at
http://download.erlide.org/update/compositeContent.xml.
Received fatal alert: handshake_failure
I would like to ask for help regarding this matter.
Thank you,
Rui
This is a known issue. See Erlide issue #328, comment by villiros:
I run into the same problem. Turned out that the cypher suites
required by the server were not allowed by the Java installation
because of export control stuff.
The solution for me was to install the JCE Unlimited Strength Policy.
Upgrading Java 8 to Update 161 or higher might also be a solution, since in this update support for the TLS session hash and extended master secret extension (RFC 7627) in the JDK JSSE provider has been added (see JDK 8u161 Update Release Notes, section Added TLS session hash and extended master secret extension support).

Unable to add WAS 8.5 in RSA 9.1

I am unable to add Websphere (WAS) 8.5 in Rational Software Architect (RSA) 9.1 from New->Server in Rational Software Architect. It is asking for Installation Directory. I am not getting which path I have to give.
I tried in giving some random path, and error message gets popup 'The WebSphere Application Server installation directory is not correct.' Please help.
You may find this IBM KnowledgeCenter topic helpful. RSA is prompting you for the installation root of the app server. The default location for Linux is /opt/IBM/WebSphere/AppServer/, for Windows C:\Program Files\IBM\WebSphere\AppServer.
I had install RSA 9.1 but not WAS 8.5. Because of this, this issue is persisting.
After installing WAS8.5, we can give path C:\Program Files\IBM\WebSphere\AppServer in the installation directory and hence can create new server.

Bluemix Secure Gateway

I want to install Secure Gateway client on RHEL7 but I'm getting this error:
file / from install of ibm-securegateway-client-1.6.1-2.x86_64 conflicts with file from package filesystem-3.2-20.el7.x86_64
[root#vm24x50 ibm_stuff]# rpm -ivf ibm-securegateway-client-1.6.1+client_x86_64.rpm
Preparing packages...
file / from install of ibm-securegateway-client-1.6.1-2.x86_64 conflicts with file from package filesystem-3.2-20.el7.x86_64
Any ideas how I can go solve this?
Thanks
When installing the Secure Gateway Client on RHEL 7, you must provide the --force option with the installation command. The documentation for installing on RHEL can be found here.

Cannot connect to secure TFS 2015 server with Rad (Eclipse)

Using RAD 8.5.5.2 with the latest TFS plug-in on Windows 7 Professional
I get the following error when I attempt to connect to our secure TFS 2015 server. RAD 8.5.5.2 uses the Eclipse 3.6.3 platform.
Connection Failed
com.ibm.jsse2.util.j: PKD( path building failed:
java.security.cert.CertPathBuilderException: PKD(CertPathBuilderImpl
could not build a valid CertPath.; internal cause is:
java.security.cert.CertPathValidatorException: The certificate issued
by CN=State of Missouri, DC = state, DC = mo, DC=us is not trusted;
internal cause is:
java.security.cert.CertPathValidatorException: Certificate chaining error
RAD is installed in C:\Program Files\IBM\SDP and is running as an
administrator. I have imported the TFS server root certificate in
every carets file in the installation files which are
C:\Program
Files\IBM\SDP\runtimes\updi_v7X_64\uninstall\java\lib\security\cacerts
C:\Program
Files\IBM\SDP\runtimes\updi_v7X_64\java\jre\lib\security\cacerts
C:\Program
Files\IBM\SDP\runtimes\base_v7_stub\java\jre\lib\security\carets
C:\Program Files\IBM\SDP\runtimes\base_v7\java\jre\lib\security\carets
C:\Program Files\IBM\SDP\jdk\jre\lib\security\cacerts
I am trying to connect with no server running and no projects in the
workspace so I think the only file which needs the TFS root certificate
is C:\Program Files\IBM\SDP\jdk\jre\lib\security\cacerts but when that
did not fix the issue I imported the certificate into the other cacerts
files. I also imported the root certificate to my PC.
It looks like your server is using a custom SSL that is not in the certificate chain for Java. You need to add it...
https://docs.oracle.com/javase/tutorial/security/toolsign/rstep2.html
You have to use Keytool to get your companies root certificate into the store.
Do you have a WAS server installed in the workbench? Wondering if this is related to this problem
http://www-01.ibm.com/support/docview.wss?uid=swg1PI41436
If so then delete the WAS server from the Servers view, restart RAD, connect to TFS and then add WAS server again in Servers view.
If I recall correctly, this problem was solved on RAD 9.1.
Hope this helps.
Your Eclipse version 3.6.3 is out of date. To connect TFS 2015, suggest you to update the RAD version and Eclipse version to latest.
For the old Eclipse version, there has some issues with the default proxy detection. Try to go to Window -> Preferences -> General -> Network Connections and set Proxy to anything other than Native. Such as Direct, Or yo Manual and configure your proxy settings manually.

Can't install Jekyll on Mac - trying to set up Github Blog

I sucessfully installed Ruby, version 1.8.7 and have been trying to install Jekyll in the Terminal using sudo gem install jekyll. Here's the error I get:
ERROR: While executing gem ... (Gem::FilePermissionError)
You don't have write permissions into the /Library/Ruby/Gems/1.8 directory. unknown68a86d3f981e:~ srb_1974$ sudo gem install jekyll
Building native extensions. This could take a while... ERROR: Error
installing jekyll: ERROR: Failed to build gem native extension.
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby
extconf.rb mkmf.rb can't find header files for ruby at
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/ruby.h
Gem files will remain installed in
/Library/Ruby/Gems/1.8/gems/fast-stemmer-1.0.1 for inspection. Results
logged to
/Library/Ruby/Gems/1.8/gems/fast-stemmer-1.0.1/ext/gem_make.out
I've read a bunch of topics, but can't get anything to work. Many topics say I have to have XCode first, but it won't even download, much less install. I read that in Lion you have to set up another administrator and install it under that profile, so I did that, but the install package doesn't exist. It won't even download. I think this may be because I'm not a registered Apple Developer?
Another recommendation was that I install Ruby RVM - this also won't install. Here's the command I used: bash < <( curl https://rvm.beginrescueend.com/releases/rvm-install-head )
And here's the error I get:
% Total % Received % Xferd Average Speed Time Time Time
Current
Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:--
--:--:-- 0 curl: (60) SSL certificate problem, verify that the CA cert is OK. Details: error:14090086:SSL
routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed More
details here: http://curl.haxx.se/docs/sslcerts.html
curl performs SSL certificate verification by default, using a
"bundle" of Certificate Authority (CA) public keys (CA certs). If the
default bundle file isn't adequate, you can specify an alternate file
using the --cacert option. If this HTTPS server uses a certificate
signed by a CA represented in the bundle, the certificate
verification probably failed due to a problem with the certificate
(it might be expired, or the name might not match the domain name in
the URL). If you'd like to turn off curl's verification of the
certificate, use the -k (or --insecure) option. unknown68a86d3f981e:~
srb_1974$
I only care about Ruby RVM and XCode to the extent that I need them to install Jekyll. I'm just trying to get my Github blog going and I can't seem to do it. I've read and read and read documentation and there's something I'm missing. I'm pretty sure it's knowledge everyone's assuming I have - I don't. I'm a beginner programmer. Any help would be much appreciated.
Ok, here's how I got it to work. It was kind of a random experimentation process until something worked.
I installed XCode and Ruby RVM per others' suggestions and the latter led to my resolution. One of the suggestions on this page said to run "rvm requirements" and read the text. It basically tells you what you need to run & upgrade rubies. This documentation was quite helpful. It explained that what I needed to install Jekyll wasn't really XCode - it was GCC. Evidently, older versions of XCode came with GCC, but newer versions do not, which is why installing XCode didn't solve my problem. It also directed me to where I could download & install GCC, warning me that installing GCC over a newer version of XCode is known to cause problems. So, I uninstalled XCode & headed over here to install GCC.
It was that simple - I installed GCC and Jekyll installed in seconds.
ERROR: Error installing jekyll: ERROR: Failed to build gem native extension.
So the error is "Failed to build gem native extension." when you run sudo gem install jekyll command. You'll find a tip in Jekyll Wiki's Install section:
If you encounter errors like Failed to build gem native extension on Windows you may ...
On OSX, you may need to update RubyGems:
$ sudo gem update --system
So, try to update your RubyGems and run sudo gem install jekyll after that. And I think you don't need to install ruby rvm if you're not a ruby developer.
Btw, I think Ruby v1.9.1 is a recommended version.
And for your Xcode related question, you can download it from App Store though you're not a registered Apple developer. It's free.
Xcode is useful when you need to build some libs with gcc (gcc will be installed together after you've installed the Xcode). But I've no idea whether you'll need it when you install the jekyll.
I tried all the solutions above and did not work. I posted my answer here originally:
RVM requirements error
but for brevity, this is what I posted:
It seems that on OSX 10.9 and XCode5 moved some libs around on us. So I had to install XCode5-DP6 (Dev Preview 6), opened up DP6 and in the settings, you have to tell the command line tools to use the new DP6 build and not the Standard XCode from the marketplace.
First, I had to install homebrew. Nothing liked to play with macports. I am on my first mac as of only a month ago, so macports was just what solved apache for me at the time. I then had to run 'brew install autoconf'
Once I did that I then ran rvm requirements, everything installed without issue. then sudo gem install jekyll from there and it all works like a charm now.
I'm sure once Mavericks is actually released this will get ironed out. We are using early releases after all...
Same issue encountered! After reading this article and random experimentation like following,
xcode install
curl -sSL https://get.rvm.io | bash
sudo gem install jekyll
fixed the issue and could successfully install jekyll