Solving macOS ‘can’t be opened because Apple cannot check it for malicious software’
With the help ChatGPT I put together a go program. It ran fine on the macOS machine I compiled it on, however once it was transferred to another machine, via the internet it wouldn’t run on the other machine.
When you move around compiled binaries between machines, especially on macOS, you might run into an annoying little issue:
getCertInfo can’t be opened because Apple cannot check it for malicious software. This software needs to be updated.
How to Post to an API Using PowerShell with Authentication Headers
In today’s IT environments, automation and integration are essential components of an efficient workflow. Whether you’re managing cloud services, auditing system logs, or interacting with other online services, you’ll often need to access APIs. One of the key challenges is ensuring that these API requests are secure and authenticated.
In this post, we’ll walk through how to use PowerShell to send a request to an API endpoint while passing authentication headers, specifically using an API token for authorization.
Fixing the “RPC Failed; HTTP 400” Error in Git
If you’ve encountered the error:
[info] error: RPC failed; HTTP 400 curl 22 The requested URL returned error: 400 Typically this occurs due to large file sizes being pushed to a remote repository, leading to an issue with the buffer size Git uses for HTTP operations. This turned up recently on macOS; I have no idea why or what changed in my repo.
Solution: Increasing the Post Buffer Size To resolve this problem, increase Git’s HTTP buffer size using the http.
PANOS SSH Issue, No Matching Host Key Type Found. Their Offer ssh-rsa
After upgrading PANOS on my firewall from 10.1 from 10.2, I was no longer able to SSH into the firewall. Trying to SSH into management interface resulted in the following SSH error:
❯ ssh [email protected] Unable to negotiate with 192.168.1.1 port 22: no matching host key type found. Their offer: ssh-rsa The issue is related to weak host key algorithms from the firewall and updated SSH clients (I’m not sure why this has changed from 10.
Managing Old PANOS Downloaded Versions
It can be a pain managing previously downloaded PANOS software images. Especially on the smaller firewalls with limited storage, the old versions just take up valuable space. Rather than using the API to do this at scale, one option is to limit the number to versions each firewall will keep at download time:
set max-num-images count 2 Now at download time only two active images will be kept, where the number is the amount you want to keep.
How to get the Underlying Physical Network Interface Used by a VPN Client Connection in macOS
When connected to a SSL VPN on macOS sometimes you want to find which physical network interface the VPN is using. Listing network interfaces using ifconfig doesn’t help as it is just a list of adapters and if they are linked or not. Looking up the default route with route get 1.1.1.1 only shows you the tun adapter the VPN is using:
❯ route get 1.1.1.1 route to: one.one.one.one destination: default mask: default gateway: my-mac interface: utun0 flags: <UP,GATEWAY,DONE,STATIC,PRCLONING,GLOBAL> recvpipe sendpipe ssthresh rtt,msec rttvar hopcount mtu expire 0 0 0 0 0 0 1400 0 In this case the VPN is using “utun0” which is the virtual adapter.
Removing the GlobalProtect Cookies and Configuration Files on macOS Linux and Windows Clients
Sometimes removing the .dat files from the GlobalProtect application folder is a good first troubleshooting step when looking into GlobalProtect client issues. The .dat files hold the authentication cookie (pre-auth and user auth) and portal configuration file. Folder locations can depend on if the portal is using pre-auth or not as pre-auth is not user specific.
Windows The main user specific folder location to remove the .dat files can be found at the following folder path:
How to Remove Built-in Teams from Microsoft Windows 11
Windows 11 seems to come with a built-in instance of Microsoft Teams. If you are using Office 365 then you end with two versions. Use the following to check you have the default instance of Teams:
Get-AppxPackage -Name teams If you have the default Teams installed you will get something like:
To uninstall this package you can use Remove-AppxPackage, just pipe the output from the previous command:
Get-AppxPackage -Name MicrosoftTeams | Remove-AppxPackage -ErrorAction stop If successful then running the original command should have no output:
VMware Esxi Upgrade Not Detecting Previous Installation
I really would think before trying this in any form of production environment. It did however work for a VMware lab I was building today (05/04/2022). The issue occurred when upgrading esxi from 6.0 to 6.5 by booting to the install media. One machine worked as expected, the other for some unknown reason would only allow a new install, not an upgrade. After a very small amount of research I found this.
Find Processor Architecture in Windows
I was trying to install some software remotely today and was it wasn’t going well. All the others had worked fine, after some investigation I found:
It has been a while since I have seen error code 1633. From distant memory 1633 is a 32 bit OS and a 64 bit installer? For the life of me I could not remember how to check that. After going through my random txt files I found: