libera/#devuan/ Tuesday, 2024-07-30

systemdleteI'm not too good at ssl and encryption at large (but I'm trying to learn these as I go).  I would like to create a certificate for a website so I can use https, but From what I've read, I may need to drop a few bucks--isn't there a self-signed certificate option I can use?01:00
systemdleteKeep in mind that this "web server" will only be used here at home; I'm not opening it up to the world.01:01
systemdleteAnd this is not served by apache, nginx, etc.  It is a built-in web server.01:01
gnarfacesystemdlete: yes, you can make a perfectly secure local certificate authority with the stock openssl package in the repos01:02
systemdleteWhat I need to know is whether a self-signed certificate will work for me01:02
gnarfacefinding instructions on how is increasingly difficult, but it's doable01:02
rrqyou get free certs from letsencrypt01:02
gnarfaceyou don't need to trust a 3rd party01:02
gnarfaceif it's for personal use, there's no reason not to use a local CA except for lack of expertise01:02
systemdleteok, thanks, that's what I thought.  Years ago, one very unusual fellow in the centos channel helped me create a self-signed cert, but I think that was 15 years ago.01:03
onefangUm, doesn't OpenSSL automatically create a self signed cert on installation, or was that Courier I'm recalling?01:03
gnarfacei think several things use openssl to create a self-signed cert01:03
gnarfacebut you can do it by hand manually01:03
gnarfaceyou can make the whole certificate authority in fact01:04
systemdleteI vaguely recall having to go through many iterations, gyrations, and mutations to create one.01:04
gnarfaceit's a few steps, but it's not rocket science01:04
systemdleteoh good01:04
systemdletemy head is already hurting just contemplating doing this01:04
gnarfacenot much about the process has changed either, other than the location of good data, and the location on the filesystem you copy your public key to01:05
systemdletedoes devuan (or maybe debian) have a SHORT 1-2-3 do list01:05
systemdletehow to list01:05
gnarfacei don't know of any devuan or debian specific howtos, but there seem to be a lot of 3rd party ones if you just search for: openssl local CA01:06
systemdleteI promise to write it down this time.01:06
gnarfacea long time ago i had a real good one but i can't find it anymore01:06
systemdletehmm. I suppose openssl project might01:06
rrqad-free afaict: https://www.ibm.com/docs/en/api-connect/10.0.x?topic=profile-generating-self-signed-certificate-using-openssl01:06
gnarfacewell, to be clear there's two actual paths01:07
gnarfaceyou can create a self-signed certificate and just use it, or you can create a self-signed certificate then use that to create your own certificate authority, then you can tell your whole install to trust that certificate authority, then you can use said certificate authority to sign as many keys as you want01:08
gnarfacethe latter path is more work but will raise fewer red flags in different contexts01:08
gnarfaceit kinda depends on how much you plan on doing this01:09
systemdleteprobably not often.01:09
gnarfaceeither way i recommend keeping notes01:09
systemdleteYep.01:09
systemdleteI use elog for my notes.01:10
systemdleteBut I only started doing this in earnest a few years ago.01:10
gnarfacei've forgotten and re-learned the same task several times now just because so much time passes between when i need it01:10
systemdlete(and that's "elog" not elogd or elogind)01:10
systemdletegnarface, yeah, that's how it goes for me all the time also.  And why I have become much more diligent about writing stuff down.  It has bailed me out a few times already.01:11
systemdletewell, thanks guys.01:12
systemdleteWhy is it that distros don't provide a self-signed certificate for general use by the admin, and maybe a CA?  It could be generated automatically at install time, right?01:13
* systemdlete hopes that was not an imbecilic question, but we shall see...01:14
gnarfacei'm not sure they don't01:14
gnarface /usr/lib/ssl/misc/CA.pl01:14
gnarfaceyou're looking for tutorials on how to use this script01:14
systemdleteI wasn't but maybe I should be...01:15
gnarfacethat script and the openssl binary itself01:15
systemdleteopenssl req -x509 -newkey rsa:4096 -keyout key.pem -out cert.pem -sha256 -days 36501:15
gnarfacesometimes on certain distros CA is a shell script not a perl script, but they seem to work the same01:15
systemdletefrom a SO page01:15
gnarfaceyea, that looks like a quick&dirty self-signed cert, with no CA setup to sign it01:16
gnarfacemight still work depending on what you're doing, but some stuff will complain just about it being self-signed01:16
systemdlete"no... you have to PAY for it..."01:16
gnarfacemost software has a way to silence such complaints anyway, but i've seen bugs in thunderbird...01:17
systemdlete(bugs in Tbird?  What?  Naaaah.  gnarface must be imagining things)01:17
gnarfaceheh01:17
onefangJust don't ask which end of the bird the thunder comes out of.01:18
systemdleteI hate what they have done to the UI in the past 2 or 3 years.  All of it unnecessary and not helpful.01:18
systemdleteonefang, lol01:18
gnarfacei have it on good authority that the most annoying changes to thunderbird over the past couple years have been specifically to spite me personally. they don't think the rest of you matter because they think you are all NPCs.\01:19
onefanglol01:19
systemdleteand here I thought it was me...01:19
gnarfacei'm not joking, and there's at least one other person here who knows i'm telling the truth, though i doubt he'll confess01:20
systemdleteThere ought to be a rule.  Pull requests for security get highest priority, then bugs, then new features and window dressing.01:20
systemdleteI mean, is it REALLY necessary to display the calendar upon startup?  Especially if you last had the mail tab open last?01:21
gnarfacei found a way to turn that off... though i was annoyed at it having gotten enabled by default in the first place01:21
systemdletedo share!01:22
systemdleteI looked high and low01:22
systemdletesomething in about:config?01:22
gnarfaceoh, i did, but i think part of it was just not having put any entries01:22
gnarfaceif you don't have any actual entries, it'll just stay closed if you close it01:22
gnarfacei think that's what i remember finding out anyway01:23
systemdleteIdk.  Here every instance of tbird ALWAYS opens in calendar tab, even if I have no entries01:23
gnarfacedo you see an X in the top right corner of that pane?01:23
systemdleteyou mean the calendar tab?01:23
gnarfaceit's like the whole right side of the window when it's open, it's not exactly a tab01:24
systemdleteI can shut it, but the next time I open tbird, the calendar is opened again.01:24
gnarfacehmm01:24
gnarfacei swear i just deleted all the entries then it stayed closed01:25
gnarfacei don't remember having to do anything in about:config01:25
systemdletemost of the tbird configs I use do not have entries in calendar01:25
systemdleteI only use calendar in, like, 3 of them.01:25
gnarfacedo you have any separate calendar extensions installed?01:25
systemdletebut I'm taking about an entirely different system where I do not use calendar entries at all!01:26
systemdleteno01:26
gnarfacehmm, weird01:26
systemdletemaybe there is a randomizer in the algorithm.  If user name matches "suchandsuch*" then pull this nasty trick on them, otherwise, do these annoying things...01:27
systemdleteThe changes these guys are making are pointless, so I am guessing they just don't have anything else to do01:27
gnarfaceit wouldn't really suprise me01:27
systemdleteMaybe inject some malware while they're at it01:27
gnarfacewell, i know (from the same source as the other hint) that they are in fact actually sandbagging performance on purpose, supposedly "to make it easier present users with artificial performance gains in conjunction to some future as-yet-undetermined release"01:29
gnarface(and they're doing that in firefox as well_01:29
gnarface)01:29
gnarfacethe whole mozilla org is well overdue for a complete fork, not just of software but of maintenance staff01:30
gnarfacethis is starting to get more editorial than actually about support though, so we should take it to offtopic01:30
systemdletemaybe later. Thanks for the help again.01:31
systemdleteas always01:31
gnarfaceno problem, good luck with it01:31
temp64mission failed, IT told me to cut the shit and encrypt everything with LUKS instead of putting on the BIOS HDD password20:25
temp64now I have to figure out how to install Devuan with LUKS AND F2FS on top of it20:26
masontemp64: LUKS should be pretty easy. Don't forget to allow discards to pass through or F2FS will probably be less happy.20:30
masontemp64: Might make sense to set up your disk(s) and then debootstrap(1) into them.20:31
temp64oh, didn't know it doesn't forward discards to SSD by default20:32
temp64if Devuan packages a recent enough version of cryptsetup, I'll probably go for Opal-only encryption20:34
temp64not sure how much overheard there is to LUKS volumes, considering x86 CPUs have a dedicated AES instructions nowadays, but it should be a bit easier on the CPU if I defer all encryption to the drive itself20:35
masontemp64: I tend to think the overhead disappears against actual accesses, but this is my own observation and not backed by data.20:36
masonReading about OPAL is kind of interesting. Thanks for mentioning it. I expect I'll stick with LUKS here, but OPAL does seem neat.20:39
fsmithredI used luks on a 1200MHz Athlon many years ago. I didn't notice any slowness because of it.20:52
fsmithredtemp64, you could pre-format and manually install or you could pre-format and use the cli version of the live installer with some manual intervention.20:54
fsmithredInstructions here: https://dev1galaxy.org/viewtopic.php?id=232320:55
fsmithredTwo changes: you can give your mapper names a number at the end and you can use luks type 2 for the root partition.20:55
donglei appear to have to inet addresses on eth0. isn't that not normal? https://paste.debian.net/1324880/21:02
masontemp64: Random other note: you might want --pbkdf argon2id if you go with LUKS. Background: https://mjg59.dreamwidth.org/66429.html21:14
masontemp64: I've upgraded all my local systems and I deploy with that out of the box now.21:15
dongleok. i had installed network-manager for the reason that i could have 'nmtui'. i removed it and rebooted and the 2nd inet is gone now.21:18
Xenguydongle, Has anyone mentioned ifupdown ?21:22
XenguyI mean as an alternative to NM21:24
dongleXenguy i think ifupdown is default installed no?21:24
donglei only wanted nmtui for wifi if i need which i dont really need21:25
Xenguydongle, I've been mentioning to people about being able to avoid NM for public wifi by using these instructions:  https://www.devuan.org/os/documentation/install-guides/daedalus/network-configuration.html21:26
XenguyOnce it is set up (i.e. 2 files configured and 'wpa_gui' installed), it does the same job for me that 'wicd' used to do.21:27
donglethaks i'll have a look21:27
Xenguydongle, np, I'm really happy I don't have to deal with NM or connman, now that wicd is no longer available...21:28
XenguyLet me know if a sample of my config files would help at any point.21:29
donglesure thx21:29
dongleXenguy: if i use allow-hotplug wlan0 what command starts wlan0?21:39
dongleoh wpa_gui21:46
temp64I'm still not sure what the difference is between allow-hotplug and auto21:49
gnarfaceallow-hotplug is supposed to be friendlier with USB devices, so like it won't throw an error if the device isn't present21:50
gnarfacebut it's also supposed to be fine to use with devices that aren't USB, and that hasn't always been the case in my experience, so after they changed the default from auto to allow-hotplug, many times i've had to change it back21:51
fsmithredallow-hotplug uses udev, auto uses ifupdown22:00
XenguyYes, 'auto' starts the interface automatically, and 'allow-hotplug' is event-driven.  I tend to just use 'auto', but when I'm switching from eth0 or wlan0 for example, I make sure I ifdown the former before bringing up the latter.  I also typically preserve my laptop sessions so that I don't have to reboot every time.22:01
XenguyI'm not sure if there are some use cases where 'auto' would cause issues switching from ethernet cable to wifi and vice versa22:02
fsmithredshould have said /etc/init.d/networking for auto22:03
fsmithredI have sometimes been able to use wired and wireless interfaces at the same time22:04
XenguyI think maybe I tried 'allow-hotplug' in there one time, but wasn't convinced it was working well (as gnarface mentioned earlier)22:04
Xenguy"in there" = /etc/network/interfaces22:05
fsmithredhere's a better explananion (from Ralph) https://dev1galaxy.org/viewtopic.php?id=168822:05
donglewith wpa_gui i have a wifi connection but i cant browse22:06
Xenguyfsmithred, BTW as an aside, I seem to recall noting that /etc/init.d/networking was deprecated these days (use ifupdown instead?), which I found a bit bizarre22:06
Xenguydongle, When I first started using this method, I found it a bit finicky until I became more familiar with using it, FWIW22:07
dongleXenguy: thanks yeah i will need to practice at it22:07
XenguyI don't know if it matters, but I always 'ifdown eth0' before I initiate wpa_gui to bring up the wlan0 wireless interface22:08
Xenguydongle, You have the user in the 'netdev' group, yes?22:09
dongleyes22:09
XenguyWell rest assured it should work fine once you get the hang of it.22:10
gnarfaceusually the issue is just that the network stack leaves your default route on the first device that was upped22:11
gnarfaceunless you down it first, of course22:12
XenguyThat seems consistent with my current ifdown eth0/ifup wlan0 sequence then, IIUC22:13
dongleit now works.22:16
XenguyYay!22:17
dongleyes!22:17
dongleheh22:18
XenguyGroup membership in 'netdev' is needed for wpa_gui to be able to modify /etc/wpa_supplicant/wpa_supplicant.conf ...22:19
XenguyBut I *think* it will leave the file with '644' permissions?  If you have any passwords in there that you want to be private, it's best to chmod 600 the file (as root) I expect22:20
donglecool22:21
fsmithredXenguy, /etc/init.d/networking has been claiming that it's deprecated for a long time. Maybe since squeeze or wheezy.22:25
fsmithredI think it's more a warning that not all interfaces might be configure to use it.22:25
XenguyThat was my impression, that it will work the majority of the time22:26
rrqafaik /etc/init.d/networking comes from the ifupdown package, and all claims it's deprecated is merely by dev's wanting to plug other methods of configuring interfaces.23:33
rrqit doesn't come with a gui of course but has rich and detailed man pages23:36
rrqit also implements a highly modularized network management system, which means that it does not provide all-in-one but rather offers easy ways to plug-in subfunction implementations, such as dhcp, wifi, bridge and whatnot (e.g rrqnet)23:42
* rrq obviously is an ifupdown fanboi :)23:44
fsmithredalmost a gui -> Ceni - Curses /etc/network/interfaces23:58

Generated by irclog2html.py 2.17.0 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!