openssl: certificate with private key by ssh-keygen

certest@deb1:~/key$ openssh req -new -key ~/.ssh/id_rsa -out csr.pem
-su: openssh: command not found
certest@deb1:~/key$ openssl req -new -key ~/.ssh/id_rsa -out csr.pem
You are about to be asked to enter information that will be incorporated
into your certificate request.
What you are about to enter is what is called a Distinguished Name or a DN.
There are quite a few fields but you can leave some blank
For some fields there will be a default value,
If you enter ‘.’, the field will be left blank.
—–
Country Name (2 letter code) [AU]:JP
State or Province Name (full name) [Some-State]:Tokyo
Locality Name (eg, city) []:Tokyo
Organization Name (eg, company) [Internet Widgits Pty Ltd]:hdknr.com
Organizational Unit Name (eg, section) []:hdknr.com
Common Name (eg, YOUR name) []:openid.hdknr.com
Email Address []:mail@hdknr.com

Please enter the following ‘extra’ attributes
to be sent with your certificate request
A challenge password []:
An optional company name []:

certest@deb1:~/key$ more csr.pem
—–BEGIN CERTIFICATE REQUEST—–
MIIC0zCCAbsCAQAwgY8xCzAJBgNVBAYTAkpQMQ4wDAYDVQQIEwVUb2t5bzEOMAwG
A1UEBxMFVG9reW8xEjAQBgNVBAoTCWhka25yLmNvbTESMBAGA1UECxMJaGRrbnIu
Y29tMRkwFwYDVQQDExBvcGVuaWQuaGRrbnIuY29tMR0wGwYJKoZIhvcNAQkBFg5t
YWlsQGhka25yLmNvbTCCASAwDQYJKoZIhvcNAQEBBQADggENADCCAQgCggEBALh8
5HvWLGexZcXtjHVGVsUNl6XUMn6AhuZp9iedLQQULUJJZn8+TNQ3nlNm+V20eRrC
8BtMxaMSUUeawSdIDUr7bQ/b7no9qYZW+PnaFbWn7qT4IQDg0anXdqsxuJKx9GFT
A/Mo3MuX4lq0+v+IqA23BDgqTSunGek1iq44Nj3y3pepC0uRAW5qejo5/HMEKXmM
awTzPeqK1qrQ5VoblWAH6pstyNZwVe0t3JmxhruczCyUN5xqaH2/OXAQ2S5jDTpO
+b3TDc94un1XGAu39jXQ81TtHDLME5zuswXkNwB7yP/qNefQsxsYdiQ9eI2YbhB+
BK2k7FYP+fIWyAd85NECASOgADANBgkqhkiG9w0BAQUFAAOCAQEAYVI5ETKHDlWW
/75rPJfgqfnecHJcg7awjVy323lbbkZV5I0M3pjky1O4SY7xc3HFmJvdzkDs/R80
zbrDKFJZ/hYmNxdbaiAErVGTmPBpVXtbKQ+4qywmdclAKG3gBI9wvTAyBhz/+Nv1
Pd3jFLGLGA6tiWEfzlswwVjxHZXQGbkVjsYaaR0rWqFMwIhHGIB1vPmmtI8kmEkN
pagp4NkhftR1UCB/RxS9aPakMZTct3cXxVw/FEo+00y2mO+1XCJC0KgW2FggqML8
PtDw8qXZkdp7dqMdHtE6Zt8BtRpu/Tk0QRu8IF6X4dOqgXekH9rxmUJxz9Tgx/0Y
+ICAr/PIUA==
—–END CERTIFICATE REQUEST—–

 

certest@deb1:~/key$ openssl x509 -in csr.pem  -out cert.pem -req -signkey ~/.ssh/id_rsa
Signature ok
subject=/C=JP/ST=Tokyo/L=Tokyo/O=hdknr.com/OU=hdknr.com/CN=openid.hdknr.com/emailAddress=mail@hdknr.com
Getting Private key

カテゴリー: 未分類 パーマリンク

openssl: certificate with private key by ssh-keygen への3件のフィードバック

  1. Unknown より:

    Hi,Do you need advertisement screens, LCD digital signage and LCD signages? Please go Here:www.amberdigital.com.hk(Amberdigital).we have explored and developed the international market with professionalism. We have built a widespread marketing network, and set up a capable management team dedicated to provide beyond-expectation services to our customers.
    amberdigital Contact Us
    E-mail:sstar@netvigator.com
    website:www.amberdigital.com.hk
    alibaba:amberdigital.en.alibaba.com[efihedigcgdegb]

  2. Unknown より:

    Hi,Do you have used LCD monitors, second hand lcd monitors and second hand flat screens? Please go here:www.sstar-hk.com(Southern Stars).We are constantly buying re-usable LCD panels,LCD recycle.The re-usable panels go through strictly designed process of categorizing, checking, testing, repairing and refurbishing before they are re-used to make remanufactured LCD displays and TV sets.Due to our recent breakthrough in testing and repairing technology of LCD, we can improve the value for your LCD panels.
    website:www.sstar-hk.com[dgfjcgijaffiajg]

  3. Unknown より:

    Hi,Do you need digital signages, advertising displays, digital sign, advertisement displays and advertising players? Please go Here:www.amberdigital.com.hk(Amberdigital).we have explored and developed the international market with professionalism. We have built a widespread marketing network, and set up a capable management team dedicated to provide beyond-expectation services to our customers.
    amberdigital Contact Us
    website:www.amberdigital.com.hk
    alibaba:amberdigital.en.alibaba.com[cbcdiggbhadehe]

コメントを残す

以下に詳細を記入するか、アイコンをクリックしてログインしてください。

WordPress.com ロゴ

WordPress.com アカウントを使ってコメントしています。 ログアウト / 変更 )

Twitter 画像

Twitter アカウントを使ってコメントしています。 ログアウト / 変更 )

Facebook の写真

Facebook アカウントを使ってコメントしています。 ログアウト / 変更 )

Google+ フォト

Google+ アカウントを使ってコメントしています。 ログアウト / 変更 )

%s と連携中