From 93c6aa4014c93e79af1a10439cdb3ada9716ab5e Mon Sep 17 00:00:00 2001 From: Paul Bakker Date: Mon, 28 Oct 2013 22:28:09 +0100 Subject: [PATCH] Fixed that selfsign copies issuer_name to subject_name --- ChangeLog | 1 + programs/x509/cert_write.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 28fd64888..2a2130cba 100644 --- a/ChangeLog +++ b/ChangeLog @@ -15,6 +15,7 @@ Bugfix * Prevent possible alignment warnings on casting from char * to 'aligned *' * Misc fixes and additions to dependency checks * Const correctness + * cert_write with selfsign should use issuer_name as subject_name = PolarSSL 1.3.1 released on 2013-10-15 Features diff --git a/programs/x509/cert_write.c b/programs/x509/cert_write.c index 8e4951e58..f72f62379 100644 --- a/programs/x509/cert_write.c +++ b/programs/x509/cert_write.c @@ -512,7 +512,7 @@ int main( int argc, char *argv[] ) if( opt.selfsign ) { - opt.issuer_name = opt.subject_name; + opt.subject_name = opt.issuer_name; subject_key = issuer_key; }