SSL Certificate success

After days of research, installing java packages to help boost my level of encryption, trying to import the DCU cacert as a trusted key and trying to override the exception handler i’ve finally found a script that gets around the SSL certificate by installing an all trusting trust manager. This code isn’t mine and i’m not claiming it to be but after days spent trying to get around it by myself I think this is my best option going forward. The code is taken from “https://nakov.com/blog/2009/07/16/disable-certificate-validation-in-java-ssl-connections”

I’ve figured out that all the timetable URL’s are almost identical apart from a small part where you declare the program code and academic year. I’ve added a small part to the code where I ask for a users programme code and academic year, i will then insert these into a larger string containing the rest of the URL that stays the same. We’ve also added a small part where we transcribe every line of raw HTML into a file and then pass it to another java file that will parse it correctly. The reasoning behind this was to keep the parsing of data easy to follow, one script to get the HTML, another to parse it correctly and return every instance of a class.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s