EBIA

Tag: host

Convert from PFX to CRT/KEY

pkcs12 -in localhost.pfx -clcerts -nokeys -out localhost.crt
pkcs12 -in localhost.pfx -nocerts -nodes -out localhost.key

 

Angular CLI with SSL

in package.json

"scripts": {
    ..
    "https": "ng serve --ssl true --ssl-key \"certs/localhost.key\" --ssl-cert \"certs/localhost.crt\"",
    ..
}

Angular2 & stylelint: Unexpected unknown pseudo-class selector “:host”

If you use css-linters like stylelint in your build-system, you will probably need to ignore Angular2’s pseudo-class host and add the following rule:

"rules": {
    "selector-pseudo-class-no-unknown": [ 
        true, 
        { ignorePseudoClasses: ["host"] } 
    ]
}

Copyright © 2020 EBIA

Theme by Anders NorenUp ↑