SliTaz SliTaz Forum

You are not logged in.

#1 2014-03-24 14:40:32

poncho
Member
Registered: 2014-03-14
Posts: 23

Import SSL certificates

Hi,

how can I import SSL certificates so programs can use them to establish secure connections?

I tried to install openssl and copied the CRT files to /etc/ssl/certs but they are still not recognized.

Offline

#2 2014-03-24 15:11:26

mojo
Administrator
Registered: 2011-03-29
Posts: 2,174

Re: Import SSL certificates

There is no single solution.

These are programs on slitaz I've configured for https.

Download cacert.pem from http://curl.haxx.se/docs/caextract.html

GNU wget:

Rename cacert.pem to cert.pem install in [c]/etc/ssl[/c]

Curl: ~/.curlrc

[c]--cacert /etc/ssl/cert.pem[/c]

Git: ~/.gitconfig

[c][http]
sslCAinfo = /etc/ssl/cert.pem[/c]

Offline

#3 2014-03-24 15:56:11

poncho
Member
Registered: 2014-03-14
Posts: 23

Re: Import SSL certificates

I though there is something like Ubuntus dpkg-reconfigure ca-certificate.

I solved my problem by debugging the process using strace and packing my certificates in one file: /etc/ssl/certs/ca-certificates.crt

Thanks

Offline

#4 2014-03-24 16:57:59

Trixar_za
Administrator
Registered: 2011-03-29
Posts: 1,506

Re: Import SSL certificates

Another work around is to use the ssh link instead of the https one with git.

Offline

#5 2014-03-24 20:51:27

poncho
Member
Registered: 2014-03-14
Posts: 23

Re: Import SSL certificates

My problem was not git related.

Offline

#6 2014-03-25 01:27:31

mojo
Administrator
Registered: 2011-03-29
Posts: 2,174

Re: Import SSL certificates

SSH on github requires a github account with username,password,and verified email.

Keypair authentification only,no username/password.

Install OpenSSH

Generate a public/private keypair using ssh-keygen with github verified email.

[c]ssh-keygen -t rsa -C "your_email@youremail.com"[/c]

Add a passphrase when prompted for extra security.

Copy/paste contents of id_rsa.pub to https://github.com/settings/ssh

Test for login:

[c]ssh -T git@github.com[/c]

Hi "your username"! You've successfully authenticated, but GitHub does not provide shell access.

Test git from SliTaz Bug 115 report:

[c]git clone git@github.com:visionmedia/mon.git[/c]

Cloning into 'mon'...

remote: Reusing existing pack: 354, done.

remote: Total 354 (delta 0), reused 0 (delta 0)

Receiving objects: 100% (354/354), 59.31 KiB, done.

Resolving deltas: 100% (147/147), done.

Offline

#7 2016-06-09 21:16:23

LienRag
Member
Registered: 2012-06-01
Posts: 61

Re: Import SSL certificates

Hi all.

I appear to have the same problem (no certificate on my computer) but I don't understand the first mojo post explanation, it seems to have missing steps...

Offline

#8 2016-06-12 00:28:36

hackdorte
Member
Registered: 2014-06-05
Posts: 83

Re: Import SSL certificates

@LienRag

You have the certificates package installed?

# tazpkg -gi cacerts

Offline

Registered users online in this topic: 0, guests: 1
[Bot] ClaudeBot

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.019 seconds, 8 queries executed - Memory usage: 1.54 MiB (Peak: 1.77 MiB) ]