logoalt Hacker News

jeroenhdtoday at 2:19 PM2 repliesview on HN

Pinning the intermediate CA should work. Alternatively, calculate the cost of updating the cert pinning mechanism if it's custom and compare it to paid, 1 year certificates (though those will go away eventually too).

On the other hand, if you're using an app specific server, there's no need for you to use public certificates. A self-generated one with a five or ten year validity will pin just as nicely. That breaks if you need web browsers or third parties to talk to the same API, of course.


Replies

phasmantistestoday at 5:44 PM

Please don't suggest pinning a publicly-trusted intermediate. The CA may change which intermediate they're using at any time for any reason with no warning, and then the app which pinned that intermediate is hosed.

show 1 reply
nickftoday at 3:39 PM

It'll be tough when ICAs rotate every 5/6 months and may even randomise.

show 1 reply