ModioAB / caramel

Caramel is a CA Registry Manager
GNU Affero General Public License v3.0
16 stars 5 forks source link

Adjust "not before" rather than setting it #48

Closed delreich closed 5 years ago

delreich commented 5 years ago

When adjusting boundary times with the gmtime_adj_not... functions, the resulting ASN1 representation becomes a UTCTIME. If the set_not... functions are used, the result is instead a GENERALIZEDTIME. Modern libraries don't like it when you mix these, or maybe they just don't like GENERALIZEDTIME... Either way, by using only one of those methods in all cases, we should be okay.