summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--certs/app/models/client_certificate.rb16
1 files changed, 8 insertions, 8 deletions
diff --git a/certs/app/models/client_certificate.rb b/certs/app/models/client_certificate.rb
index 9cde820..be0ac63 100644
--- a/certs/app/models/client_certificate.rb
+++ b/certs/app/models/client_certificate.rb
@@ -73,13 +73,13 @@ class ClientCertificate
{
"digest" => APP_CONFIG[:client_cert_hash],
"extensions" => {
- "keyUsage" => {
- "usage" => ["digitalSignature"]
- },
- "extendedKeyUsage" => {
- "usage" => ["clientAuth"]
- }
- }
+ "keyUsage" => {
+ "usage" => ["digitalSignature"]
+ },
+ "extendedKeyUsage" => {
+ "usage" => ["clientAuth"]
+ }
+ }
}
end
@@ -91,7 +91,7 @@ class ClientCertificate
##
def yesterday
- t = Time.now - 24*24*60
+ t = Time.now - 24*60*60
Time.utc t.year, t.month, t.day
end