Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
This is a simple little gem for checking when an SSL will expire.
Add this line to your application's Gemfile:
gem 'ssl_expiry'
And then execute:
$ bundle
Or install it yourself as:
$ gem install ssl_expiry
require 'ssl_expiry'
SSLExpiry::SSLExpiry.check_certificates('wolfsoftware.com')
Results:
{"wolfsoftware.com"=>{"status"=>200, "expires_on"=>"02 Aug 2024", "expires_in"=>57, "common_name"=>"wolfsoftware.com", "issuer"=>"Let's Encrypt"}}
It is possible to check a list of domains rather than just single domains, this is done by passing a list[] to SSLExpiry::SSLExpiry.check_certificates.
require 'ssl_expiry'
SSLExpiry::SSLExpiry.check_certificates(['wolfsoftware.com', 'wolfsoftware.net'])
require 'ssl_expiry'
results = SSLExpiry::SSLExpiry.check_certificates('wolfsoftware.com')
SSLExpiry::SSLExpiry.display_results(results)
This would give the following output
----------------------------------------------------------------------------------------------------
Domain | Status
----------------------------------------------------------------------------------------------------
wolfsoftware.com | expires on 02 Aug 2024 (in 57 days) [CN=wolfsoftware.com]
----------------------------------------------------------------------------------------------------
There is a command line tool included with this gem.
check-ssl -d wolfsoftware.com
----------------------------------------------------------------------------------------------------
Domain | Status
----------------------------------------------------------------------------------------------------
wolfsoftware.com | expires on 02 Aug 2024 (in 57 days) [CN=wolfsoftware.com]
----------------------------------------------------------------------------------------------------
To check multiple domains at the same time, simply supply a comma separated list.
check-ssl -d wolfsoftware.com,wolfsoftware.net
------------------------------------------------------------------------------------------------------------------------
Domain | Status
------------------------------------------------------------------------------------------------------------------------
wolfsoftware.com | expires on 02 Aug 2024 (in 57 days) [CN=wolfsoftware.com]
wolfsoftware.net | expires on 02 Aug 2024 (in 57 days) [CN=wolfsoftware.net]
------------------------------------------------------------------------------------------------------------------------
If you want to check an SSL expiry on a custom port you can do this by adding the port to the end of the domain.
check-ssl -d wolfsoftware.com:8080
FAQs
Unknown package
We found that ssl_expiry demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.