Add CSR to certificiates
Add csr column to certificates field, as pending certificates have exposed the CSR already. This is required as generating CSR from existing certificate is will not include SANs due to OpenSSL bug: https://github.com/openssl/openssl/issues/6481 Change-Id: I9ea86c4f87067ee6d791d77dc1cce8f469cb2a22
This commit is contained in:
21
lemur/migrations/versions/7ead443ba911_.py
Normal file
21
lemur/migrations/versions/7ead443ba911_.py
Normal file
@ -0,0 +1,21 @@
|
||||
"""Add csr to certificates table
|
||||
|
||||
Revision ID: 7ead443ba911
|
||||
Revises: 6006c79b6011
|
||||
Create Date: 2018-10-21 22:06:23.056906
|
||||
|
||||
"""
|
||||
|
||||
# revision identifiers, used by Alembic.
|
||||
revision = '7ead443ba911'
|
||||
down_revision = '6006c79b6011'
|
||||
|
||||
from alembic import op
|
||||
import sqlalchemy as sa
|
||||
|
||||
|
||||
def upgrade():
|
||||
op.add_column('certificates', sa.Column('csr', sa.TEXT(), nullable=True))
|
||||
|
||||
def downgrade():
|
||||
op.drop_column('certificates', 'csr')
|
Reference in New Issue
Block a user