Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

selfssl.exe create public/private .pem

Posted on 2012-03-29
2
1,058 Views
Last Modified: 2012-04-06
Hi All,

I want to create a base64 .pem public and private hash using selfssl.exe
0
Comment
Question by:detox1978
2 Comments
 
LVL 30

Accepted Solution

by:
Brad Howe earned 500 total points
ID: 37794514
That is not possible with SELFSSL. You will need to use OpenSSL for windows.

selfssl /?
SELFSSL [/T] [/N:cn] [/K:key size] [/S:site id] [/P:port]
 /T Adds the self-signed certificate to “Trusted Certificates”  list.  
/N:cn Specifies the common name of the certificate. The computer name is used if not specified.
 /K:key size Specifies the key length. Default is 1024.
 /V:validity days Specifies the validity of the certificate. Default is 7 days.
 /S:site id Specifies the id of the site. Default is 1 (Default Site).
 /P:port Specifies the SSL port. Default is 443.
 /Q Quiet mode. You will not be prompted when SSL settings are overwritten.

 The default behaviour is equivalent with:
 selfssl.exe /N:CN=LAP4015 /K:1024 /V:7 /S:1 /P:443

For example;

openssl genrsa -out yout_private_key.pem 1024
openssl rsa -in yout_private_key.pem -out public_key.pem -outform PEM -pubout

NOTE: openssl private keys contain pubic keys too. The second command is to just extract it.


Cheers,
Hades666
0
 
LVL 2

Author Closing Comment

by:detox1978
ID: 37817656
thanks
0

Featured Post

Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you don't have the right permissions set for your WordPress location in IIS, you won't be able to perform automatic updates. Here's how to fix the problem.
Introduction This article is intended for those who are new to PHP error handling (https://www.experts-exchange.com/articles/11769/And-by-the-way-I-am-New-to-PHP.html).  It addresses one of the most common problems that plague beginning PHP develop…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

828 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question