Add Self-Signed Certificate to Ubuntu

I’m currently running Untangle as my firewall/router UTM and recently enabled SSL Inspection. Unfortunately apt-get was breaking on my linux boxen, so I had to import the certificate.

On my linux box I ran the following and it worked fine:
wget http://firewallURL/cert
mv cert cert.crt
sudo cp cert.crt /usr/local/share/ca-certificates/
sudo update-ca-certificates

Natural Scrolling Ubuntu

So I’m going through a bit of a Linux kick lately and one of the things I ended up doing was installing Ubuntu 16.04LTS on my Dell 7370 laptop. Afterwards, I started to get sick of the scrolling with two fingers on the touch pad – I was pretty used to the “natural scrolling” function on the laptops.

All of the guides were pointing me towards opening the Mouse/Touchpad settings, but there was no checkbox for Natural scroll anywhere to be found.

User “goetzc” from askubuntu.com pointed me in the right direction:
nano /usr/share/X11/xorg.conf.d/50-synaptics.conf
Find the section that says “Identifier ‘touchpad catchall’
Mine now says:

Section “InputClass”
Identifier “touchpad catchall”
Driver “synaptics”
MatchIsTouchpad “on”
MatchDevicePath “/dev/input/event*”
Option “NaturalScrolling” “on”
Option “MiddleEmulation” “on”
Option “Tapping” “on”
Option “DisableWhileTyping” “on”
EndSection

**EDIT**
I just realized that I couldn’t see the option in my Mouse settings panel because I had a non-compatible theme running that ruined the visuals of many options. Oh well, live and learn I guess.

Search O365 Exchange Forward Rules

IT and the Legal team recently started working on correcting several key issues. One of those included the ability to keep company email from auto forwarding out to other non-company accounts/companies/etc.

Open a powershell prompt (run as administrator)
$LiveCred = Get-Credential
$Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://ps.outlook.com/powershell/ -Credential $LiveCred -Authentication Basic -AllowRedirection
Import-PSSession $Session
foreach ($i in (Get-Mailbox -ResultSize unlimited)) { Get-InboxRule -Mailbox $i.DistinguishedName | where {$_.ForwardTo} | fl MailboxOwnerID,Name,ForwardTo >> c:\text\Forward_Rule_list.txt }

If you receive an error “Files cannot be loaded because running scripts is disabled on this system”
Set-ExecutionPolicy RemoteSigned

Webserver CA SSL Request, Linux Windows

I had a need to create a certificate for a new webserver. I have Linux machines available on my Windows dowmain that has a certificate authority advertised in active directory.

On your linux machine (that has openssl)
openssl req -new -sha256 -newkey rsa:2048 -nodes -keyout webserver1.key -out webserver1.csr

Generating a 2048 bit RSA private key
……………………………………+++
…………………………………..+++
writing new private key to ‘webserver1.key’
—–
You are about to be asked to enter information that will be incorporated
into your certificate request.
What you are about to enter is what is called a Distinguished Name or a DN.
There are quite a few fields but you can leave some blank
For some fields there will be a default value,
If you enter ‘.’, the field will be left blank.
—–
Country Name (2 letter code) [XX]:US
State or Province Name (full name) []:NO
Locality Name (eg, city) [Default City]:Town
Organization Name (eg, company) [Default Company Ltd]:Winks
Organizational Unit Name (eg, section) []:IT
Common Name (eg, your name or your server’s hostname) []:webserver1.localdomain.local
Email Address []:support@localdomain.local

Please enter the following ‘extra’ attributes
to be sent with your certificate request
A challenge password []:
An optional company name []:

Copy the CSR to your clipboard
nano webserver1.csr
Copy all of the text including the “–BEGIN” and “–END”

Create the certificate request on your CA

https://certificateauthority/certsrv
Create a new request – Advanced certificate request
Paste the copied text
Select webserver for the certificate template
Submit

I always download as a base64 encoded certificate. I then copied the .cer to my linux box to run the next steps.

On your linux machine create the PFX
openssl pkcs12 -inkey webserver1.key -in webserver1.cer -export -out webserver1.pfx

Enter Export Password:
Verifying – Enter Export Password:

Copy the PFX back to your window machine, double click, enter the passcode, and away you go.

Chrome Windows 10 Omnibox Slow

I was having extremely slow response time to input in the google search bar (aka omnibox). I’d close out of Chrome and re-enter, same issue. Every new tab (ctrl + t) I’d start typing a URL or search term and it would take up to 12 seconds for the text to start showing up. And with my misspellings… yeah it was frustrating.

Closed and re-opened Chrome. Same problem.
I disabled all of the extensions. Same problem.
I cleared all of the cache (ctrl shift del). Same problem.
Rebooted the machine. The problem went away for about 2-3 hours and then came right back.
Installed 64bit instead of 32bit. Same problem.
Redid all steps above after upgrading to 64bit. Same problem.

http://www.robschmuecker.com/google-chrome-address-bar-omnibox-getting-slow/

This site had me check for compatibility mode. I wasn’t running in compat mode as this was native supported.

But the delete of cache caught my eye – why does chrome store cached omnibox crud in the default user’s directory?

C:\Users\%Username%\appdata\local\google\chrome\User Data\Default\Cache
Delete everything in there. Restart Chrome.

I had to run taskkill /f /im chrome.exe prior to deleting all of the cache.

Double Booking O365 Room Calendar

I went through and made sure that the room was set to not allow conflicts. Unfortunately it was still accepting conflict meetings as “tentative” instead of outright saying “no”. This was conflicting with our room booking evoko units (exterior to the room) and showing the second meeting – the tentative in Exchange/Outlook – as the only meeting. Bad.

So, open up your powershell and connect to the O365-land (previous post).

List All Rooms (you’ll need the email address)
Get-Mailbox | Where-Object {$_.RecipientTypeDetails -eq "RoomMailbox"} | Format-Table DisplayName,Identity,PrimarySmtpAddress

List All Options On That Room
get-calendarprocessing roomname@domainname.tld | fl
Verify that the AllowConflicts is set to false. Verify that the forwardrequeststodelegates is also false. Verify that the AllRequestOutOfPolicy is set to false.

Change these settings (if the above is not false)
Set-CalendarProcessing roomname@domainname.tld -AllowConflicts $false
Set-CalendarProcessing roomname@domainname.tld -ForwardRequestsToDelegates $false
Set-CalendarProcessing roomname@domainname.tld -AllRequestOutOfPolicy $false

Ramblings Of An IT Person