You are not logged in.

#1 2013-07-10 03:28:54

acgtyrant
Member
From: Hangzhou, China
Registered: 2013-04-09
Posts: 65
Website

[Solved]How can I import a CA cert into my system?

I want to follew below to import CA.crt into archlinux:

sudo cp path/to/goagent/local/CA.crt /usr/share/ca-certificates/goagent.crt
sudo chmod a+r /usr/share/ca-certificates/goagent.crt
sudo dpkg-reconfigure ca-certificates

But I find the command dpkg-reconfigure is a Debian command which can not use in Arch Linux, so how should I import it?

Thank you!

Last edited by acgtyrant (2013-07-10 05:11:32)


I use Arch Linux.

Offline

#2 2013-07-10 03:34:27

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: [Solved]How can I import a CA cert into my system?

If you have dpkg installed, you should be asking for help on the Ubuntu or debian forums:
https://wiki.archlinux.org/index.php/Fo … pport_ONLY


# edit: reopened upon appeal.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2013-07-10 04:56:59

progandy
Member
Registered: 2012-05-17
Posts: 5,307

Re: [Solved]How can I import a CA cert into my system?

In arch linux you'll have to use update-ca-certificates (8).
Put your certificate in /usr/local/share/ca-certificates with a crt ending and then run it as root.

sudo cp path/to/goagent/local/CA.crt /usr/local/share/ca-certificates/goagent.crt
sudo update-ca-certificates

Last edited by progandy (2013-07-10 05:07:05)


| alias CUTF='LANG=en_XX.UTF-8@POSIX ' | alias ENGLISH='LANG=C.UTF-8 ' |

Offline

#4 2013-07-10 05:05:55

acgtyrant
Member
From: Hangzhou, China
Registered: 2013-04-09
Posts: 65
Website

Re: [Solved]How can I import a CA cert into my system?

@progandy Great, it works, thank you for correcting the path and giving the right command!

Last edited by acgtyrant (2013-07-10 05:10:59)


I use Arch Linux.

Offline

#5 2014-01-13 13:07:15

poliveira
Member
Registered: 2014-01-07
Posts: 11

Re: [Solved]How can I import a CA cert into my system?

progandy wrote:

In arch linux you'll have to use update-ca-certificates (8).
Put your certificate in /usr/local/share/ca-certificates with a crt ending and then run it as root.

sudo cp path/to/goagent/local/CA.crt /usr/local/share/ca-certificates/goagent.crt
sudo update-ca-certificates

I have used your advice and after this I have tried git clone and it worked. But I have a slightly doubt about this, after I have executed

sudo update-ca-certificates

I went to /etc/ca-certificates.conf and did not find the certificate. Where I can confirm that?

Offline

#6 2016-05-11 08:33:14

wespe
Member
Registered: 2015-07-22
Posts: 3

Re: [Solved]How can I import a CA cert into my system?

Just stumbled upon this threat while having a similar problem. It seems that the provided solutions is out of date as of December 2014:

https://www.archlinux.org/news/ca-certificates-update/

Last edited by wespe (2016-05-11 08:33:32)

Offline

#7 2016-05-11 09:13:18

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: [Solved]How can I import a CA cert into my system?


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

Board footer

Powered by FluxBB