<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://tech.uvoo.io/index.php?action=history&amp;feed=atom&amp;title=Trusted_ca_store_in_Linux</id>
	<title>Trusted ca store in Linux - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://tech.uvoo.io/index.php?action=history&amp;feed=atom&amp;title=Trusted_ca_store_in_Linux"/>
	<link rel="alternate" type="text/html" href="https://tech.uvoo.io/index.php?title=Trusted_ca_store_in_Linux&amp;action=history"/>
	<updated>2026-04-06T05:04:15Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.35.2</generator>
	<entry>
		<id>https://tech.uvoo.io/index.php?title=Trusted_ca_store_in_Linux&amp;diff=4749&amp;oldid=prev</id>
		<title>Busk: Created page with &quot;# Linux   ## Add Internal Root CA to trusted store via BASH ``` #!/bin/bash set -eu  test_url=&quot;https://host.intranet/&quot; cert_file_name=&quot;internal-rootca1.crt&quot; os_distribution=$(...&quot;</title>
		<link rel="alternate" type="text/html" href="https://tech.uvoo.io/index.php?title=Trusted_ca_store_in_Linux&amp;diff=4749&amp;oldid=prev"/>
		<updated>2023-11-28T23:21:39Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;# Linux   ## Add Internal Root CA to trusted store via BASH ``` #!/bin/bash set -eu  test_url=&amp;quot;https://host.intranet/&amp;quot; cert_file_name=&amp;quot;internal-rootca1.crt&amp;quot; os_distribution=$(...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;# Linux&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
## Add Internal Root CA to trusted store via BASH&lt;br /&gt;
```&lt;br /&gt;
#!/bin/bash&lt;br /&gt;
set -eu&lt;br /&gt;
&lt;br /&gt;
test_url=&amp;quot;https://host.intranet/&amp;quot;&lt;br /&gt;
cert_file_name=&amp;quot;internal-rootca1.crt&amp;quot;&lt;br /&gt;
os_distribution=$(awk -F '=' '/ID_LIKE/ { print $2 }' /etc/os-release)&lt;br /&gt;
&lt;br /&gt;
root_ca_crt=&amp;quot;-----BEGIN CERTIFICATE-----&lt;br /&gt;
your pem cert lines&lt;br /&gt;
-----END CERTIFICATE-----&lt;br /&gt;
&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
add_ca_crt_debian(){&lt;br /&gt;
  # sudo apt-get install -y ca-certificates&lt;br /&gt;
  echo &amp;quot;debian&amp;quot;&lt;br /&gt;
  echo &amp;quot;${root_ca_crt}&amp;quot; | sudo tee  /usr/local/share/ca-certificates/${cert_file_name}&lt;br /&gt;
  sudo update-ca-certificates&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
add_ca_crt_fedora(){&lt;br /&gt;
  echo &amp;quot;fedora&amp;quot;&lt;br /&gt;
  echo &amp;quot;${root_ca_crt}&amp;quot; | sudo tee  /etc/pki/ca-trust/source/anchors/${cert_file_name}&lt;br /&gt;
  sudo update-ca-trust&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
if [ $os_distribution = &amp;quot;fedora&amp;quot; ]; then&lt;br /&gt;
  add_ca_crt_fedora&lt;br /&gt;
elif [ $os_distribution = &amp;quot;debian&amp;quot; ]; then&lt;br /&gt;
  add_ca_crt_debian&lt;br /&gt;
else&lt;br /&gt;
  echo &amp;quot;Unsupported OS distribution $os_distribution.&amp;quot;&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
curl -I ${test_url}&lt;br /&gt;
echo &amp;quot;Success: Installation and test of trusted ca cert is complete.&amp;quot;&lt;br /&gt;
```&lt;/div&gt;</summary>
		<author><name>Busk</name></author>
	</entry>
</feed>