Critical and self-signed certificates
See original GitHub issueFirst, many thanks for critical – I’ve been using it for years, and love it.
I’ve run into an issue recently where I have SSL enabled on local dev, which is also where I build the critical css using gulp
and critical
. It took me a bit to figure out what was going on, because I’d run critical
and no output at all would appear (no errors, no critical css written out).
It turns out that because the https certificate is self-signed, it’s failing to render the page in PhantomJS. I google’d a bit, and found that something such as this needs to be added:
'phantomjs.cli.args': ['--ignore-ssl-errors=true', '--web-security=false']
But is there a way to pass this down to phantomjs via critical?
Issue Analytics
- State:
- Created 7 years ago
- Reactions:1
- Comments:6
Top Results From Across the Web
What is a Self-Signed Certificate? Advantages, Risks ...
Compromised self-signed certificates can pose many security challenges, since attackers can spoof the identity of the victim. Unlike CA-issued ...
Read more >Cybersecurity Risks of Using Self-Signed Certificates
Dangers of Using Self-Signed Certificates · Root certificates can be leaked · Certificate warnings can be ignored · Brand reputation damage.
Read more >Self-Signed Certificates: What are they and why should you ...
Knowing the difference between self-signed and CA-signed certificates is important, but what exactly is a self-signed certificate?
Read more >Self-Signed Certificates Best Practices and How-to Guide
Self -signed certificates are widely used for testing/development and sometimes in ... keyUsage =critical, digitalSignature, keyEncipherment.
Read more >Self Signed Certificate vs CA Certificate — The Differences ...
A self-signed certificate is created, signed, and issued by the subject of the certificate (the entity it is issued to), while a CA...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I didn’t see any errors output at all. What I did for a temporary fix is to allow the website to run both http and https in local dev.
I’d ideally like to be able to pass params down to Penthouse/PhantomJS via Critical. I can see it being useful for this, as well as other issues.
Here’s the error I’m seeing (not sure if it’s the same as you):
This is actually an error from request. A quick and dirty hack is to replace line
85
offile-helper.js
with:The
strictSSL
option needs to be set to false.