22 lines
713 B
Markdown
22 lines
713 B
Markdown
---
|
|
title: "How to create a DSA OpenSSL certificate"
|
|
kind: article
|
|
slug: how-to-create-a-dsa-openssl-certificate
|
|
created_at: 2009-04-19
|
|
tags:
|
|
- General
|
|
- openssl
|
|
- dsa
|
|
- key
|
|
- public
|
|
---
|
|
|
|
I just needed an OpenSSL DSA public key. This is not really difficult, you just need to know the right commands. On my Mac I ran the following commands to obtain both private <code>dsa_priv.pem</code> and public <code>dsa_pub.pem</code> keys.
|
|
|
|
<pre lang="sh">
|
|
openssl dsaparam 1024 < /dev/random > dsaparam.pem
|
|
openssl gendsa dsaparam.pem -out dsa_priv.pem
|
|
openssl dsa -in dsa_priv.pem -pubout -out dsa_pub.pem
|
|
</pre>
|
|
|
|
Needless to say, keep your private key in secure location and make sure you have a backup of it! |