樹心幽徑

« 20180613在GTK視窗顯示縮放到和視窗同樣大小的影像(gtk9b.c) | Main | 20180707在ubuntu1604裝VitualBox »

20180629openssl操作
2018/06/29,14:40

treehrt@hrt:~/mysqlc$ openssl genrsa -out server.key 2048

treehrt@hrt:~/mysqlc$ cat server.key
-----BEGIN RSA PRIVATE KEY-----
MIIEpAIBAAKCAQEAocpKIi6uVmkfOIWDcS3EQoB2eX8wQzU2pHK5PT5DptIIfk/c
TE9mP+Czx2rG7waU/ufSwKCppCqawA4RmSNezxLVPym8VuNdNfrxwzq3TM5Xn28L
4UkmT19uRhXC8+NrUblHvdcbg4P6PRUPLSwkUcev59v217Xp7jDIRP5mmL5K4xQS
X0CG7hb5sofgLxaWF5grw7W+PEhShY9o3E2/Ibo+I53S0Up2GxN3BXkpp3zWJ19o
CydqB4lIAQhKjDUz7Yee3Pen6+FHE6GMCwRMYci4mr/b8K30RlJUXWeTNOST1Ptq
0t/xTOOgwucjaGbcFoI8zp+0mzWdRxLh6gP2nQIDAQABAoIBAA1OY9Z33GLC9oxh
frP6PZ/yjMvlSATfBYV04gNFca7wqz4oN0gXZ6NtSZvnDkFuWyazzkOFcy5LSrrs
7UmY/R0uwVcWiaTjwjDEWMnjtFuexNoZ+fInX/07LgiZlZUVaSgpgtr8LAke+5+2
ca8XaE1JjRAWqTCIh5rNbEswWSPKsUPCO3rANsgUTgYGoKvTNA1TGsrZHu+cdkAz
2mT+8J3T5e0UZpB6lJjTbAtf4ZccGysXr7SB3MofMRGRXmbU9DCtLnmkhZebDTPh
Xt9mIfMQdk+ciAXAEooVHJ5EzMGZl8g+ZUK9jEhVvms72K70bDVo1LCjpgzVsIme
VQqKikECgYEA0iIjGug822D/+OnQ+Y9qcq+7LNKd8UaTPzexxoCaqhQGhEQ/o2C0
auddO8uXRp6e1VLKQIXLBiMSnyYWbTTkM5U1GIQuBk9lVacteuNO0PxKahhLeX+9
j6vKqrOmeAZCkzXAEXJECQvIjA9EsbWerl72lldPmb3wDHLZzrq/9/kCgYEAxRrT
jkNy7S0ArOQ7GEhJcuNL2DATcPlYd0w++KoZNza2rrZQ/54glYlkf3yRw4uvEIq7
97s9vdlyCyJzt+e7oJymiXE/dMUDvcym2e3P000PrBJrqau72W9TYnMROsuKeVzr
fEeu21dVFZrsosVAqqNDW4smXwtzGJqFs3zMRMUCgYArM72H8KtiZyT5ZgkC5gt6
nMqcwoiabGolmyu/pf0mbouQcf+rdVxihkLS4l6ttDrvnN/cOCWvk1JmygveU/t+
53RNIA/eWEB7Ra3CEC3KJbSe73PE/RBaE3XNdrYJAzB415ovfBCk03ld4l27M532
N6v26OiCsVxDEvHY4OhK8QKBgQChylJrTVwx6SXLxQ/o77Uyk/a2v0fGDTabvj9W
WDGYi9XKdabpG8A9XujaaMMxkyAhYO/H+q9Efg/Jqf74r0PpI4zj9sySqgFXM3ym
GDnmhTPfF8O+I1Rvt5zni/JRo6/HzQkTG7ghHX+e22twdJ+PMbJhm0fk7n4MbRJg
cYkuzQKBgQCY002bVTT0v/ND0zx5YCFo2OkN1pNw13+m2ar9omg6KHsmmIghsgUG
p8+4fnJus+0CYE/t+nuAD7JDfFcfYt53hqjCP2SgLMyAp5EVmW80v3l1E4ro8cqR
KX9lMTAwimMxF6ueY36g/k8/vKQuyG+uzsnBZtNAFmIGm1gGWjHBXA==
-----END RSA PRIVATE KEY-----
treehrt@hrt:~/mysqlc$

 

treehrt@hrt:~/mysqlc$ openssl req -new -key server.key -out server.csr

 

treehrt@hrt:~/mysqlc$ cat server.csr
-----BEGIN CERTIFICATE REQUEST-----
MIIC3TCCAcUCAQAwgZcxCzAJBgNVBAYTAlRXMRMwEQYDVQQIDApTb21lLVN0YXRl
MQ8wDQYDVQQHDAZLaW5tZW4xDTALBgNVBAoMBGttdnMxFDASBgNVBAsMC2luZm9y
bWF0aW9uMRswGQYDVQQDDBJ3d3cua212cy5rbS5lZHUudHcxIDAeBgkqhkiG9w0B
CQEWEXRyZWVocnRAZ21haWwuY29tMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIB
CgKCAQEAocpKIi6uVmkfOIWDcS3EQoB2eX8wQzU2pHK5PT5DptIIfk/cTE9mP+Cz
x2rG7waU/ufSwKCppCqawA4RmSNezxLVPym8VuNdNfrxwzq3TM5Xn28L4UkmT19u
RhXC8+NrUblHvdcbg4P6PRUPLSwkUcev59v217Xp7jDIRP5mmL5K4xQSX0CG7hb5
sofgLxaWF5grw7W+PEhShY9o3E2/Ibo+I53S0Up2GxN3BXkpp3zWJ19oCydqB4lI
AQhKjDUz7Yee3Pen6+FHE6GMCwRMYci4mr/b8K30RlJUXWeTNOST1Ptq0t/xTOOg
wucjaGbcFoI8zp+0mzWdRxLh6gP2nQIDAQABoAAwDQYJKoZIhvcNAQELBQADggEB
ADD8jLMZHANsQvKtu9Pwq/9fF8+LAD0W8BXO956AAONfs49wtZNxU6iC05Ugcpm/
ZmwraZGo0eUp3k58mxENPsCJNNENh2m0suLV8l1WZ5MCF+ErSBbS5ipaxfeMETsM
CIpj+WbxdRiglsuaQ5yw6zDh3f3+SutFicFfKgksWq3NOliJNQiC5/HHsw+N6RGU
wAM1Gn5wcZPDmWgaYE9uJvJ0Ix37WMqhINnnogAJL6TR4kb4nY2+VlPYASZInLqd
dEtzOfTWNiTj0Nzj8NmfQloQY1NN6Zee9c2/7wOtgskzeFtyc6IdLLmJLDP7rGxt
KY3cD9NaaRt6guv+t8P2vmE=
-----END CERTIFICATE REQUEST-----
treehrt@hrt:~/mysqlc$

 

迴響

 
Accessible and Valid XHTML 1.0 Strict and CSS Powered by LifeType