summaryrefslogtreecommitdiff
path: root/certs/app
diff options
context:
space:
mode:
authorAzul <azul@leap.se>2013-02-06 14:29:44 +0100
committerAzul <azul@leap.se>2013-02-06 14:29:44 +0100
commit0362663decaa1c861b183ec3773f69952398a976 (patch)
treef5cecb371612a4ba579578d9f95b8b961fe47e12 /certs/app
parent37d3a5b4fd06ff75d21740cf0f70d0eb0c43e586 (diff)
parent8fbee620476db018ca096f1a448dbfde9f9eb95a (diff)
Merge remote-tracking branch 'leap/master'
Diffstat (limited to 'certs/app')
-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