Commit e2bdb74a authored by Chris Hines's avatar Chris Hines
Browse files

extend lifefime of certs

parent 201d05e0
<div fxLayout="column" fxLayoutAlign="start none" style="width: 100%" class="strudel-accountinfo-typography">
<div *ngIf="nowSeconds(identity$ | async) ; let time">
Login certificates expire in {{ time }}
Login certificates expire in {{ time }} (or when you 5 minutes after you close this tab, which ever comes first)
<div *ngIf="identity$.value !== null && identity$.value !== undefined">
<!--<div *ngIf="identity$.value.systemalerts.value !== null">-->
......@@ -116,7 +116,8 @@ export class KeygenComponent implements OnInit, OnDestroy {
let headers = new HttpHeaders({'Authorization':'Bearer '+token.token});
let options = { headers: headers, withCredentials: false};
var now = new Date()
var end = new Date(now.getTime() + 24*60*60*1000); //request a certificate valid for 24 hours
var end = new Date(now.getTime() + 28*24*60*60*1000); //request a certificate valid for 28 days
//its expected that the user will terminate the session by closing their browser/sleeping their laptop before this
let data = {'public_key': key.public, 'end': end.toISOString()};
return<any>(token.sshauthzservice.sign,data, options).pipe(
tap((v) => console.log('in getCert',v)),
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment