LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 10-02-2019, 03:14 AM   #1
lioh
Member
 
Registered: Aug 2019
Location: Switzerland
Distribution: Slackware
Posts: 194

Rep: Reputation: Disabled
Add Internal CA to System Store


Hi all,

I am trying to add our internal CA to the system store of my Slackware -current box in order to use e.g. programs like curl without complaining about missing Certs.

For this I have copied the CA cert to /etc/ssl/certs and created a symlink like:

ln -s my-ca.crt \
`openssl x509 -noout -hash -in my-ca.crt`.0

Afterwards I run update-ca-certificates --fresh and hoped that the CA cert would have been added. But:

openssl crl2pkcs7 -nocrl -certfile ca-certificates.crt | openssl pkcs7 -print_certs -text -noout

does not contain my-ca Cert. Am I missing a step or is this the wrong approach to add an internal CA to the system certificate store?

Greetings

Lioh
 
Old 10-02-2019, 03:23 AM   #2
lioh
Member
 
Registered: Aug 2019
Location: Switzerland
Distribution: Slackware
Posts: 194

Original Poster
Rep: Reputation: Disabled
In the meanwhile I have figured out (by looking at the update-ca-certificates script) that it works when I create a directory /usr/local/share/ca-certificates and copy the my-ca.crt into that.

update-ca-certificates --fresh will then create the symlinks accordingly and ln -s my-ca.crt `openssl x509 -noout -hash -in my-ca.crt`.0 is run automatically.

Afterwards ca-certificates.crt also contains my-ca.crt

Still curl does not seem to to use the system store, but wget does. Any idea on that?
 
Old 10-02-2019, 04:08 AM   #3
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,124

Rep: Reputation: 4198Reputation: 4198Reputation: 4198Reputation: 4198Reputation: 4198Reputation: 4198Reputation: 4198Reputation: 4198Reputation: 4198Reputation: 4198Reputation: 4198
curl uses its own certs bundle generated from the upstream mozilla's ones (/usr/share/curl/ca-bundle.crt, some infos about it are at the beginning of the file) but it can be configured differently, also via the command line (in "man curl" check the --ca* and --cert* options).
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Flathub vs. Snap Store: Which App Store Should You Use? LXer Syndicated Linux News 5 09-20-2019 01:08 PM
vSphere / ESXi - Renaming Directory Names in Data-Store and Moving things around in Data-Store devUnix Linux - Virtualization and Cloud 1 04-27-2017 08:13 AM
Information store: What software could I use to store and access various info merixon Linux - Software 2 12-17-2008 11:51 AM
Installation of internal HP DAT 40i DDS internal tape drive netkepala Linux - Hardware 3 11-08-2004 12:22 PM
'alsactrl store' doesn't seem to store... endfx Slackware 1 08-20-2004 01:30 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 07:25 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration