Bug 6528 - Add locking to openssl serial file in GridShibCA::OpenSSLCA.pm
: Add locking to openssl serial file in GridShibCA::OpenSSLCA.pm
Status: RESOLVED FIXED
: GridShib
GridShib-CA
: 0.5.1
: All All
: P3 normal
: ---
Assigned To:
:
:
:
: 6808
  Show dependency treegraph
 
Reported: 2008-11-06 11:54 by
Modified: 2009-12-08 20:30 (History)


Attachments


Note

You need to log in before you can comment on or make changes to this bug.


Description From 2008-11-06 11:54:02
There currently is no locking on the openssl serial file in
GridShibCA::OpenSSLCA.pm. This could cause undefined behavior for concurrent
certificate generations. I suspect they would either reuse the same serial
number or fail outright depending on the exact semantics of perl and the
underlying OS.
------- Comment #1 From 2009-12-08 20:30:32 -------
Committed to head of CVS. Slated for 2.0
Uses Fcntl::flock()
Added LockFile parameter to gridshib-ca.conf to specify file to use for
locking.