Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions cache.go
Original file line number Diff line number Diff line change
Expand Up @@ -199,9 +199,10 @@ func (c *Cache) Map() map[string]CacheObject {
}

type CacheObject struct {
Subject pkix.Name
NotAfter time.Time
Paths []PathObject
Subject pkix.Name
NotAfter time.Time
NotBefore time.Time
Paths []PathObject
}

type PathObject struct {
Expand Down
1 change: 1 addition & 0 deletions client.go
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ type CacheItem struct {
Paths []CacheItemPath `json:"paths"`
CommonName string `json:"common_name"`
NotAfter int64 `json:"not_after"`
NotBefore int64 `json:"not_before"`
}

type CacheItemPath struct {
Expand Down
5 changes: 3 additions & 2 deletions core.go
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,9 @@ func (b *Core) populateUsing(cache *Cache, paths storage.PathList) (*PopulateSta
cache.Merge(
fmt.Sprintf("%s", sha1.Sum(cert.Raw)),
CacheObject{
Subject: cert.Subject,
NotAfter: cert.NotAfter,
Subject: cert.Subject,
NotAfter: cert.NotAfter,
NotBefore: cert.NotBefore,
Paths: []PathObject{
{
Location: path + ":" + k,
Expand Down
1 change: 1 addition & 0 deletions server/manager/source_manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@ func (s *SourceManager) Data() doomsday.CacheItems {
Paths: paths,
CommonName: v.Subject.CommonName,
NotAfter: v.NotAfter.Unix(),
NotBefore: v.NotBefore.Unix(),
})
}

Expand Down