error reading X.509 key or certificate file

See original GitHub issue

Originally reported on Google Code with ID 237

What steps will reproduce the problem?
1. Download gitblit GO
2. Unpack it in my home directory ~/apps/gitblit
3. java -jar authority.jar
4. set store password to default "gitblit"
5. exit authority. java -jar gitblit.jar
6. Open "https://localhost:8443/" in browser and create a new repository called test.git
7. git clone https://localhost:8443/git/test.git

What is the expected output? What do you see instead?
I get the error message
 error reading X.509 key or certificate file while accessing https://localhost:8443/git/test.git/info/refs?service=git-upload-pack

I'm not shure if this is an error in git, ssl or gitblit as I have no experience in
using git and ssl.

What version of the product are you using? On what operating system?
Gitblit v1.2.1 (GO)
Running on Linux (3.8.0-19-generic)
Using JCE Standard Encryption Policy files
allowing SSL renegotiation on Java 1.7.0_17
certificate alias = localhost
Binding ssl connector on port 8443 to localhost

OS is ubuntu 13.04

Please provide any additional information below.
I follow the guide in http://gitblit.com/setup.html
I want to build up a central git repository which can be accessed (read and write)
from different machines and which provides a user and role system. But, unfortunately,
I cannot clone from the repositories even as localhost.

Thanks,
Kai

Reported by muell@k-du.de on 2013-05-03 12:13:48

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:8

github_iconTop GitHub Comments

1reaction
gitblitcommented, Aug 12, 2015
Hi,
I tried a little bit and found the error: As I said
"git config --global http.sslKey returns the empty string. I tried to set it to the
pem file of the admin user (I have sent to me by mail) but that doesn't work"

In fact the empty string does not mean that this field/configuration is disabled. Git
searched the sslKey and certificate in the path "" and does not find it. I had to call
git config --global --unset http.sslKey
to disable this behaviour.

Now pushing from localhost works (without asking for password).

I'm sorry for the inconvenience as my problem has to do with my wrong usage of git
instead of gitblit. 

Best regards,
Kai

Reported by muell@k-du.de on 2013-05-10 14:07:07

0reactions
gitblitcommented, Aug 12, 2015

Reported by James.Moger on 2013-05-10 14:31:34

  • Status changed: Done
Read more comments on GitHub >

github_iconTop Results From Across the Web

error reading X.509 key or certificate file - Stack Overflow
Here's a solution to this. This occurs when curl is unable to decrypt my key.pem file which is encrypted by default.
Read more >
Getting error in curl command(curl: (35) error reading X.509 ...
curl: (35) error reading X.509 potentially-encrypted key file: Error in parsing. but working in Ubuntu 18.04.3 LTS \n \l (LOCAL SYSTEM).
Read more >
error reading X.509 key or certificate file · Issue #533 - GitHub
What steps will reproduce the problem? 1. Download gitblit GO 2. Unpack it in my home directory ~/apps/gitblit 3. java -jar authority.jar 4....
Read more >
Getting "error reading X.509 key or certificate file" by using ...
Coding example for the question Getting "error reading X.509 key or certificate file" by using curb, while curl uses the same certificate w/o...
Read more >
Re: error reading X.509 key - Curl
Now I get this error : > error: (35, 'error reading X.509 key or certificate file') > > Any ideas? The error comes...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found