Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HTTPS options ignored #394

Open
pawelphilipczyk opened this issue Nov 22, 2014 · 3 comments
Open

HTTPS options ignored #394

pawelphilipczyk opened this issue Nov 22, 2014 · 3 comments

Comments

@pawelphilipczyk
Copy link

I'm trying to configure the tast to run under https but can't make it work.
I've added the options settings on task level and one thing that is having effect is port option.
The protocol option is ignored as well as key and cert options. So adding them does nothing except when path to file is not correct the grunt task is throwing missing file error so this is not completely ignored.

Please tell me if this should work or I'm missing something. All plugins are up to date.

Here's my watch part of grunt file. Same effect with or without .toString().

watch : {
    css : {
        files : [ 'css/changes.css' ],
        options: {
            livereload: true,
            key: grunt.file.read('/path/to/ssl.key').toString(),
            cert: grunt.file.read('/path/to/ssl.crt').toString()
        },
    },
},

The grunt plugin version:

"grunt": "~0.4.5",
"grunt-contrib-watch": "~0.6.1",
@pawelphilipczyk
Copy link
Author

Temporary fix for this is allowing insecure content to be loaded in Chrome.
After first try there's a shield icon i address bar where you can do just that.

@ekeren
Copy link

ekeren commented Aug 2, 2015

+1

@akoskm
Copy link

akoskm commented Aug 10, 2015

I can confirm this with 0.6.1, the following configuration is ignored:

options: {
  spawn: false,
  interrupt: true,
  livereload: {
    port: 9000,
    key: grunt.file.read('path/to/ssl.key')
  }
}

Also, there is no option to pass the keystore password.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants