12

at school the wifi network is wpa2 with peap and mschapv2 requireing a certificate to authenticate and connect along with user name and password

i have obtained a copy of the certificate from the school's it technitians

in ubuntu to add the certificate i copied it into /usr/share/ca-certificates/extra and then ran sudo dpkg-reconfigure ca-certificates which gided me through the screens below image 1 Image 2

and gave the output image 3 however i would now like to move from ubuntu to arch linux but have been un able to add the certificate and connect to the network could anyone please tell me what the equivilent command is in arch.

LinuxSailorTech
  • 221
  • 1
  • 2
  • 6

3 Answers3

26

Use the trust command provided by the p11-kit package:

sudo trust anchor --store ~/my-ca-cert.crt

404 Not Found
  • 361
  • 3
  • 4
7

I cannot find anything on the Arch wiki about installing ca certificates. There was a news update in 2014. The certificate needs to be added to /etc/ca-certificates/trust-source/anchors/ and must have a .crt extension. Then run trust extract-compat. Details of the process can be found with man 8 update-ca-trust.

StrongBad
  • 5,151
  • 9
  • 47
  • 73
4

Similar to the answers above in 2022 in Arch Linux I had to:

cp my-ca.crt /etc/ca-certificates/trust-source/anchors/
update-ca-trust extract

I then saw my custom CA added at the top of /etc/ssl/certs/ca-certificates.crt

On Chrome based browsers I also added my custom CA under:

  • Privacy & Security => Manage certificates => Authorities => Import

I used xca to create the CA & server certificate with these helpful notes.

enter image description here

Stuart Cardall
  • 1,876
  • 1
  • 14
  • 15