IMGKit
IMGKit copied to clipboard
Missing the ability to accept/ignore self-signed SSL Certificates
Forgive me if this is not the appropriate channel to request this feature. I have a tool which uses IMGkit to take screenshots of a bunch of web severs taking in a .xml file generated from Nmap as its input. This is used mostly for internal network penetration testing where you have literally thousands of webservers and you just want a quick peak at whats all out there.
The problem is lots of times servers are using SSL with a sel-signed certificate. To the best of my abilities I have not been able to figure out how to tell IMGKit to ignore the self-signed cert so it simply fails to request the page and render the html.
Here is an example of what my call to IMGKit look slike.
def get_screenshot(url)
begin
puts "Taking screenshot: #{url}" if @options[:verbose]
screenshot = IMGKit.new(url, quality: 25, height: 600, width: 800)
rescue => error
puts error
return nil
end
return screenshot
end
Where 'url' looks like this for example:
https://192.168.1.100:8443