CompTIA Linux+ XK0-006 (V8) Practice Question

A system administrator is tasked with generating a new 2048-bit RSA private key and a corresponding Certificate Signing Request (CSR) for a new web server. The private key must be named server.key, not be encrypted with a passphrase, and the CSR must be named server.csr. Which of the following single openssl commands will accomplish this and prompt the user for the distinguished name fields?

  • openssl genpkey -algorithm RSA -pkeyopt rsa_keygen_bits:2048 -out server.key -csr server.csr

  • openssl req -newkey rsa:2048 -nodes -keyout server.key -out server.csr

  • openssl req -new -key server.key -out server.csr -nodes -bits 2048

  • openssl x509 -new -keyout server.key -out server.csr -nodes -days 365

CompTIA Linux+ XK0-006 (V8)
Security
Your Score:
Settings & Objectives
Random Mixed
Questions are selected randomly from all chosen topics, with a preference for those you haven’t seen before. You may see several questions from the same objective or domain in a row.
Rotate by Objective
Questions cycle through each objective or domain in turn, helping you avoid long streaks of questions from the same area. You may see some repeat questions, but the distribution will be more balanced across topics.

Check or uncheck an objective to set which questions you will receive.

Bash, the Crucial Exams Chat Bot
AI Bot