<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
	<channel>
		<title>Sysadmin Blog</title>
		<link>https://www.cyberbyte.ch/blog/index.php</link>
		<description><![CDATA[Copyright Cyberbyte Networks]]></description>
		<copyright>Copyright 2026, Mike Rhyner</copyright>
		<managingEditor>info@cyberbyte.ch (Mike Rhyner)</managingEditor>
		<language>en-US</language>
		<generator>SPHPBLOG 0.8.1</generator>
		<item>
			<title>How do I verify that a private key matches a certificate?</title>
			<link>https://www.cyberbyte.ch/blog/index.php?entry=entry220211-124756</link>
			<description><![CDATA[To verify that an RSA private key matches the RSA public key in a certificate you need to i) verify the consistency of the private key and ii) compare the modulus of the public key in the certificate against the modulus of the private key.<br /><br />To verify the consistency of the RSA private key:<br /><pre>openssl rsa -check -noout -in myserver.key<br />RSA Key is ok</pre><br />If it doesn&#039;t say &#039;RSA key ok&#039;, it isn&#039;t OK!&quot;<br /><br />To view its modulus:<br /><pre>openssl rsa -modulus -noout -in myserver.key | openssl md5</pre><br />To view the modulus of the RSA public key in a certificate:<br /><pre>openssl x509 -modulus -noout -in myserver.crt | openssl md5</pre><br />If the first commands shows any errors, or if the modulus of the public key in the certificate and the modulus of the private key do not exactly match, then you&#039;re not using the correct private key.]]></description>
			<category>Technology, OpenSSL</category>
			<guid isPermaLink="true">https://www.cyberbyte.ch/blog/index.php?entry=entry220211-124756</guid>
			<author>info@cyberbyte.ch (Mike Rhyner)</author>
			<pubDate>Fri, 11 Feb 2022 11:47:56 GMT</pubDate>
			<comments>https://www.cyberbyte.ch/blog/comments.php?y=22&amp;m=02&amp;entry=entry220211-124756</comments>
		</item>
		<item>
			<title>Automount user&#039;s home directories</title>
			<link>https://www.cyberbyte.ch/blog/index.php?entry=entry040517-000000</link>
			<description><![CDATA[Follow those steps for automounting every user&#039;s homedir under a particular directory:<br /><br />    Make sure you have installed autofs<br /><br />    Add the following line to the automount.master file (mostly in /etc/autofs/):<br /><pre>    /home/net    /etc/autofs/auto.home </pre>          <br />    Then Add this line to auto.home (mostly in /etc/autofs/):<br /><pre>    *	-rw,soft,intr	server:/&amp; </pre><br />    or for a SAMBA server:<br /><pre>    *	-rw,soft,intr,fstype=smbfs,uid=&amp;,gid=100,credentials=/home/&amp;/.smbpasswd             ://server/&amp; </pre><br />But what does that mean?<br />The Asterisk (*) stands for any (pseudo)-directory under the given mountpoint. After the dash, there are the mount options, and with the Ampersand (&amp;) we refer to the directory name that would be accessed by the user. So the appropriate NFS export or sharename will be automounted. For SAMBA, it is used also for setting the owner of the files in the mounted directory and for the credentials file in user&#039;s (local) home directory for authentication.<br /><br />With this, users can just use their home directory on a server, e.g. by cd&#039;ing to /home/net/&lt;username&gt;. After some time of inactivity, the directory will be unmounted without manual intervention. ]]></description>
			<category>Technology</category>
			<guid isPermaLink="true">https://www.cyberbyte.ch/blog/index.php?entry=entry040517-000000</guid>
			<author>info@cyberbyte.ch (Mike Rhyner)</author>
			<pubDate>Sun, 16 May 2004 22:00:00 GMT</pubDate>
			<comments>https://www.cyberbyte.ch/blog/comments.php?y=04&amp;m=05&amp;entry=entry040517-000000</comments>
		</item>
		<item>
			<title>Integrate new drivers into a RedHat Network Boot Disk </title>
			<link>https://www.cyberbyte.ch/blog/index.php?entry=entry030923-000000</link>
			<description><![CDATA[It is possible that the hardware changes with new server models and you cannot boot any more from the RedHat Bootdisk. Then you need to inspect your new hardware and see what new devices are built in and get a driver for it.<br /><br />For more convenience, I have written some simple scripts, which do the most annoying tasks.<br /><br />The drivers need to be changed on different locations:<br /><br />    Network drivers must be put on the boot-disk, because all other packages, drivers, etc. are loaded from a network location<br /><br />    Ungzip bootnet.img.gz with:<br /><pre>        gunzip bootnet.img.gz </pre><br />    Mount the Image as a loop filesystem on /mnt/bootimage:<br /><pre>        <a href="http://www.cyberbyte.ch/Linux/RedHat/unpack_bootimage.sh" >unpack_bootimage.sh</a> bootnet.img </pre> <br />    Unpack and mount the inital ramdisk with the following script, give the initrd-file under /mnt/bootimage/ as argument. The inital ramdisk will be mounted under /mnt/initrd:<br /><pre>        <a href="http://www.cyberbyte.ch/Linux/RedHat/unpack_initrd.sh" >unpack_initrd.sh</a> initrd.img </pre><br />    Unpack the modules with the following script:<br /><pre>       <a href="http://www.cyberbyte.ch/Linux/RedHat/unpack_modules.sh" >unpack_modules.sh</a> /mnt/initrd/modules/modules.cgz </pre>                      <br />    Now copy the new driver module(s) to /var/tmp/modules/&lt;kernel-version&gt; directory<br />    Change /mnt/initrd/modules/pcitable and add a new line with the vendor ID, product ID, driver name and description to the file (see example below):<br /><pre>        0x8086  0x1010  &quot;e1000&quot;         &quot;Intel Corporation|PRO/1000&quot;</pre>                      <br />    Change the file /mnt/initrd/modules/module-info and add a line for each the driver name, type and description (see the following example):<br /><pre>        e1000<br />                eth<br />                &quot;Intel EtherExpress Pro 1000&quot;<br /></pre>                      <br />        Add a line for the new driver to the file /mnt/initrd/modules/modules.dep if the new driver module is dependent on othe kernel modules. Mostly not necessary for ethernet adapters.<br /><br />        Re-pack the modules to the archive, kernel-version-directory under /var/tmp/modules as 1st argument, cpio archive file as 2nd argument:<br /><pre>        <a href="http://www.cyberbyte.ch/Linux/RedHat/pack_modules.sh" >pack_modules.sh</a> 2.4.20-18.7BOOT /mnt/initrd/modules/modules.cgz </pre>                      <br />        &quot;exit&quot; from the initrd-mount, if you are there, /mnt/initrd or subdirectories of it musn&#039;t be your current dir!<br /><br />        If you also need to update the boot-kernel (when used some modules not for acutal kernel version), copy the new vmlinuz kernel image to /mnt/bootimage<br />        Unmount and pack the initial ramdisk, give the initrd-file under /mnt/bootimage to be updated as argument:<br /><pre>        <a href="http://www.cyberbyte.ch/Linux/RedHat/pack_initrd.sh" >pack_initrd.sh</a> initrd.img </pre>                      <br />        Now unmount the bootimage and write it to a boot floppy with this script:<br /><pre>        <a href="http://www.cyberbyte.ch/Linux/RedHat/pack_bootimage.sh" >pack_bootimage.sh</a> bootnet.img </pre>                      <br />    Most other drivers, like for SCSI-Controllers are in the stage2 Image<br />        Mount the Stage 2 image (network-connected part of the installation):<br /><pre>        mount -o loop /install/cdrom/RedHat/base/stage2.img /mnt/image </pre>                      <br />        Unpack the modules with the following script:<br /><pre>        <a href="http://www.cyberbyte.ch/Linux/RedHat/unpack_modules.sh" >unpack_modules.sh</a> /mnt/image/modules/modules.cgz </pre>                      <br />        Now copy the new driver module(s) to /var/tmp/&lt;kernel-version&gt; directory<br /><br />        <strong>Important</strong>: If the new modules are built for another kernel version as the one on the boodisk, the bootdisk image must be updated with the corresponding kernel image. Further, all modules need to be replaced by one&#039;s of the same kernel version as the kernel image!<br /><br />        Change /mnt/image/modules/pcitable and add a new line with the vendor ID, product ID, driver name and description to the file (see example below):<br /><pre>        0x9005  0x801f  &quot;aic79xx&quot;       &quot;Adaptec|AIC7902 Ultra 320 SCSI Adapter&quot; </pre>                      <br />        Change the file /mnt/initrd/modules/module-info and add a line for each the driver name, type and description (see the following example):<br /><pre>        aic79xx<br />                scsi<br />                &quot;Adaptec AIC79xx Ultra 320 SCSI Host Adapter&quot;<br /></pre>                      <br />        Add a line for the new driver to the file /mnt/image/modules/modules.dep if the new driver module is dependent on other kernel modules. Example:<br /><br /><pre>        aic79xx: scsi_mod </pre>                       <br /><br />        Re-pack the modules to the archive, kernel-version-directory under /var/tmp/ as 1st argument (see /var/tmp/modules), cpio archive file as 2nd argument:<br /><pre>        <a href="http://www.cyberbyte.ch/Linux/RedHat/pack_modules.sh" >pack_modules.sh</a> &lt;kernel-version&gt; /mnt/image/modules/modules.cgz </pre>                     <br />        Leave the mountpoint of the image (/mnt/image or subdirectories of it musn&#039;t be your current dir!)<br /><br />        Unmount the image:<br /><pre>        umount /mnt/image </pre>                      <br />]]></description>
			<category>Technology, Linux Stuff, RedHat Stuff</category>
			<guid isPermaLink="true">https://www.cyberbyte.ch/blog/index.php?entry=entry030923-000000</guid>
			<author>info@cyberbyte.ch (Mike Rhyner)</author>
			<pubDate>Mon, 22 Sep 2003 22:00:00 GMT</pubDate>
			<comments>https://www.cyberbyte.ch/blog/comments.php?y=03&amp;m=09&amp;entry=entry030923-000000</comments>
		</item>
	</channel>
</rss>
